Forum Discussion
Anonymous
3 years agoNot applicable
unique value in measure column
Hi All, I am trying to get sum of only distinct measure values for a particular Name if the value is repeated. Name Code Type Price 10G 72 S 10 11C 86 A 12 3D 18 S 10 ...
- 3 years ago
Try
Sum of unique values = SUMX ( SUMMARIZE ( 'Table', 'Table'[Name], 'Table'[Price] ), 'Table'[Price] )
johnt75
Super User
3 years agoTry
Sum of unique values =
SUMX ( SUMMARIZE ( 'Table', 'Table'[Name], 'Table'[Price] ), 'Table'[Price] )
Anonymous
3 years agoNot applicable
Hi John,
Thanks for your inputs tried the suggestion but still the same.
Also tried below measure nothing seems to work
SUMX(VALUES('Table'[Price]),'Table'[Price])
please suggest if we have any other option
Thank you
- johnt753 years ago
Super User
Are you sure you used the right measure in the second table visual, both columns have the same name ?
- Anonymous3 years agoNot applicable
Apologies John you are right some how while testing I might have added the same measure
Thank you again the measure works