Forum Discussion
Extract text until first number
- Anonymous8 years ago
alfordtp In Power BI click on Edit Queries and then click on "Add Column" Tab and click "Custom Column" and then type the query below. The [data] can be replaced with your column name. [<col name>]
=Text.Select([data],{"0".."9"})
or you could find the first occurance of a number using the following code(this is also custom column in power query editor)
=Text.PositionOfAny([data],{"0".."9"})
alfordtp In Power BI click on Edit Queries and then click on "Add Column" Tab and click "Custom Column" and then type the query below. The [data] can be replaced with your column name. [<col name>]
=Text.Select([data],{"0".."9"})
or you could find the first occurance of a number using the following code(this is also custom column in power query editor)
=Text.PositionOfAny([data],{"0".."9"})