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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Need Start to end date total hours(DAX)

Hi All,
As per the screenshot, I want the total hours based on start to completion date (Note:- some of the completion dates are not available that time take the current date, and also weekends are not counted like Saturday, Sunday)
If anybody knows, please help me. Thanks
Start date.PNG

1 ACCEPTED SOLUTION

INT((COALESCE([Completion Date],NOW())-[Start Date]*24)

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

INT((COALESCE([Completion Date],NOW())-[Start Date))*24)

 

Excluding weekend days adds a lot (A LOT) of complexity.  You need to define what should happen when the start date or the completion date fall on a weekend day.

Anonymous
Not applicable

Thanks for sharing the information, But It's showing an error message. (Note:- I remove the last two Brackets)  Total Error.PNG

INT((COALESCE([Completion Date],NOW())-[Start Date]*24)

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.