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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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.

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.