Forum Discussion
Jos13
5 years agoHelper III
Sum Distinct Values
Hi Team, I have the following data. I want to create a measure that calculates Customer A's sale as 100 when user selects Jan 1 on slicer and 220 if user selects date range between 1st and...
- 5 years ago
Try the below DAX measure.
Measure1 = VAR _x = SUMMARIZE ( 'Table', 'Table'[Date], 'Table'[Customer], 'Table'[Sale] ) VAR _sum = SUMX ( _x, [Sale] ) RETURN _sum
Regards,
Nandu Krishna
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 👍
Proud to be a Super User!
nandukrishnavs
5 years agoCommunity Champion
Try the below DAX measure.
Measure1 =
VAR _x =
SUMMARIZE ( 'Table', 'Table'[Date], 'Table'[Customer], 'Table'[Sale] )
VAR _sum =
SUMX ( _x, [Sale] )
RETURN
_sum
Regards,
Nandu Krishna
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 👍
Nandu Krishna
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 👍
Proud to be a Super User!
- Jos135 years agoHelper III
Thank you nandukrishnavs
Much appreciated.