Forum Discussion

kingchad5's avatar
kingchad5
Helper I
9 years ago
Solved

TOTALYTD Returning BLANK

I am having some trouble with a simple TOTALYTD formula.  I am trying to count the total projects YTD.  My table has a relation from the Submitted date of the project and a Date table.  I have tried ...
  • OwenAuger's avatar
    OwenAuger
    9 years ago

    kingchad5

     

    With the TOTALYTD or DATESYTD functions, year-to-date is defined relative to the maximum value of Dates[Date] in the filter context.

     

    If the maximum value of Dates[Date] is in 2025 and you haven't applied any Date filters,  and your 'Professional Services Quotes' table doesn't extend to 2025, then TOTALYTD changes the filter on Dates[Date] to the range 1/1/2025-31/12/2025 (assuming you have the complete 2025 calendar year in Dates), which would give you a BLANK result.

     

    Normally these functions are used in the context of days or months within a single year, and will return a YTD value within that year.