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
admin_xlsior
Post Prodigy
Post Prodigy

YTD amount for 2 or 3 years ago

Hi how to create measure for YTD years ago (2 or 3 years ago) ?

 

If lets say I have this data ->

image.png

 

I tried to write 2 measures but both are returning wrong value:

Actual GP YTD = CALCULATE(SUM('WO'[Actual GP]), DATESYTD('WO Date'[Date]))

 

Actual GP YTD 2 = TOTALYTD(SUM('WO'[Actual GP]), 'WO Date'[Date])
 
Aren't this measure should return value start from January, month by month gradualy like running total ?
 
Kindly help
Thanks,
 
 

 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@admin_xlsior ,

 

For any time intelligence function, you could implement a custom DAX formula.

https://www.sqlbi.com/articles/time-intelligence-in-power-bi-desktop/

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

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@admin_xlsior ,

 

For any time intelligence function, you could implement a custom DAX formula.

https://www.sqlbi.com/articles/time-intelligence-in-power-bi-desktop/

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

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.