Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 bonuses
So in the end I want to recieve this:
Solved! Go to Solution.
HI @GeorgiBarov
Please try this...revision
YTD Bonus = CALCULATE ( SUM ( Table1[Bonus] ), FILTER ( ALLEXCEPT ( Table1, Table1[Employee] ), Table1[Bonus Date] <= SELECTEDVALUE ( Table1[Bonus Date] ) ) )
HI @GeorgiBarov
Try this MEASURE
YTD Bonus = CALCULATE ( SUM ( Table1[Bonus] ), FILTER ( ALL ( Table1[Bonus Date] ), Table1[Bonus Date] <= SELECTEDVALUE ( Table1[Bonus Date] ) ) )
Hi @Zubair_Muhammad and thank you for the reply 🙂
I tried it and it works with the simple example which I gave, but when I tried it to use it in more complex dataset I recieved this:
And here is the data set and formula:
Have you got any suggestions why this happened?
Thank you in advance 🙂
HI @GeorgiBarov
Please try this...revision
YTD Bonus = CALCULATE ( SUM ( Table1[Bonus] ), FILTER ( ALLEXCEPT ( Table1, Table1[Employee] ), Table1[Bonus Date] <= SELECTEDVALUE ( Table1[Bonus Date] ) ) )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |