Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hello,
I have following table. In the first column there is the product group (there are several). In the second column there is the date and in the third row there is the value of the order backlog.
How can I create a forth column that shows the value of the previous month. E.g. in row 2 the previous month value would be from the 31st January and is 1178,86865
Thank you! 😃
Solved! Go to Solution.
I assume you'd like it to be based on the product group?
Then try this calculation:
= CALCULATE(SUM(Table[Auftragsbestand]); VALUES(Table[PG]);DATEADD(Table[Datum];-1;MONTH))
Let me know how it goes.
Best,
Martin
Hi @nike31,
You can also try to use below formula to get last day amount of previous month.
Previous = LOOKUPVALUE([Amount],Sheet1[PG],[PG],Sheet1[Daturm],DATE([Daturm].[Year],[Daturm].[MonthNo],1)-1)+0
Regards,
Xiaoxin Sheng
I was facing a similar issue, and the accepted solution did not work for me for some reason. This one worked though, thanks!
I assume you'd like it to be based on the product group?
Then try this calculation:
= CALCULATE(SUM(Table[Auftragsbestand]); VALUES(Table[PG]);DATEADD(Table[Datum];-1;MONTH))
Let me know how it goes.
Best,
Martin
Hey, Please advise, what if I want to base this on two columns
Thank you! This works perfectly!
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 21 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 59 | |
| 52 | |
| 41 | |
| 33 | |
| 32 |