General Ledger
Active Member
- Joined
- Dec 31, 2007
- Messages
- 460
I am trying to create a measure of the distinct count of combinations (concatenations) of columns.
I can concatenate two fields to create a new calculated column KEY =[ChartID] & "-" & [Date]
I can then create a measure DCOUNTKEY = DISTINCTCOUNT(KEY)
Can I do these two steps as one and not burden my model with a low cardinal calculated column?
I tried =CONCATENATEX(Sales, [ChartID] & "-" & [Date], ", ") which does get me a string of items separated by comas but then cannot figure out how to count them.
I tried =VALUES(CONCATENATEX(Sales, [ChartID] & "-" & [Date], ", ")) but that does not work.
Any ideas?????
Thank you.
I can concatenate two fields to create a new calculated column KEY =[ChartID] & "-" & [Date]
I can then create a measure DCOUNTKEY = DISTINCTCOUNT(KEY)
Can I do these two steps as one and not burden my model with a low cardinal calculated column?
I tried =CONCATENATEX(Sales, [ChartID] & "-" & [Date], ", ") which does get me a string of items separated by comas but then cannot figure out how to count them.
I tried =VALUES(CONCATENATEX(Sales, [ChartID] & "-" & [Date], ", ")) but that does not work.
Any ideas?????
Thank you.