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 everyone,
I'm using the following formula (taken from this forum btw) as a measure
Change GC = sum('Sheet'[Group Amount]) - CALCULATE(sum('Sheet'[Group Amount]),PREVIOUSMONTH('Sheet'[Date]))
But when checking if it really shows the Change between months, I get this...
This is not correct. Change should be $8.96
what am I doing wrong?
Solved! Go to Solution.
I got it!!!!
For anyone with same error: the problem is that Previous month returns 0, unless you add an extra .[Date] at the end of the formula (don't ask me why, plz)
so for some reason, it looks like this:
CALCULATE(sum('Sheet'[Group Amount]),PREVIOUSMONTH('Sheet'[Date].[Date]))
Hi@ Olia
Then create measure:
Change GC = CALCULATE(SUM(Table2[Qty]))-CALCULATE(sum(Table2[Qty]),PREVIOUSMONTH('Date'[Date]))
Result:
Best Regards,
Lin
Hi@ Olia
Then create measure:
Change GC = CALCULATE(SUM(Table2[Qty]))-CALCULATE(sum(Table2[Qty]),PREVIOUSMONTH('Date'[Date]))
Result:
Best Regards,
Lin
I got it!!!!
For anyone with same error: the problem is that Previous month returns 0, unless you add an extra .[Date] at the end of the formula (don't ask me why, plz)
so for some reason, it looks like this:
CALCULATE(sum('Sheet'[Group Amount]),PREVIOUSMONTH('Sheet'[Date].[Date]))
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 |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |