Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
nike31
Regular Visitor

Values of previous month

 

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! 😃

 

grafik.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@nike31

 

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

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

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

4.PNG

 

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!

Anonymous
Not applicable

@nike31

 

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!

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.