Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I have two seperate systems where one stores the surname with ' apostrophes etc and one which stores them without.
How would I go about removing the ' from a string. I have tried using
Table.AddColumn(tb_Pers_Table, "CustomSurname", each Text.Combine(List.RemoveItems(Text.ToList([Surname]),Text.ToList(",.';")))) & " " & [CH_Name_Initials]
However it throws up an error, how would I go about doing it with Dax?
Thanks
Chris
Solved! Go to Solution.
for example remove "-" from the string
=SUBSTITUTE([columnname], "-", "")
Create a new column and insert the dax as follows
trimlastcharacter= LEFT(tablename[columnname],LEN(tablename[columnname])-1)
Hi Abi,
The apostrophe could be anywhere in ths string ie O'Neil
Thanks
C
for example remove "-" from the string
=SUBSTITUTE([columnname], "-", "")
Excellent, almost cracked my head before viewing this. Thank you very much!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
79 | |
78 | |
58 | |
36 | |
33 |
User | Count |
---|---|
95 | |
62 | |
56 | |
49 | |
41 |