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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
rajrajsha
Frequent Visitor

Time converting

Hi, I have a requirment with Time format.

  - Time format in Excel is "6h 32m"

  - I want to convert this with Power query in the form of "6:53". Where minute(32) is divided with 60.

I tried this in many ways but no luck as of now.. Can someone guide me in this pleae. 

 

Thanks.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @rajrajsha 

 

My guess is that the original data contains decimal in m, like 0h 34.8m? Modify it a little bit

 

If you use 2, then 32m will be 53.33

Text.BeforeDelimiter([Column1],"h")&":"&  Text.From( Number.Round( Number.From(Text.BetweenDelimiters([Column1],"h","m"))*100/60,2))

 

Or you can go with

Text.BeforeDelimiter([Column1],"h")&":"&  Text.From( Number.Round( Number.From(Text.BetweenDelimiters([Column1],"h","m"))*100/60))

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @rajrajsha 

Vera_33_0-1644219197286.png

Text.BeforeDelimiter([Column1],"h")&":"& Text.From( Number.Round( Number.From(Text.BetweenDelimiters([Column1],"h","m"))/60,2)*100)

 

@Anonymous,

Hi

First of all thanks for attempting my query.

From long time i have been trying with multiple steps to get the above result, but not found exact output. But you cracked it with only single step.. That was really awsome.

Please find the below image, where i see two dots in the result not sure how to get out of this. I tried with RoundDown and RoundUp but no use.  Could you please help me out of this.. Rest all works fine 

 

 Time.JPG

 

Thanks for the Support

Anonymous
Not applicable

Hi @rajrajsha 

 

My guess is that the original data contains decimal in m, like 0h 34.8m? Modify it a little bit

 

If you use 2, then 32m will be 53.33

Text.BeforeDelimiter([Column1],"h")&":"&  Text.From( Number.Round( Number.From(Text.BetweenDelimiters([Column1],"h","m"))*100/60,2))

 

Or you can go with

Text.BeforeDelimiter([Column1],"h")&":"&  Text.From( Number.Round( Number.From(Text.BetweenDelimiters([Column1],"h","m"))*100/60))

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors