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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Total YTD does not work

I have a table which I use to override a SUM measurement. This works fine in overriding the Sum measurement. However when I apply DATESYTD function on this measurement, I get incorrect results. My model is setup correctly to support time-intelligence functions. For 2020 which does not have a manual override value, the DATESYTD function is working fine. Below is the Dax with my results. It is required that I have YTD value. I also tried TOTALYTD function and got the same results. Any ideas to make this work?

 

#New Term Policy Override = Sum(NewTermOverride[NewTermCount])

#New Term Policy Prelim = SUM('Fact_Policy'[NewTermCount])

#New Term Policy = If (Isblank('Fact_Actual'[#New Term Policy Override]),'Fact_Actual'[#New Term Policy Prelim],'Fact_Actual'[#New Term Policy Override]) This formula is getting the correct value.

#New Term Policy YTD = CALCULATE([#New Term Policy],DATESYTD('Calendar'[Date])) This formula is getting the incorrect value.

  

Results.png

 

 
 
5 REPLIES 5
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 
Let me know if this works
 
Measure = CALCULATE (
    [#New Term Policy],
    FILTER (
        ALL ( Calendar ),
        'Calendar'[Date]
            <= MAX ( 'Calendar'[Date] )
            && YEAR ( 'Calendar'[Date] )
                YEAR (
                    MAX ( 'Calendar'[Date] )
                )
    )
)
 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Anonymous
Not applicable

Thanks for the suggestion. I got the same result. It is not working.

Any other ideas?

@Anonymous ,

 

What i understand from your visual is taht Report Date is not part of the Date Table.

 

You need to pull the Date from the Date table in the visualization.

 

Regards,

HN

 

Can you share your model and some sample date in text format.

Anonymous
Not applicable

It appears what is happening is Power BI is not letting 2 different Date relationship from 2 seperate table to exist in one YTD calculation.

 

Does that make sense?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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