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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Rolling 12 Month Sales based on current month

Hello,

 

Is there a way to display sales for the previous 12 months using the current month as context? For example, using February as the month in question, I would like to see sales between Mar 2019 - Feb 2020 as well as Mar 2018 - Feb 2019 and Mar 2017 - Feb 2018 and so on. 

 

I want to plot this by year, so the visual would show 2017, 2018, 2019, 2020, etc. The sales displayed per year would be the prior 12 month sales for each respective current month (so February for each year).

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

Please make a new MEASURE to calculate sumof sales from last 12 Month as follow :

 

NewColumn =
VAR Last_12Month =
    MONTH ( TODAY () - 330 )
RETURN
    CALCULATE (
        sum_sales,
        DATESBETWEEN ( 'Table'[Date].DATE, Last_12Month, TODAY () )
    )

 

Please change Value 330 according to yoyr requirement.

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.

 

Regards,

Gaurav Raj Singh

LinkedIN : https://www.linkedin.com/in/gauravrajsingh/

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.