pbix in OneDrive: https://1drv.ms/u/s!Aj43wr7aCxS_1jxQtptl6nx5r_re?e=ThSWml
I would like to show if the hours were worked as scheduled. Also if they were late, absent, or on-time.
I'm struggling understanding how to model or create measures that compare without running into circular references.
the file is restricted due to the sensitivity label
Proud to be a Super User!
Thanks! Updated it to Public.
What's the expected output based on the sample data?
Proud to be a Super User!
I would like to show if the hours were worked as scheduled. Also if they were late, absent, or on-time.
you can try something like below
Measure =
VAR _start=max(Schedule[Start Time])
VAr _end=max(Schedule[End Time])
VAR _scanstart=max(Timesheet[ScanInTime])
VAR _scanend=max(Timesheet[ScanOutTime])
return if(ISBLANK(_start),blank(),if(_scanstart>_start,"late",if(ISBLANK(_scanstart),"absence","ontime")))
Proud to be a Super User!
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
User | Count |
---|---|
125 | |
78 | |
68 | |
56 | |
56 |
User | Count |
---|---|
200 | |
104 | |
85 | |
80 | |
77 |