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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Show YTD Value Even When Filtered To A Single Week? DAX? Relationship Table?

Hello Power BI Community!

 

I'm having trouble with my Report when trying to create an omnipresent YTD measure for a KPI. I'm trying to have an Advanced Card always display the YTD value, regardless of what Date I have filtered on the Report. In other words, overriding the Date Selected in the Chiclets. Is this a Measure issue? Is it a Relationship Table Issue? Any insights would be much appreciative. Thanks!

 

YTD Measure

SL YTD % = CALCULATE([SL %], DATESYTD('Date'[Date]),FILTERS('Date'[Month Abbre]))

Value Measure

SL % = [SL UFRQty]/[SL NetOrd]
 

 Image 1: YTD Value = 50.9% when filtering for all of 2021YTD = 50.9%YTD = 50.9%

 Image 2: Weekly Value = 52.4% when filtering for Week 6 of February 2021 (I NEED SL YTD% TO READ 50.9%)

Week 6 = 52.4%, but YTD should = 50.9%Week 6 = 52.4%, but YTD should = 50.9%

 Image 3: YTD Measure

Showing YTD MeasureShowing YTD Measure

 

Image 4: Date Table

Date TableDate Table

 

1 ACCEPTED SOLUTION
selimovd
Super User
Super User

Hey @Anonymous ,

 

try to solve that in the measure.

I think the ALLEXCEPT function can help you here. With this you can remove all filters of a specific table except for the one you define in the function. As you only want to filter by year I would try to add this to calculate:

SL YTD % =
CALCULATE(
    [SL %],
    DATESYTD( 'Date'[Date] ),
    FILTERS( 'Date'[Month Abbre] ),
    ALLEXCEPT( 'Date', 'Date'[Year] )
)

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you @selimovd ! It works as intended now! That was quick!

selimovd
Super User
Super User

Hey @Anonymous ,

 

try to solve that in the measure.

I think the ALLEXCEPT function can help you here. With this you can remove all filters of a specific table except for the one you define in the function. As you only want to filter by year I would try to add this to calculate:

SL YTD % =
CALCULATE(
    [SL %],
    DATESYTD( 'Date'[Date] ),
    FILTERS( 'Date'[Month Abbre] ),
    ALLEXCEPT( 'Date', 'Date'[Year] )
)

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.