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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Prior Month's Sales -

Hello, 

 

I am using a couple of different measures to calculate the previous month's total sales  (not the last 30 days, but the actual previous calendar month).   So in this case, today is Sept 30 I want all of August.  

 

Both of these work.   But they require that I have a filter visual set to the current month.   Which means I have to remember to change it each month.   Is there a more dynamic way to do this that automatically adjusts?   

 

Last Month Shipped = CALCULATE([Total Shipped Value], PREVIOUSMONTH(Dates[Date]))
 
 
PriorMTD Orders = CALCULATE([Total Orders]
                               ,DATEADD(DATESMTD(Dates[Date])
                                        ,-1
                                        ,MONTH
                                       )
                               )
1 REPLY 1
amitchandak
Super User
Super User

I think these are the best option. To make your date selection dynamic. Put that to filter pane and use Advance or relative date

 

Screenshot 2019-09-30 22.39.45.png

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors