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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

PERIODS DIFFERENCES (TTM) - CY vs PY

Hi,

 

I'm trying to create a table to compare TTM Amounts. Let's assume that I'm comparing FY16 (12/31/2017), FY17 (12/31/2017), FY18 (12/31/2018) and TTM Apr-19 (04/30/2019), so, I created the following script. 

 

TTM CY vs PY =
VAR TTM = [Total TTM]
VAR TTM_PY =
    CALCULATE ( [Total TTM], DATEADD ( Date_Table[Period End Date], -365DAY ) )
RETURN
    TTM - TTM_PY

 

I'm having two issues with this script. 
1) This script is comparing FY16 to the previous period that does not exist in any table that I have. Is there somehow a way to just compare FY16 to FY17?

2) When I'm comparing TTM Apr-19, this script is comparing TTM Apr-19 with TTM Apr-18, however I would like to compare any TTM period in the table with the last FY available (in this case, FY18). 

 

I really appreciate any help and I can provide more info if necessary. 

PS: My TTM and TTM PY is working well, my problem, is when I compare it.

 

Thank you 

 

1 REPLY 1
Anonymous
Not applicable

Just a quick update. For the item #1, I found a solution. Just need for the item #2.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.