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.
My report is broken down into subtotals. I created a measure to get the total. My DAX for the total looks like this:
Current | Needed | |||
RptDt | Line 17 | RptDt | Line 17 | |
9/30/2017 | 6,745 | 9/30/2017 | 6,745 | |
10/31/2017 | 909 | 10/31/2017 | 909 | |
11/30/2017 | 1,821 | 11/30/2017 | 912 | |
12/31/2017 | 3,065 | 12/31/2017 | 1,244 |
Solved! Go to Solution.
Hi @dadelta,
For your scenario, you could create an index column in Query Editor.
Then create the measure below.
Measure = VAR a = CALCULATE ( [Line 17_], FILTER ( ALL ( 'Table1' ), 'Table1'[Index] = MAX ( 'Table1'[Index] ) - 1 ) ) RETURN IF ( MONTH ( MAX ( 'Table1'[Rpt Dt] ) ) = 10, 'Table1'[Line 17_], [Line 17_] - a )
Best Regard,
Cherry
Thank you so much for you assistance Cherry. This solution works perfectly for what I was trying to accomplish.
Hi @dadelta,
For your scenario, you could create an index column in Query Editor.
Then create the measure below.
Measure = VAR a = CALCULATE ( [Line 17_], FILTER ( ALL ( 'Table1' ), 'Table1'[Index] = MAX ( 'Table1'[Index] ) - 1 ) ) RETURN IF ( MONTH ( MAX ( 'Table1'[Rpt Dt] ) ) = 10, 'Table1'[Line 17_], [Line 17_] - a )
Best Regard,
Cherry
Thank you so much for you assistance Cherry. This solution works perfectly for what I was trying to accomplish.
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 |