Forum Discussion

GeorgiBarov's avatar
GeorgiBarov
Frequent Visitor
8 years ago
Solved

Year-to-date per category

Hi guys,   I have to create Year-to-date measure to recieve the bonus of every emloyee Let me explain in the example. This is my table and I want to get summurized information about year-to-date ...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    8 years ago

    HI GeorgiBarov

     

    Please try this...revision

     

    YTD Bonus =
    CALCULATE (
        SUM ( Table1[Bonus] ),
        FILTER (
            ALLEXCEPT ( Table1, Table1[Employee] ),
            Table1[Bonus Date] <= SELECTEDVALUE ( Table1[Bonus Date] )
        )
    )