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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Time calculations

Hi,

 

I'm currently trying to copy a statement accross from Excel to DAX. The Excel one reads as below. The result outputs in h:mm in Excel.

 

(NETWORKDAYS([New End Date],BankHolidays)-1)*10/24)+([End Time]-CoreHourStart)),

 

 

DAX:

 

CALCULATE(SUM(vwDimDate[WorkingDayFlag]), DATESBETWEEN(vwDimDate[Date],MAX('Booking Scenarios'[New Start Date]), MAX('Booking Scenarios'[New End Date])))-1*10/24 + MAX(End Time, - TIME(8,0,0).

 

Could somebody please help me with this measure? Its currently working out the networks days, but not the second part.

 

 

Thanks in advance

 

Liam

 

 

 

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

The formula is abstract. It's better to share some sample data and expected out put to us.

 

Best Regards,

Jay

amitchandak
Super User
Super User

@Anonymous , refer

https://www.youtube.com/watch?v=9M1V_m-oEzc&vl=en

https://community.powerbi.com/t5/Desktop/NETWORKDAYS-type-function-in-PowerBI/td-p/154902

 

or refer to this file second page

https://community.powerbi.com/t5/Desktop/NETWORKDAYS-type-function-in-PowerBI/td-p/154902

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak ,

 

Thanks for your reply. 

 

The network days isnt the part thats incorrect. It was the second part of converting to time and then multiplying.

 

)))-1*10/24 + MAX(End Time, - TIME(8,0,0).   

 

Thanks

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors