Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
GenericUser1
Helper I
Helper I

Anyone know how to count the number of hours responded to within business hours?

Example: Helpdesk has a limited amount of hours before they have to actually respond to a customer, otherwise they'd have to pay the customer if that condition of hours is not met. The things is, only business hours count, which are 9 am to 5pm. So if I client called at 6pm and helpdesk responds at 9am, the hours between 6pm and 9am don't count towards the conditioned hours. The number of the conditioned hours are only counted within business hours.

 

anyone know how to do this? lol. I'm guessing some sort of filtering but I'm not very good with structuring my dax

 

1 ACCEPTED SOLUTION
v-danhe-msft
Employee
Employee

Hi @GenericUser1,

From your description, you could refer to below link:

https://community.powerbi.com/t5/Desktop/Calculate-Time-Difference-with-Odd-Working-Hours/td-p/49052...

And if it could not solve your problem, could you please offer me some sample data and post your desired result if possible?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-danhe-msft
Employee
Employee

Hi @GenericUser1,

From your description, you could refer to below link:

https://community.powerbi.com/t5/Desktop/Calculate-Time-Difference-with-Odd-Working-Hours/td-p/49052...

And if it could not solve your problem, could you please offer me some sample data and post your desired result if possible?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
GenericUser1
Helper I
Helper I

Might have to use multiple calculated columns or measured for this 😕 the hours have to also exclude hours in the weekend

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.