Announcements
 Crystal Reports Forum : General Information : Announcements
Message Icon Topic: Cross tab distinct count Post Reply Post New Topic
Author Message
yang
Newbie
Newbie


Joined: 13 May 2010
Online Status: Offline
Posts: 7
Quote yang Replybullet Topic: Cross tab distinct count
    Posted: 27 Jul 2010 at 4:31am
Hi all,
I am trying to do a distinct count on the data on a cross tab, but the summarize field is wrong for the distinct count. the total value does not add up correctly.

 
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 27 Jul 2010 at 4:58am
I will try to explain what probably is going on.  I have a similiar issue when doing distinct counts and groups (the group totals do not match the grand total).
 
If whatever field you are doing a distinct count on has two (or more) records that meet the criteria for two (or more) groups, it will be counted once in each group, thus throwing the grand total off.
 
Example.  Distinct count of patient_Id, group by insurance carrier.  Patient has two insurance carriers.  It gets counted once for each carrier (twice counted), but counted once for the grand total.
 
I hope this helps.
IP IP Logged
yang
Newbie
Newbie


Joined: 13 May 2010
Online Status: Offline
Posts: 7
Quote yang Replybullet Posted: 27 Jul 2010 at 4:52pm

hi, thank you for your reply. i understand the issue here. is there a way to customise the total?the individual count for the individual row are correct. i need to sum up the individual distinct count for the row. how can i do it? 

i am already using a view and i need to do distinct count.
 
 


Edited by yang - 27 Jul 2010 at 4:56pm
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 28 Jul 2010 at 11:25am
I know how to do it for groups, but not on a crosstab.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.032 seconds.