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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
hueuro
Frequent Visitor

YTD DAX FORMULA WITH SLIZER WITH DIFFERENT YEAR

HI 

CAN YOU EXPLAIN THE DAX FORMULA FOR YTD RUNNING TOTAL FOR THE BELOW TABLE

hueuro_0-1702628638782.png

hueuro_1-1702628774463.png

When i select sales catagory D should get 15490 ONLY 

Can you help with the dax formula with the data contain previous year

@dax 

2 REPLIES 2
Chakravarthy
Resolver II
Resolver II

@hueuro , Create a separate date table, Join date column of date table, with your date column of your table.

Please create a measure like this.

YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31")) 

STILL THE SAME COMMING 

it should pick the value april to nov

hueuro_0-1702635697225.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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