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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.