Skip to main content
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.

Frequent Visitor

Calculating YTD



I am trying to calculate YTD by using TOTALYTD and the quick measure approach, but none of them seem to work. I have data with both actual data and forecasted data. The date table ranges from 2017 to 2019. When I try to calculate YTD I get the sum of revenue for the last year in the data set.


How can I get the YTD revenue for 2018 (01.01.2018-01.03.2018)? 





 Data setData setTOTALYTDTOTALYTDQuick measure YTDQuick measure YTDBoth approaches on the left, and the revenue over the 3 years on the rightBoth approaches on the left, and the revenue over the 3 years on the right

Solution Sage
Solution Sage

Hi @mike87,


Please create a calendar table and link it to your model and then create your measure either with TOTALYTD or calculate with DATEYTD.


If it is not clear please share dummy data and I will make a try.



Thank you for your response @Interkoubess. The data I have presented is dummy data. The actual data has a calender table as well, but still the same issue. 


I'm happy to share the data with you, but I don't know how to :S 

Helpful resources

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


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.