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
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
v-qiuyu-msft
Community Support
Community Support

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

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

 

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.

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.