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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
nsaray
Helper II
Helper II

Convert Time to Number

Hi

 

I have a time  field. I want to convert the time to a number like the below

 

22:01pm >22.01

15:00pm > 15.00

9:06am > 9.06

 

Can anyone help

 

Thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@nsaray ,

if field is of time type

 

a new column

= format([time], "HH.MM")

 

or

hour([Time]) *100 + minute([Time])

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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@nsaray ,

if field is of time type

 

a new column

= format([time], "HH.MM")

 

or

hour([Time]) *100 + minute([Time])

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

Thank you!

I had to update it to this and it worked, so thanks for the suggestion

(hour([Time]) *100 + minute([Time]))/100

This is the correct answer 

Time.Hour([Duration])+Time.Minute([Duration])/60

 

if you have 01:30:00

previous solution would give you 1.3 hours

my solution gives 1.5 hours

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.