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

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
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.