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
Anonymous
Not applicable

bulk find and replace

Hi Everyone

 

I want to bulk remove the delimiters for all the columns containing a certain name. In this case: Price. There are 200 columns containing this -> sales price, purchasing price... etc. I want to select all the columns containing "price" and remove all the () in those columns. Any idea how can I achieve this?

 

Thanks in advance!

 

Regards, 

 
1 REPLY 1
artemus
Microsoft Employee
Microsoft Employee

Something like

Table.TransformColumns(PreviousStep, List.Transform(List.Select(Table.ColumnNames(PreviousStep), each Text.Contains(_, "price")), each {_, each Text.BetweenDelimiters(_, "(", ")")}))

 

If you also want them all converted to a number:

Table.TransformColumns(PreviousStep, List.Transform(List.Select(Table.ColumnNames(PreviousStep), each Text.Contains(_, "price")), each {_, each Number.From(Text.BetweenDelimiters(_, "(", ")")), type number}))

 

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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