Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
78 | |
75 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |