Forum Discussion
How to avoid sum duplicates values in a measure
- Anonymous5 years ago
Why don't you de-duplicate the table before you load it into PBI? In Power Query it's just as easy to do as clicking several buttons... And if you want to know how many dup rows there ware originally for a given row, you can store the count of the row in the table as well. This will retain all the information you have in the original table and the resultant table will be as small as possible, thus DAX will be faster on it.
- Anonymous5 years ago
[Measure] = SUMX( SUMMARIZE( T, T[ID], T[Product], T[Value] ), T[Value] )
Why don't you de-duplicate the table before you load it into PBI? In Power Query it's just as easy to do as clicking several buttons... And if you want to know how many dup rows there ware originally for a given row, you can store the count of the row in the table as well. This will retain all the information you have in the original table and the resultant table will be as small as possible, thus DAX will be faster on it.
Thanks for the answering,
The table has others fields that I need.
No all the fields are duplicates, just some of then.
- Anonymous5 years agoNot applicable
[Measure] = SUMX( SUMMARIZE( T, T[ID], T[Product], T[Value] ), T[Value] )- daromel5 years agoFrequent Visitor
It worked perfect. thank you!!