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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
abhiram342
Microsoft Employee
Microsoft Employee

Trailing 12 Months in Date Dimension Table

Hi All,

 

I have 3 FactTables and DateDimension Table. I have 3 measures in 3 fact tables such as measure1 ( Table1), measure2 ( Table2), measure 3 (Table3). Now I want to create Trailing 12 months measure in all tables . so , I have created 3 measures such as measure1 TTM, measure2 TTM,measure3 TTM.

Is there any way I can add Column in Date Dimension, so that I can reuse measure. (( basically , I don't want to create measure1 TTM, measure2 TTM, measure3 TTM) instead use measure1,measure2, measure and drag Column from Add Date Dimension.

 

I'm not sure what column I need to add to Date Dimension so that I can re-use existing measure

Thanks,

Abhiram

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@abhiram342 , You can create rolling 12 like

Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH))

 

Trailing 12 like

Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))

 

Now if want to use different measures in the same kind of calculation like trailing 12, use calculation groups

 

calculation groups
https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@abhiram342 , You can create rolling 12 like

Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH))

 

Trailing 12 like

Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))

 

Now if want to use different measures in the same kind of calculation like trailing 12, use calculation groups

 

calculation groups
https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.