Forum Discussion

Lexi's avatar
Lexi
Frequent Visitor
6 years ago

Time measures excluding weekends

Hello Power BI experts!

 

I am looking for help on some time calculations. I am fairly new to Power bi so would need step to step guide (teaching a baby to walkπŸ‘Ά) Date table below:

 

Scenario 1: 

I need to calculate the business hours between two time stamps but to only calculate the business hours (8AM-4PM) and to exclude weekends. 

 

Scenario 2:

 

I need to calculate how long its been in the queue, so from created date to now (todays date and time) and to exlude weekend time and to be within the businees working hour. 

 

From here I need to hightlight if we are gone above our criteria of priority 1 = 5 actual business days and priority 2 = 2 days.

 

Id like to include the total diffence in hours in one column and and the no days in another column. I am sorry if there has been an answer already but nothing seems to work for me and I am totally confused πŸ˜ž

 

Thanks,

Lexi πŸ¦„

 

Customer IDCreated DateCompleted Date StagePriority
0000000121/01/2020 15:37 NewPriority 1
0000164209/05/2020 10:59 NewPriority 2
0023632527/04/2020 07:5327/04/2020 09:35CompletedPriority 1
0100034420/05/2020 04:2721/05/2020 07:25CompletedPriority 2
0101345018/06/2020 04:27 NewPriority 1
0100267818/06/2020 05:2719/06/2020 04:27CompletedPriority 1

6 Replies