Count of a field after grouping
Hi,
I have a report which has fields ProjectNo, ProjectName, ProjectAmt and AmendmentAmt. Now the values would look something like this-
ProjectNo ProjectName ProjectAmt
AmendmentAmt
abc-6008 ABC Reconciliation
1550,45.00 100.00
abc-6008 ABC Reconciliation
1550,45.00 4565.00
def-5482 DEF Reconciliation
48945,465.00 798.00
def-5482 DEF Reconciliation
48945,465.00 23.00
def-5482 DEF Reconciliation
48945,465.00 1032.00
So like you can see the the first 3 fields repeat for various AmendmentAmts. Now I want a count of the number of projects. In the above example it should be 2. When I do a count on ProjectName I get the value 5. Plese help me with this issue
December 13th, 2010 11:42am
hello, you can simply use the countdistinct aggregate function:
=countdistinct(ProjectName)
Free Windows Admin Tool Kit Click here and download it now
December 13th, 2010 12:23pm
Thanks....didn't know about this function
December 13th, 2010 12:31pm
Thanks.... didn't know about this function.
Free Windows Admin Tool Kit Click here and download it now
December 13th, 2010 12:32pm