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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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