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

FYTD DAX doesn't work

Hi Community,

I need help with calculating FYTD sum. Our Financial year runs from July to June. Following is a snapshot of my sample dataset & measures:

Capture_28.JPG

 

FYTD sum should be 360. 

FYTD sum = totalytd(CALCULATE([Total sales]),Datedim[Date],"06/30")

My sample pbi file: https://1drv.ms/u/s!Ag919_pO_UKrgQ7LnPwPrdOWvT3t?e=yq6eGw

 

Many thanks,

 

1 ACCEPTED SOLUTION
SpiroswayGR
Resolver III
Resolver III

@Anonymous 

FYTD sum = CALCULATE(SUM(Table_name[Sales_field]),Table_name[FYDate]<date(2021,06,31),Table_name[FYDate]>date(2020,07,01))

 

SpiroswayGR_0-1611823139808.png

 

it is working for me well

 

View solution in original post

3 REPLIES 3
manikumar34
Solution Sage
Solution Sage

@Anonymous , 

Try something like thi. 

 

Calculate(SUM(Table[Sales]),DATESYTD(Table[Date],"30/6")

 

Check another example with the following link

https://community.powerbi.com/t5/Desktop/DAX-of-YTD-and-LYTD-based-on-Fiscal-year-1st-Sept-to-31st-Aug/td-p/241143

 

Regards, 

'Manikumar





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




amitchandak
Super User
Super User

@Anonymous , This is happening because you have not selected any date filter. And end date of calender in 12/31/2021 , means FYTD from that date.

Please select any date is FY you will get the correct data.

 

Find the file attached after signature

 

I have discussed all these in https://www.youtube.com/watch?v=OBf0rjpp5Hw

SpiroswayGR
Resolver III
Resolver III

@Anonymous 

FYTD sum = CALCULATE(SUM(Table_name[Sales_field]),Table_name[FYDate]<date(2021,06,31),Table_name[FYDate]>date(2020,07,01))

 

SpiroswayGR_0-1611823139808.png

 

it is working for me well

 

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.