Mike Johnson
asked on
crystal reports crosstab incorrect total when summing using distinct.
I know there is a known issue with crosstab not totalling the rows correctly when you sum values using distinct. Is there any work around for this?
example.
total---- 5
row1--- 4
row2-- 2
if there is one value in both row1 and row2 "distinct count" causes the value to counted once when sumarrizing the total.
Short of not using a crosstab... any workarounds for this?
example.
total---- 5
row1--- 4
row2-- 2
if there is one value in both row1 and row2 "distinct count" causes the value to counted once when sumarrizing the total.
Short of not using a crosstab... any workarounds for this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks James... that worked. For future references ex.
Teacher1 bob
Teacher1 sam
Teacher1 Sally
Teacher 2 Sally
I used distinctCount on the formula ex. techerN + student; Now Sally is counted twice. Once for Teacher1 and once for Teacher2. Before hand distinctCount cause Sally to be counted only once in the final total.
Teacher1 bob
Teacher1 sam
Teacher1 Sally
Teacher 2 Sally
I used distinctCount on the formula ex. techerN + student; Now Sally is counted twice. Once for Teacher1 and once for Teacher2. Before hand distinctCount cause Sally to be counted only once in the final total.
Yep. That's the kind of thing I was talking about.
And you're welcome. Glad I could help.
James
And you're welcome. Glad I could help.
James
What is wrong with using COUNT to count all the elements.
Anytime I use Count or DistinctCount I try to use a field that has distinct values for each row I want counted like the record Id or key field.
mlmcc