Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
78 | |
54 | |
39 | |
35 |
User | Count |
---|---|
102 | |
84 | |
48 | |
48 | |
48 |