eo
MIS
- Apr 3, 2003
- 809
Hi
CE10.
I have about 20 reports which rely on dist counts to show totals. The problem is that using a std dist counts can cause variances either way. I will try and explain:
Risk No Date Col-A
GH1 Dept 1
Det 12344 01/01/2006
Det 12344 02/01/2006
Det 12344 03/01/2006
Det 98761 08/01/2006 98761
Det 98761 01/01/2006
Det 88844 01/01/2006
Det 17774 10/01/2006 17774
Det 17774 03/01/2006
I ultimately need to est what percentage Col_A is of Risk no.
A distinct count of Risk no gives a total of 4 (correct). But Col-A gives a dist count of 3 (incorrect, it counts the null as well).
At first glance a solution would appear to be dist count of Col-A minus 1. But this does not work in all cases. For example in the following dataset this will not work:
Risk No Date Col-A
GH1 Dept 1
Det 98761 08/01/2006 98761
A dist count of Risk no is 1, and of Col-A (minus 1) would be 0 (clearly incorrect).
I have even tried elaborate coding to account for all eventualities, but as you can imagine, there are simply too many.
The only solution would be to do a dist count of only real characters (ignoring nulls). Does anyone have any suggestions?
EO
Hertfordshire, England
CE10.
I have about 20 reports which rely on dist counts to show totals. The problem is that using a std dist counts can cause variances either way. I will try and explain:
Risk No Date Col-A
GH1 Dept 1
Det 12344 01/01/2006
Det 12344 02/01/2006
Det 12344 03/01/2006
Det 98761 08/01/2006 98761
Det 98761 01/01/2006
Det 88844 01/01/2006
Det 17774 10/01/2006 17774
Det 17774 03/01/2006
I ultimately need to est what percentage Col_A is of Risk no.
A distinct count of Risk no gives a total of 4 (correct). But Col-A gives a dist count of 3 (incorrect, it counts the null as well).
At first glance a solution would appear to be dist count of Col-A minus 1. But this does not work in all cases. For example in the following dataset this will not work:
Risk No Date Col-A
GH1 Dept 1
Det 98761 08/01/2006 98761
A dist count of Risk no is 1, and of Col-A (minus 1) would be 0 (clearly incorrect).
I have even tried elaborate coding to account for all eventualities, but as you can imagine, there are simply too many.
The only solution would be to do a dist count of only real characters (ignoring nulls). Does anyone have any suggestions?
EO
Hertfordshire, England