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!Get Fabric certified for FREE! Don't miss your chance! Learn more
Hi everyone,
How do I apply a text method in M code to a whole column?
I have
| ColumnA | ColumnB |
| 1 | abcFred |
| 2 | abcJane |
| 3 | Markabc |
| 4 | Jamabces |
| 5 | Emmabca |
I want
| ColumnA | ColumnB |
| 1 | Fred |
| 2 | Jane |
| 3 | Mark |
| 4 | James |
| 5 | Emma |
I know that I can use this method:
Text.Remove(text as nullable text, removeChars as any) as nullable text
But I can't work out what to put as the arguments if I want the function to work over a whole column.
Thanks
Solved! Go to Solution.
In the query editor, select your column and click on Replace Values in the ribbon. Just leave the 2nd field blank.
Pat
Try this one= Table.ReplaceValue(#"Changed Type","abc","",Replacer.ReplaceText,{"Column2"})
Hope this helps!
Try this one= Table.ReplaceValue(#"Changed Type","abc","",Replacer.ReplaceText,{"Column2"})
Hope this helps!
In the query editor, select your column and click on Replace Values in the ribbon. Just leave the 2nd field blank.
Pat
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 59 | |
| 44 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 104 | |
| 102 | |
| 37 | |
| 26 | |
| 25 |