Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello, I am creating an employee page that shows the last position, last location etc.
On the same page I want to have the employees monthly Overtime but everytime it just shows the total overall overtime instead of that employee I selected in the filter. Any Ideas? Ross
Do I need a measure?
try this measure. I can't be 100% certain this will do what you need without a sample dataset.
Assumes that Month is abbreviated month name i.e. JAN/FEB/MAR rather than full name or number.
If full name then change "MMM" to "MMMM"
For month number change FORMAT(TODAY(),"MMM") to MONTH(TODAY())
Assumes that you are selecting a specific employee number from a slicer
=CALCULATE( SUM('DB Overtime Master'[Total]), FILTER('DB Overtime Master', 'DB Overtime Master'[Month] = FORMAT(TODAY(),"MMM") && 'DB Overtime Master'[Year] = YEAR(TODAY()) && RELATED('DB Headcount'[Name]) = SELECTEDVALUE('DB Headcount'[Name]) ) )
Proud to be a PBI Community Champion