Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
i have a list of multiple customers with employees that all start and end at different times (by company/site). I have calculated a measure to work out the average start time and the average end time, based off clock in time and clock out time.
Example Data:
Thanks
ok thanks, i was hoping that the average clock in and clock out time could be used as a benchmark against each employee's clock in time as i dont have this info.
Don't despair 🙂 I can see you want something like a dynamic labelling. It's totally doable but you still have to define what you mean by Early, Late... For instance, does Early mean "before the average"? Or "more than 10 minutes before the average"? And is Late "20+ mins after the average"? You have to define this.
Not enough info to solve this. For instance, nobody knows (but you) what the definitions of Early, On Time and Late are.
By the way, your formula does too many redundant things. If you exec this in DAX Studio
EVALUATE
var Time_ = TIME(20, 2, 1)
return
{Time_, Time_ + time(0, 0, 0)}
you'll notice that the results are exactly the same. Hence, your IF is redundant.
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
25 | |
12 | |
11 | |
10 | |
6 |