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.
I have P&L data that is organized as such
January 2020 - 10,000
February 2020 18,000
March 2020, 31,000
I need to be able to undo the cumulative sum and get the value for each month. So the expected result would be
January 2020 - 10,000
February 2020 - 8,000
March 2020 - 13,000
Does anyone have any idea on how this can be accomplished? Thanks for your help.
Solved! Go to Solution.
Hi @montgd ,
You could refer to my sample for details.
Measure = SUM(T2[amount])-CALCULATE(SUM(T2[amount]), FILTER(ALLSELECTED(T2), T2[date]=DATE(YEAR(MIN(T2[date])), MONTH(MIN(T2[date]))-1,1)))
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @montgd ,
You could refer to my sample for details.
Measure = SUM(T2[amount])-CALCULATE(SUM(T2[amount]), FILTER(ALLSELECTED(T2), T2[date]=DATE(YEAR(MIN(T2[date])), MONTH(MIN(T2[date]))-1,1)))
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you very much - that worked perfectly.
Hi Greg
Thank you for your help. I am still having trouble with this and let me make sure I explained it right.
This is the scenario:
January = 10,000
February = 25,000 (the 10,000 from January and 15,000 from February)
March = 40,000 (the 10,000 from January, 15,000 from February and 15,000 from March).
I tried the measure you showed me but I am getting some strange numbers. Any ideas?
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 |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |