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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Total distinct count record Totals

Status
Not open for further replies.

RPOC

IS-IT--Management
Jun 17, 2003
44
US
I am doing a distinct record count, grouped by date by on a client id. I have totaled the records in a grouping to get a value for each day. I want to then total these totals so I can get a total of all the days.
example on day 1 I had 3 unique ids (in the grouping there were 6 line items)
on day 2 I had 2 ids ( there were 14 line items).

I want to create a total that will indicated that over all those groups I had 5 ids appear, not 20.

I have tried a variety of methods but cannot seem to figure this out.
any help would be appreciated.
Thanks


 
Perhaps if you shared how you were currently creating the distinct count it would be easier for people to enchance the report.

I'll assume that you right clicked a field and selected Insert->Summary->Distinct Count and it appeared in the Group Footer.

Try creating a formula like this:

whileprintingrecords;
numbervar TotUniq := TotUniq+<select the distinct count field from the list>

Now at report footer you might use the following to display the total:
whileprintingrecords;
numbervar TotUniq

-k
 
thanks, That worked. I was missing the footer part.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top