How to extract only characters in Power BI?
To remove all numbers and show only characters in a string in Power BI, you should do the following:
Steps
At the Home
tab, click on "Edit Queries"
.
- The
Power Query Editor
would be Opened.
- From the left side, Select your table.
At the Add column
tab, click on Custom Column
.
Write the below formula based on your column name.
Extract only characters using Text.Select()
You can use Text.Select()
to extract only characters from a string in Power BI
= Text.Select([String],{"A".."z"})
Extract only characters using Text.Remove()
Also, You can use Text.Remove()
to extract only characters from a string in Power BI
= Text.Remove([String],{"0".."9"})
Get only Upper Case characters in Power BI
= Text.Select([String],{"A".."Z"})
Get only Lower Case characters in Power BI
= Text.Select([String],{"a".."z"})
Output
Download