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
SunnyDay85
New Member

Convert Seconds to Hours and Mins

 
1 ACCEPTED SOLUTION
Khushidesai0109
Super User
Super User

Hiii @SunnyDay85 

please use this measure to get seconds in hour and minutes

TotalHoursMinutesMeasure =
VAR TotalSeconds =
SUM ( 'Table'[Seconds] )
VAR TotalMinutes =
QUOTIENT ( TotalSeconds, 60 )
VAR RemainingSeconds =
MOD ( TotalSeconds, 60 )
VAR TotalHours =
QUOTIENT ( TotalMinutes, 60 )
VAR RemainingMinutes =
MOD ( TotalMinutes, 60 )
RETURN
FORMAT ( TotalHours, "00" ) & ":"
& FORMAT ( RemainingMinutes, "00" ) & ":"
& FORMAT ( RemainingSeconds, "00" )

Khushidesai0109_0-1721718276044.png

 




If it helped you, then please consider Accepting it as the solution to help the other members find it more quickly and also give a thumbs-up

Proud to be a Super User!!

View solution in original post

5 REPLIES 5
Khushidesai0109
Super User
Super User

Hiii @SunnyDay85 

please use this measure to get seconds in hour and minutes

TotalHoursMinutesMeasure =
VAR TotalSeconds =
SUM ( 'Table'[Seconds] )
VAR TotalMinutes =
QUOTIENT ( TotalSeconds, 60 )
VAR RemainingSeconds =
MOD ( TotalSeconds, 60 )
VAR TotalHours =
QUOTIENT ( TotalMinutes, 60 )
VAR RemainingMinutes =
MOD ( TotalMinutes, 60 )
RETURN
FORMAT ( TotalHours, "00" ) & ":"
& FORMAT ( RemainingMinutes, "00" ) & ":"
& FORMAT ( RemainingSeconds, "00" )

Khushidesai0109_0-1721718276044.png

 




If it helped you, then please consider Accepting it as the solution to help the other members find it more quickly and also give a thumbs-up

Proud to be a Super User!!
Anonymous
Not applicable

Excellent got this to work for me and was exactly why I registerd for an account here. Thank you

Hiii @SunnyDay85 
Please see the updated measure and solution

Proud to be a Super User!!
Anonymous
Not applicable

Hi, @SunnyDay85 

You can try @Greg_Deckler way. Or you can refer to the following link.

Solved: Convert Seconds to Hours - Microsoft Fabric Community
Solved: Converting seconds into day hours min sec - Microsoft Fabric Community

Best Regards,
Yang

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Greg_Deckler
Community Champion
Community Champion

@SunnyDay85 Chelsie Eiden's Duration - Microsoft Fabric Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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