Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
73 | |
72 | |
38 | |
30 | |
26 |
User | Count |
---|---|
99 | |
87 | |
45 | |
43 | |
35 |