Forum Discussion
aszpic
9 years agoFrequent Visitor
Sum values only one time
Hello everyone, I have a table with 2 columns: 'Code' and 'Values'. The Code can be repeated. The Values column is the same for each code, so 2 Values for 'CodeA' are equal to each other, and 2 ...
Sean
Community Champion
9 years ago
Here's the MEASURE that will do this for you...
Measure =
DIVIDE (
SUM ( 'Table'[Value] ),
CALCULATE ( COUNTA ( 'Table'[Code] ), ALLEXCEPT ( 'Table', 'Table'[Code] ) ),
0
)
Good Luck! :smileyhappy:
- aszpic9 years agoFrequent Visitor
It will take me a while to understand why this works, but it works. Thank you!