Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
How do I remove special characters from a text in a column? Can I do it by using 'Replace values' or do I have to create a custom column? I tried using replace values [""] with blank but that didn't work.
Appreciate any help
Solved! Go to Solution.
Hi @Anonymous
If you want to remove [""] then you need to treat these as different characters if they appear in a string as shown in your image.
So do Replace values 3 times, once for each character.
Regards
Phil
Proud to be a Super User!
Great.....Just a single statement is needed. No need to do replacement 3 times. In below, replace Source with your previous step and Data with your column name.
= Table.ReplaceValue(Source,each [Data],each Text.Remove([Data],{"[","]",""""}),Replacer.ReplaceValue,{"Data"})
What is the result expected from the replacement which you want to make? Do you want to replace only quotes, brackets or also comma and -?
Hi @Anonymous
If you want to remove [""] then you need to treat these as different characters if they appear in a string as shown in your image.
So do Replace values 3 times, once for each character.
Regards
Phil
Proud to be a Super User!
Great.....Just a single statement is needed. No need to do replacement 3 times. In below, replace Source with your previous step and Data with your column name.
= Table.ReplaceValue(Source,each [Data],each Text.Remove([Data],{"[","]",""""}),Replacer.ReplaceValue,{"Data"})
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |