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.
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,
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}))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.