bigbadbrad
New Member
- Joined
- Apr 19, 2012
- Messages
- 4
Just started using PowerPivots and DAX. Figured out the Count Distinct function real quick, it is great. The problem i have is i would also like to show a sum distinct of the same data set. Seems like it should be possible using SUMX or CALCULATE function filtering the table by the Distinct count i already have. Not that easy though, atleast not for me.
Data Example:
Category Keyword Demand
Cat1 KW1 100
Cat1 KW2 200
Cat1 KW3 300
Cat2 KW1 100
Cat2 KW4 400
I would like to be able to sum the data at the keyword level and show distinct sum of the Demand. Where KW1 is in multiple Categories, i would still like to be able to do a sum where the demand is only summed once (distinct).
Any ideas would be greatly appreciated. Thanks...
Data Example:
Category Keyword Demand
Cat1 KW1 100
Cat1 KW2 200
Cat1 KW3 300
Cat2 KW1 100
Cat2 KW4 400
I would like to be able to sum the data at the keyword level and show distinct sum of the Demand. Where KW1 is in multiple Categories, i would still like to be able to do a sum where the demand is only summed once (distinct).
Any ideas would be greatly appreciated. Thanks...