Forum Discussion

amaniramahi's avatar
amaniramahi
Icon for Helper V rankHelper V
7 years ago
Solved

TOTALYTD not working

I have read the similar posts but nothing worked with me.   I have a table with months (the end of each month date) and the sales target for each month. I need to calculate the YTD target    the...
  • AlB's avatar
    AlB
    7 years ago

    Hi amaniramahi 

    TOTALYTD does not work the way you expect it to. Check it out here

    Try this instead:

    Measure =
    CALCULATE (
    SUM ( Target[Target] ),
    Target[Month] <= TODAY (),
    Target[Month] >= DATE ( YEAR ( TODAY () ), 1, 1 )
    )