Several users have attempted to find a solution on this "classic" problem. So here is another attempt hoping someone would be able to address this finally.
I have a transaction file composed of agency no., agent no., and policy.
Agency No. Agent No. Policy No.
001 001 000001
001 002 000001
002 003 000002
002 004 000002
Agency No and Agent No are my dimensions. I use Policy No for my measure in counting the policies for each of the dimension. I need to count the policy only once dynamically for a dimension.
For example:
Agency No. Policy Count
001 1
002 1
Agent No. Policy Count
001 1
002 1
003 1
004 1
Total Policy Count
2
Using Category Count to create the Policy Count may pose problems. I was hoping that Tranformer has a roll-up function for a distinct count but when I checked it I did not find anything.
I have a transaction file composed of agency no., agent no., and policy.
Agency No. Agent No. Policy No.
001 001 000001
001 002 000001
002 003 000002
002 004 000002
Agency No and Agent No are my dimensions. I use Policy No for my measure in counting the policies for each of the dimension. I need to count the policy only once dynamically for a dimension.
For example:
Agency No. Policy Count
001 1
002 1
Agent No. Policy Count
001 1
002 1
003 1
004 1
Total Policy Count
2
Using Category Count to create the Policy Count may pose problems. I was hoping that Tranformer has a roll-up function for a distinct count but when I checked it I did not find anything.