Forum Discussion

yaman123's avatar
yaman123
Post Partisan
5 years ago
Solved

YTD without a date column

Hi all,    I need help with creating a measure which will give me the YTD value without a date column.    I have a measure which calculates the budget per category Total Budget Values = SUMX(VA...
  • Anonymous's avatar
    Anonymous
    5 years ago

    yaman123 

    You can create a separate distinct table to use the period as the slicer, then create a measure to get expected value.

     

    Period = DISTINCT('Table'[Period])
     
    Measure = CALCULATE(SUM('Table'[Budget Value]),FILTER(ALLSELECTED('Table'),[Category]=MAX([Category]) && [Period]<=SELECTEDVALUE(Period[Period])))

     

     

    Paul Zheng _ Community Support Team
    If this post helps, please Accept it as the solution to help the other members find it more quickly.