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

Last YTD DAX calculation by Fiscal Year

We are having issues where our fiscal year is more than 365 days and we are finding that the yeartodate DAX functions are not bringing in the correct results even though we have a year column.

 

Questions is what is the best way to specify Year to date for this year and previous year based on our table.

 

Thanks in advance.

1 ACCEPTED SOLUTION
v-haibl-msft
Employee
Employee

@Anonymous

 

The dates parameter in TOTALYTD and DATESYTD is a calendar date column. Generally, both of these functions can be used to calculate YTD. There are good examples in these two links (1, 2).

I’m not sure how you define the fiscal year and make it more than 365 days. If possible, could you please give a sample data and the expected result you want to get?  

 

Best Regards,

Herbert

View solution in original post

2 REPLIES 2
v-haibl-msft
Employee
Employee

@Anonymous

 

The dates parameter in TOTALYTD and DATESYTD is a calendar date column. Generally, both of these functions can be used to calculate YTD. There are good examples in these two links (1, 2).

I’m not sure how you define the fiscal year and make it more than 365 days. If possible, could you please give a sample data and the expected result you want to get?  

 

Best Regards,

Herbert

Anonymous
Not applicable

Hi,

 

Thanks for answering, we use a 445.

 

Every seven years there is an additional week in the year.  We managed to get round it by making a fiscal table which converts the date in a fake fiscal date and then use the fake as our Date column...

 

Thanks

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.