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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
manutd
Regular Visitor

trying to convert to [h]:mm

in the query editor, i converted the duration column to a decimal data type (i applied these changes) and went to the table editor and i was about to add a column:

New Duration = FORMAT(TableName[Duration], "HH:mm:ss")

 

but before i added this (the new column) i noticed that the duration (decimal format column) was filled with values of 0 (but in the query editor it didn't have values of zero)? 

4 REPLIES 4
v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi @manutd,

 

Which data type do you use for your original duration column? Could you please provide us some sample data, so that we can make further analysis.

 

Regards,

Charlie Liao

evi.gif

evi.gif

 

 

 

In excel the column is h:mm, but in power bi it auto changes to decimal, but when i covert from decimal to h:mm (in bi) the value shows as zero in the table editor.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.