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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

October NL Carousel

Fabric Community Update - October 2024

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