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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
lnjwilliamson86
Frequent Visitor

YTD Function Help

Hi, 

 

I am trying to perform a simple TOTALYTD function and have used to add up the number of applications recevied in a fiscal year. 

I added a column with the formula :

 

FYTD Leak Remission Applications Approved = TOTALYTD(SUM(Datasheet[1. Leak remission applications approved]),'Date'[Date],"06/30")

 

The date comes from a date table that i have added and populated useding the CALENDARAUTO function.

 

The forumla is not returning the cummulative total and is returing the individual values. Ultimately I want to graph the YTD on a line graph

 

I am wondering what I am missing as I have searched arounf the forums and it appears Im implemeting the formula correctly. 

 

Thanks. 

3 ACCEPTED SOLUTIONS
Ashish_Mathur
Super User
Super User

Hi,

 

Ensure that the date you drag from into your visual is from the Date Table.  Also does this work?

 

=CALCULATE(SUM(Datasheet[1. Leak remission applications approved]),DATESYTD('Date'[Date],"6/30"))

Does it work if you change the input to "30/6"?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

did you try @Ashish_Mathur suggestion about making sure you use the date field from your date table on the axis of your visual?


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

Thanks @Ashish_Mathur and @Phil_Seamark

 

Using the date column made my visual work perfectly!

 

 

 

View solution in original post

5 REPLIES 5
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @lnjwilliamson86

 

Your code works fine for me.  Have you created it as a calculated measure and do you have a relationship between your Datasheet table and your Date table?

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Hi @Phil_Seamark

 

Thank you for replying so quickly!

 

I have a many to one with a single cross filter direction relationship between my datasheet table and date table.

 

I created it as a new column and i halso tried as a new meaure and neither seems to be working.

did you try @Ashish_Mathur suggestion about making sure you use the date field from your date table on the axis of your visual?


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Ashish_Mathur
Super User
Super User

Hi,

 

Ensure that the date you drag from into your visual is from the Date Table.  Also does this work?

 

=CALCULATE(SUM(Datasheet[1. Leak remission applications approved]),DATESYTD('Date'[Date],"6/30"))

Does it work if you change the input to "30/6"?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks @Ashish_Mathur and @Phil_Seamark

 

Using the date column made my visual work perfectly!

 

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors