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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.