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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Balwinder_micky
Regular Visitor

not able to calculate hours with measure

MS_Elapsed_hours =

VAR hrs = INT(SUM('TaskProject'[Custom time delimter]))
VAR mins = INT((SUM('TaskProject'[Custom time delimter])hrs)*60)
VAR secs = ROUND( MOD((SUM('TaskProject'[Custom time delimter]) * 60 - INT(SUM('TaskProject'[Custom time delimter])*60))*60,60),0)
RETURN
hrs & " h " & mins & " m " & secs & " s"
 
I am facing below mention error 
The syntax for 'hrs' is incorrect. (DAX(VAR hrs = INT(SUM('TaskProject'[Custom time delimter]))VAR mins = INT((SUM('TaskProject'[Custom time delimter])hrs)*60)VAR secs = ROUND( MOD((SUM('TaskProject'[Custom time delimter]) * 60 - INT(SUM('TaskProject'[Custom time delimter])*60))*60,60),0)RETURNhrs & " h " & mins & " m " & secs & " s")).
 
Looking support.
2 REPLIES 2

Dear @amitchandak ,

 

Custom time delimiter having format Whole number 

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