cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Not able to calculate working hours

Power bi,

 

I do have ready the working days for a given times BUT I am not able to calculate the working hours out if this. 

 

buinessdays = CALCULATE(SUM('Date Dim'[BusinessDays]),DATESBETWEEN('Date Dim'[Date],'open'[Created On],'open'[Today]))

 

Any idea on this issue ?

I found something in other forum but is not working for me

Column = DATEDIFF(
if(
WEEKDAY(Table1[Received_Time];2)>=5 && Table1[Received_Time]>timevalue("6:00:00 PM")
;DATEADD(Table1[Received_Time].[Date]
;8-WEEKDAY(Table1[Received_Time];2);DAY)
+TIMEVALUE("09:00 AM")
;Table1[Received_Time])
;Table1[CompletionDate]
;HOUR)

3 REPLIES 3
Moderator v-qiuyu-msft
Moderator

Re: Not able to calculate working hours

Hi @Anonymous,

 

Please share some dummy data and clarify the corresponding desired results. 

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Re: Not able to calculate working hours

Qiuyun Yu,

 

Please look at the sample raw data at :

 

https://app.powerbi.com/groups/me/dashboards/8fd3397e-88a1-41df-ae10-59069e337af8

 

Regards,

 

Jose Miguel Rojas Prendas

 

Moderator v-qiuyu-msft
Moderator

Re: Not able to calculate working hours

Hi @Anonymous,

 

I'm not able to view your dashboard. Please share sample data in Excel file and clarify desired results. 

 

Best Regards,
Qiuyun Yu 

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