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

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.

Reply
therightblue
Frequent Visitor

2 Months Lagging Sales

I need to create a measure that will calculate Gross Sales for the month that is 2 months previous to whatever Month I'm currently filtered by. 

 

I have a column for Gross Sales Product.

I have a column in my date table for 'Year-Month'

 

Capture.PNG

 

Ideally, I would need my 2021-01 Column to show $657,528.60.

 

 

1 ACCEPTED SOLUTION
Shishir22
Solution Sage
Solution Sage

Hello @therightblue ,

 

Please try below measure -

 

 

Previous = CALCULATE(SUM(Table1[GrossSalesProduct]),DATEADD('date'[Date],-2,MONTH))

 

If this solves the requirement, please mark it as a solution. Kudos are also appreciated!

Thanks

Cheers,
Shishir

View solution in original post

2 REPLIES 2
therightblue
Frequent Visitor

Thanks

Shishir22
Solution Sage
Solution Sage

Hello @therightblue ,

 

Please try below measure -

 

 

Previous = CALCULATE(SUM(Table1[GrossSalesProduct]),DATEADD('date'[Date],-2,MONTH))

 

If this solves the requirement, please mark it as a solution. Kudos are also appreciated!

Thanks

Cheers,
Shishir

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.