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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Text to time data format conversion error

Hi All,

 

I am using data imported from text file. One of the column has time value "mm:ss.0" which is considered as text.

 

I am trying to convert the same to time format but it gives me an error. I have only time values in volumn not date and time.

Error Message after ConversionError Message after ConversionActual time value as text in columnActual time value as text in column

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I am new to Power BI and any help will be helpful!

 

Thanks,
Rax

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi Rax,

 

Actually, the mm:ss isn't a valid time format. It's better to call it duration. I would suggest you add one step to replace these values and then change the format to Time. Please refer to the snapshot below.

#"Replaced Value" = Table.ReplaceValue(Source,each [Time],each "00:" & Text.Middle([Time], 0, 5),Replacer.ReplaceText,{"Time"}),

Text-to-time-data-format-conversion-error

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi Rax,

 

Actually, the mm:ss isn't a valid time format. It's better to call it duration. I would suggest you add one step to replace these values and then change the format to Time. Please refer to the snapshot below.

#"Replaced Value" = Table.ReplaceValue(Source,each [Time],each "00:" & Text.Middle([Time], 0, 5),Replacer.ReplaceText,{"Time"}),

Text-to-time-data-format-conversion-error

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.