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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors
Users online (2,483)