Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I need to calcualte two datetime stamp difference with the working hour consideration.
I have extracted the time (field name: TMS[Arrived_time]) from the datetime stamp,like:
16:40:00, 08:00:00, ,,,,,,,
working hour start at 08:30:00, end at 23:00:00
but when i write the fuction like below:
If_working_hour_flag_arrived = if(and(TMS[Arrived_time]>=TMS[Working_hour_Start],TMS[Arrived_time]<=TMS[Working_hour_End]),1,0)
the result are all 0,
but for TMS[Arrived_time] =16:40:00, the result should be 1.
Anyone have some thoughts?
Solved! Go to Solution.
You may add TIMEVALUE Function to convert to a time.
You may add TIMEVALUE Function to convert to a time.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |