Showing results for 
Search instead for 
Did you mean: 
MrNoob Regular Visitor
Regular Visitor

LTM compared side by side and YOY comparasion

I am trying to calculate the LTM and the previous periods LTM, however, i want to display them side by side.  Then calculate the YOY difference, displayed for the corresponding month.  I am using a Year and Month slicer.   My data is upto Feb 2018.  I want to display a dynamic rolling LTM line chart.  


The matrix best displays my issue.



v-jiascu-msft Super Contributor
Super Contributor

Re: LTM compared side by side and YOY comparasion

Hi @MrNoob,


What's the formula that you used? Seems you need a function SAMEPERIODLASTYEAR. Please share a sample, then we can provide more details of the solution.


Best Regards,


Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
MrNoob Regular Visitor
Regular Visitor

Re: LTM compared side by side and YOY comparasion

This is the code i am using in order of calculations. 

SP = ((([PAX]/[Bookings IND PAX])-([Bookings APM]/'Bookings Meassures'[Bookings IND PAX])))*100 LTM SP = CALCULATE ( [SP], DATESBETWEEN ( 'DATE'[Date], NEXTDAY ( SAMEPERIODLASTYEAR ( LASTDATE ('DATE'[Date]) ) ), LASTDATE ('DATE'[Date] ) ) ) LY LTM SP = CALCULATE([LTM SP],SAMEPERIODLASTYEAR('Date'[Date]))

Helpful resources

Community Highlights

Community Highlights

Find out what's new in the Power BI Community!

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 108 members 1,497 guests
Please welcome our newest community members: