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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
AppleJuice
Regular Visitor

Get last quarter sales

Hi , i need help in getting the last quarter sales amount. What is the formula for that? thanks.

Selected MonthSales AmountLast QuarterLast Quarter Sales Amount
Dec-2335000  
Jan-24$50,000Dec-23$35,000
Feb-24$78,000Dec-23$35,000
Mar-24$60,000Dec-23$35,000
Apr-24$57,000Mar-24$60,000
May-24$63,000Mar-24$60,000
Jun-24$90,000Mar-24$60,000
Jul-24$87,000Jun-24$90,000
Aug-24$23,000Jun-24$90,000
Sep-24$54,000Jun-24$90,000
Oct-24$88,000Sep-24$54,000
Nov-24$60,800Sep-24$54,000
Dec-24$90,000Sep-24$54,000
1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Hi @AppleJuice ,

 

Please create a calendar table and try this measure:

Last Quarter Sales Amount = CALCULATE([Sales Amount],PREVIOUSQUARTER('Calendar'[Date]))


output:

vcgaomsft_0-1715649604086.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

View solution in original post

1 REPLY 1
v-cgao-msft
Community Support
Community Support

Hi @AppleJuice ,

 

Please create a calendar table and try this measure:

Last Quarter Sales Amount = CALCULATE([Sales Amount],PREVIOUSQUARTER('Calendar'[Date]))


output:

vcgaomsft_0-1715649604086.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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