Hello,
I have below data and i would like to count the data by category and if client has more category then he needs to be counted only in one category according to the order
clientid category id catg date
123 low 1/1/2015
123 mid 3/1/2015
777 mid 5/1/2015
999 mid 7/1/2015
999 high 5/1/2015
345 high 4/1/2015
Total Unique Clients is 4
the output data should be
category id client count
low 1
mid 2
high 1
If client has low then he will be added in low category and if client has mid and high then he will be counted in mid and so on.
I appreciate the guidance
Regards
Harris
I have below data and i would like to count the data by category and if client has more category then he needs to be counted only in one category according to the order
clientid category id catg date
123 low 1/1/2015
123 mid 3/1/2015
777 mid 5/1/2015
999 mid 7/1/2015
999 high 5/1/2015
345 high 4/1/2015
Total Unique Clients is 4
the output data should be
category id client count
low 1
mid 2
high 1
If client has low then he will be added in low category and if client has mid and high then he will be counted in mid and so on.
I appreciate the guidance
Regards
Harris