Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi community,
So, i have this problem:
I need to calculate working hours, considering business hour is 8:30am to 5pm, no weekends.
If we receive a request after 5pm and its not attended the same day, it should start counting at 8:30am of the next day.
Any help? Thank you!!
(FechaSolicitudOS = start date / FechaRegistroOS= end date)
HI @HugoTMO
Please check this link:
https://community.powerbi.com/t5/Desktop/Calculating-Working-hours/td-p/374255
_______________
If I helped, please accept the solution and give kudos! 😀
Hi @lkalawski
I tried that solution and i have this issue:
- An argument of function 'TIME' has the wrong data type or the result is too large or too small. -
I already verified that those columns are datetime type..
Any ideas?
Hi @az38,
You are right, you'll see below the statement im using.
Thanks!
I double checked and its date-time type although there are some blank spaces in that column.
Any other ideas?
Thanks.
Hi @HugoTMO,
I think you answered your question, there are nulls in the data
Proud to be a Super User!
I´ve linked Pbi with our database, thats why i´ve got some blanks in that column. Since i am trying to measure SLA i wont take in consideration operations that have no data on that column (become from an internal process that we dont wanna control).
I hope that answers your question, as a return i dont mind if says "Dont Use" or so.
Thanks,
I did what you suggested and i have the error of function "TIME".
Maybe a problem with the code? Any value to change?
Thanks,