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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Problem whit LTM

Hello,
I want to use this structure but dynamically;

HH_for = CALCULATE ([High + white + low F];
'TRAINING' [PERIOD] = 201903 ||
'TRAINING' [PERIOD] = 201902 ||
'TRAINING' [PERIOD] = 201901 ||
'TRAINING' [PERIOD] = 201812 ||
'TRAINING' [PERIOD] = 201811 ||
'TRAINING' [PERIOD] = 201810 ||
'TRAINING' [PERIOD] = 201809 ||
'TRAINING' [PERIOD] = 201808 ||
'TRAINING' [PERIOD] = 201807 ||
'TRAINING' [PERIOD] = 201806 ||
'TRAINING' [PERIOD] = 201805 ||
'TRAINING' [PERIOD] = 201804)

Before suggesting other options, try the following:
HH_for = CALCULATE ([High + white + low F];
DATESINPERIOD ('TRAINING' (end_date); MAX ('TRAINING' (end_date)); - 12; MONTH)

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

It seems like you need to achieve rolling total of previous 12 months? Could you share some sample data and clarify more details?

 

Regards,

Jimmy Tao

Anonymous
Not applicable

initial relationshipinitial relationship1. This is the result you should get. 2.  HH_for as we see the result is approaching1. This is the result you should get. 2. HH_for as we see the result is approachingUsing Datesinperiod -12 MonthUsing Datesinperiod -12 Monththis option I get the correct results but in a static way. option dynamically?this option I get the correct results but in a static way. option dynamically?Relationship  option 2Relationship option 2ResultsResults2º EJample2º EJample

amitchandak
Super User
Super User

What is the exact problem, not very clear from the description?

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 is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.