Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 2nd Jan.
I tried taking the sum of averages, but it didn't work.
Please help me on this.
Regards,
Jos
Solved! Go to Solution.
Try the below DAX measure.
Measure1 =
VAR _x =
SUMMARIZE ( 'Table', 'Table'[Date], 'Table'[Customer], 'Table'[Sale] )
VAR _sum =
SUMX ( _x, [Sale] )
RETURN
_sum
Proud to be a Super User!
that solution worked for me, it's very good, and it's the equivalence of "DISTINCT" in SQL
Try the below DAX measure.
Measure1 =
VAR _x =
SUMMARIZE ( 'Table', 'Table'[Date], 'Table'[Customer], 'Table'[Sale] )
VAR _sum =
SUMX ( _x, [Sale] )
RETURN
_sum
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |