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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Anonymous
Not applicable

LTM in Power BI

Dear expert

 

I have a question regarding LTM formula and hope anyone could help.

 

I would like to create a "LTM sales" and "LTM Qty" columns which can show "AllData.Sales" and "AllData.Qty" during LTM and show "blank" if is's unrelated. And i will be able to create a table in Power BI (as the second attached table) and looks like "CY" one.  

 

Thank you in advance.  

Capture.PNG

Maggie

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , If you have separate table - Master/Reference for Tier, Then blank means that tables missing some entries used in fact/many side table 

for ltm using date table

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

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

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
Anonymous
Not applicable

Thank for your quick response.

 

I try the formula and it gave me the total sales qty cover that month in each column. ( as the tick below)

 

However, i need it to show the same qty as "AllData.Qty" as my prior email attachment. In this case when i do the table ( as the black table attached) will show the same as CY.

 

Sorry, i am new with Power BI and not sure what to fill up instead of "sum" in your formula. -  CALCULATE(sum(Sales[Sales Amount])

Capture 1.PNG

Please advise.

 

Thank you in advance.

 

Maggie

 

 

@Anonymous , You are creating a column, and that will sum up all values. I am suggesting a measure. Try a measure and check.

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.