Forum Discussion
johnf
8 years agoHelper I
Remove duplicated rows in SUM calculation
Hello, I'm having some issues in trying to work out how to remove duplicate rows from a calculation. I have the following dataset (highly simplified from actual) KEY NAME JOB PAYMEN...
- 8 years ago
OK, try this:
Measure = SUMX(SUMMARIZE(DistinctSum,[KEY],"Payment",AVERAGE(DistinctSum[PAYMENT])),[Payment])
johnf
8 years agoHelper I
I think this is because when passing the DISTINCT there's no condition applied to provide a boolean value for FILTER to use.
Greg_Deckler
8 years agoCommunity Champion
OK, try this:
Measure = SUMX(SUMMARIZE(DistinctSum,[KEY],"Payment",AVERAGE(DistinctSum[PAYMENT])),[Payment])