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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
An_dy
Frequent Visitor

Bulk replace - Text to Time

Hi All,

 

I am working with a dataset that has a text field with talk time. The fields will show values like below

 

00:55:23

00:54:26

etc

 

I have a calculated column that turns that value in to seconds. So for example, 00:55:23 turns in to 3323 seconds. 

My problem is that sometimes my dataset imports time values that don't make a ton of sense. For example, we will see something like 00:60:23. When this type of value pops up my calculated column errors out and the visual does not display correctly. I can fix this by going in to query editor and manually adding a filter for that partiular value or replacing it to something that makes sense. 

 

These values will pop up randomly and break the dashboard until I can manually go in and fix it. 

Is there a way to add a step in the query editor that will auto replace based on a range? For example. anything between 00:60:00 - 00:90:00 change this to 00:59:00. 

Thanks,

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

you can convert such data to normal time like this

and then convert them into seconds

Screenshot_3.png

View solution in original post

1 REPLY 1
Ahmedx
Super User
Super User

you can convert such data to normal time like this

and then convert them into seconds

Screenshot_3.png

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.