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

Add values of column HH:MM:SS

I have a column which is in format HH:MM:SS of type Text.

When i try to convert it to time it gets changed to like from 00:00:13 to 12:00:13  and when i change it

to whole number it gives an error .

Basically i want to add values of HH:MM:SS and plot it against date in bar chart.

Let me know how can i do it.

Thanks!

5 REPLIES 5
Greg_Deckler
Community Champion
Community Champion

@Anonymous Use Duration to Seconds and Chelsie Eiden's Duration:

Duration to Seconds Converter - Microsoft Power BI Community

Chelsie Eiden's Duration - Microsoft Power BI 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...
Anonymous
Not applicable

Your formula is not working giving me error . My seconds is in decimal like 180.003 . Do i need to remove

decimals so that the formula should work?

Anonymous
Not applicable

Hi @Anonymous 

How did you get 180.003 by that code? Your text time is HH:MM:SS. What do your hour, minute or second look like, whole number or decimal number? Does it look like 00:03:0.003?

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@Anonymous Leave your column as Text and use Duration to Seconds to convert it to seconds. You can then use Chelsie Eiden's Duration to return a numerical value that displays as HH:MM:SS. If you can provide some sample data as text I can be more specific.



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...
amitchandak
Super User
Super User

@Anonymous , I doubt power bi y axis support time. You can use time in second or minute

 

example

left([col])*3600 + mid([column],3,2)*60 + right([column],2)*1

 

and use that in visual y axis

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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