Forum Discussion
Help with DAX
Ah, sorry....there is a column that says 'Late_hours'...if the value is 0 then they are not late, if the value is over zero, then they are late.
So the challenge is rolling this up...for the 4 weeks in Feb 2023 they may have zero late hours for 3 weeks and more than zero in one of the weeks. If the Power BI report I want them to appear only as 'Late' if I select all 4 weeks. Thanks for your help on this.
- tamerj13 years ago
Community Champion
- PbiwithPrasad3 years ago
Helper I
Small correction in the dax
IF ( SUM ( 'Table'[Late_hours] ) =0, "Not Late" ,"Late")
- AndyDD_UK3 years ago
Helper III
Thanks, but my answer is still as above. That will return "Late" or "Not Leve" at row level where each row represents one employee and week
I need to summarize by employee based on the weeks selected.
- AndyDD_UK3 years ago
Helper III
Yes, that will give me answer by week. Example for employ 123,
Week 1 = Not Late
Week 2 = Not Late
Week 3 = Not Late
Week 4= Late
If I select all 4 weeks I want the DAX to show them as Late.
Basically work want to select a bunch of weeks and see who has not filled out their timesheets on time. Imagine there are 100 employees they don't want to see the same 100 employees in the table as both Late and Not Late.. they;re either Late or On time for the period selected