Hello - I'm using CR 8.5. I did a search and did not find anything on this issue.
Here's my problem. I need to do a distinct count on a column which features client web ids. Some clients though cannot get cookied and feature 0 as a web id. The person requesting the report has asked that I count each zero id distinctly. So:
0
0
0
123
123
456
456
789
should yield 6 unique ids when counted up via this method.
My proposed solution was to come up with a formula in this manner:
Distinct Counting the following formula:
if {newsLetterTracking.id} = 0 then Rnd else {newsLetterTracking.id}
My problem is that a large majority of the results are duplicated for ids = 0. So the resulting formula output(prior to distinct counting) for the above may look something like this :
0.234
0.234
0.567
123
123
456
456
789
Any ideas on what the issue may be or how to solve it? I have tried seeding with no success, and I have found something on the Crystal Decisions Knowledge Base ( but the rate of duplication on mine far exceeds what is discussed in that particular article - I have each "random" number repeating itself 3-5 times for a sample set of 600 or so zeroes.
Here's my problem. I need to do a distinct count on a column which features client web ids. Some clients though cannot get cookied and feature 0 as a web id. The person requesting the report has asked that I count each zero id distinctly. So:
0
0
0
123
123
456
456
789
should yield 6 unique ids when counted up via this method.
My proposed solution was to come up with a formula in this manner:
Distinct Counting the following formula:
if {newsLetterTracking.id} = 0 then Rnd else {newsLetterTracking.id}
My problem is that a large majority of the results are duplicated for ids = 0. So the resulting formula output(prior to distinct counting) for the above may look something like this :
0.234
0.234
0.567
123
123
456
456
789
Any ideas on what the issue may be or how to solve it? I have tried seeding with no success, and I have found something on the Crystal Decisions Knowledge Base ( but the rate of duplication on mine far exceeds what is discussed in that particular article - I have each "random" number repeating itself 3-5 times for a sample set of 600 or so zeroes.