Forum Discussion
keylian031987
3 years agoRegular Visitor
Identify same text but with one different word
Hello, I have a problem in my query where I have this titles that are the same, but the difference is that one says Spanish at the end, and the other one says English. Their ID is also diff...
- Anonymous3 years ago
Hi keylian031987 ,
My solution is to split English and Spanish, and then filter out English or Spanish to keep one.
Sample data:
1.Split Column By Delimiter
2.Filter the Column1.2
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Vijay_A_Verma
3 years agoMost Valuable Professional
Here is a solution
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSkxKVjAyMDLWNTJV0FUILkjMyyzOUIrViVZKSU1DknHNS8/BLoOsB9U0t6LUvGSIREVlFZKEc0ZmXmpxKhYtcGtiAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Title = _t]),
#"Added Custom" = Table.AddColumn(Source, "Custom", each Text.BeforeDelimiter([Title], " - ")),
#"Removed Duplicates" = Table.SelectColumns(Table.Distinct(#"Added Custom", {"Custom"}), "Title")
in
#"Removed Duplicates"