Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Use Count Function in Formula Editor

Status
Not open for further replies.

amtek

Programmer
Mar 1, 2001
5
IN
Hi

How to use Count(fld, condFld, cond) from Function Tree list of functions in Formula Editor.

I am using it as :

Count({Emp.Empno},{Emp.Ename},"=Amit");

But it is giving the error as :

1.The Summary/Running Total Field could not be created.

2.A group condition is not allowed here.

Thanking you,

Amit



 
amtek: 2 points:

1. You may find it quicker to get a response in future if you post queries such as this in the Crystal Decisions: CR Formula forum

2. The answer to your question is that you cannot use this construction of the Count() function within a formula to do a conditional count. You are restricted to only being able to apply a break condition to either a Boolean or a Date Group e.g. if you group by InvoiceDate then you can select to count "monthly" and you'll get a monthly count of invoices. You will need to use a Running Total where you will be able to count subject to your formula David C. Monks
david.monks@chase-international.com
Accredited Seagate Enterprise Partner
 
You can also look at FAQ 1.B and see the section on conditional totals. Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top