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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors
Top Kudoed Authors