March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi everybody,
I've a question about calculation with 'earliest' times:
- The first time they check in on a day is the time they start working: this has to be at latest 8:00h
- I've put 'earliest' of time_from_actual in as value, but now I want to check if this value is later than 08:00h: how do I do this?
END TIME:
- The latest time they check out on a day is the time they stop working: this has to be at 17:00h or after
- I've put 'latest' of time_to_actual in as value, but now I want to check if this value is before 17:00h: how do I do this?
Also an important note: I'm working in DirectQuery mode
Is there anyone who nows how to do this? Thanks in advance for the reply
Solved! Go to Solution.
Hi @DanielB_NL ,
Please try these measures.
Measure = IF(MIN('Table'[time_from_actual]) < TIME(8,0,0), 1, 0)
Measure 2 = IF(MAX('Table'[time_from_actual]) < TIME(17,0,0), 1, 0)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @DanielB_NL ,
Please try these measures.
Measure = IF(MIN('Table'[time_from_actual]) < TIME(8,0,0), 1, 0)
Measure 2 = IF(MAX('Table'[time_from_actual]) < TIME(17,0,0), 1, 0)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
89 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |