Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi all,
I have received a data dump from another department within my company. However the data comes in accumulated numbers, and they are unable to provide me with monthly data.
Is there a smart way to deaccumulate data, so i have it month by month and not stacked on top of each other?
Please see an example here below in google sheets:
best regards
Jakob
Solved! Go to Solution.
hi,@Fazniro
After my research, you add a measure like below:
Measure 3 = var a=CALCULATE(MAX(Table4[item A]), FILTER ( ALL ( Table4[Date]), AND ( Table4[Date] < MAX ( Table4[Date] ), MONTH ( Table4[Date] ) = MONTH ( MAX (Table4[Date] ) ) ) ) ) return CALCULATE(SUM(Table4[item A])-a)
here is new pbix, please try it.
https://www.dropbox.com/s/2ilwurzietd7f3h/new%20Deaccumulation%20of%20monthly%20data.pbix?dl=0
Best Regards,
Lin
hi,@Fazniro
After my research, you add a measure like below:
Measure = VAR a = CALCULATE ( MAX ( Table1[item A] ), FILTER ( ALL ( Table1[Date] ), AND ( Table1[Date] < MAX ( Table1[Date] ), AND ( YEAR ( Table1[Date] ) = YEAR ( MAX ( Table1[Date] ) ), MONTH ( Table1[Date] ) = MONTH ( MAX ( Table1[Date] ) ) ) ) ) ) RETURN CALCULATE ( SUM ( Table1[item A] ) - a )
Result:
here is demp, please try it.
https://www.dropbox.com/s/qjeiuawwzo9ap97/Deaccumulation%20of%20monthly%20data.pbix?dl=0
Best Regards,
Lin
hi thanks for your reply,
but i still have a problem.
What if data has this type?
https://docs.google.com/spreadsheets/d/1NSFzIJ-YYMj19L95HRU745ztCm9GmVTRxZKMeCDil7c/edit?usp=sharing
I think the problem might be that the data contains different years, so your script is not working. What should be changed?
best regards
hi,@Fazniro
After my research, you add a measure like below:
Measure 3 = var a=CALCULATE(MAX(Table4[item A]), FILTER ( ALL ( Table4[Date]), AND ( Table4[Date] < MAX ( Table4[Date] ), MONTH ( Table4[Date] ) = MONTH ( MAX (Table4[Date] ) ) ) ) ) return CALCULATE(SUM(Table4[item A])-a)
here is new pbix, please try it.
https://www.dropbox.com/s/2ilwurzietd7f3h/new%20Deaccumulation%20of%20monthly%20data.pbix?dl=0
Best Regards,
Lin
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
85 | |
65 | |
50 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |