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
AndySmith
Helper III
Helper III

Month Slicer/Filter not working

Hi

 

I am working wit tabular model and the data comes via our datawarehouse. There are fact tables connected to a date table. Linked by Date Value.

When I bring in Year Month as the rows (for example), all my YTD functions do not work, and they will instead show the value for each month.

When I just use the date field - the YTD amounts calculate correcly. Why would my month slicer be casuing these issues?

 

AndySmith_0-1713768307389.png

 

1 ACCEPTED SOLUTION

Hey @AndySmith ,
I tried to replecate on my model.
It looks good to me.
I tried TOTALYTD([Qty], 'Date'[Date], "30/06") -> Comm (1)

and 

CALCULATE(
        [Qty],
        DATESYTD('Date'[Date], "30/06")
) -> Comm (2)

sergej_og_0-1713875016032.png

Seems to be smtg with your fields in your Date table.
What is "Date Value" represents?

Regards

View solution in original post

4 REPLIES 4
AndySmith
Helper III
Helper III

Thanks for the reply. The left hand table - which uses dates as teh rows works fine. Its when I bring in months that the YTD no longer works. I woul dexpect that when Months are applied in the rows - the YTD formual would still calc. - so it would a running total of the month sales. 

YTD formula is simple : 

CALCULATE(SUM('Fact Table'[Qty 9LE]),DATESYTD('Date'[Date Value],"30/06"))

 

Hey @AndySmith ,
I tried to replecate on my model.
It looks good to me.
I tried TOTALYTD([Qty], 'Date'[Date], "30/06") -> Comm (1)

and 

CALCULATE(
        [Qty],
        DATESYTD('Date'[Date], "30/06")
) -> Comm (2)

sergej_og_0-1713875016032.png

Seems to be smtg with your fields in your Date table.
What is "Date Value" represents?

Regards

Thanks. There was mismatch of data types for the date field. ALl fixed. Thanks agin

sergej_og
Super User
Super User

 I can see on the left hand side your date is accumulated with a month.
You can see there is a break between 30/06/2023 and 01/07/2023.
June is ready accumulated then july starts with accumulation.
Therefore it seems to give you a correct result on the month-level.

What is your intension / expectation on the result of your YTD?
Can you pls provide your YTD formula?

Regards

Helpful resources

Announcements
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