I am using Crystal Reports 9, and have a report that is grouping by month. Within each month is client detail. If the client detail appears twice within that month based on 2 fields being alike (tenant and dtpayfor) I am suppressing the detail with the following formula :
({@sTenant} = next({@sTenant}) and {ado.dtPayFor} = next({ado.dtPayFor})) or
({@sTenant} = previous({@sTenant}) and {ado.dtPayFor} = previous({ado.dtPayFor}))
This formula is done within the detail section expert to suppress data.
Now i want to do a distinct count on the items for each month, but do not want to count the suppressed items just the viewable items.
I have tried using a running total formula that is opposite of my formula where it resets on the group but am not getting the desired results.
Here is a sample for a clearer picture
JAN 06 (distinct count should be 1 not 2)
John Doe 1/1/06 240.00 (Suppressed)
John Doe 1/1/06 -240.00 (Suppressed)
John Smith 1/1/06 150.00
FEB 06 (distinct count of 1)
John Smith 2/1/06 150.00
({@sTenant} = next({@sTenant}) and {ado.dtPayFor} = next({ado.dtPayFor})) or
({@sTenant} = previous({@sTenant}) and {ado.dtPayFor} = previous({ado.dtPayFor}))
This formula is done within the detail section expert to suppress data.
Now i want to do a distinct count on the items for each month, but do not want to count the suppressed items just the viewable items.
I have tried using a running total formula that is opposite of my formula where it resets on the group but am not getting the desired results.
Here is a sample for a clearer picture
JAN 06 (distinct count should be 1 not 2)
John Doe 1/1/06 240.00 (Suppressed)
John Doe 1/1/06 -240.00 (Suppressed)
John Smith 1/1/06 150.00
FEB 06 (distinct count of 1)
John Smith 2/1/06 150.00