Forum Discussion
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 different, so the only thing that is equal is everything in the title before the language specification. I need to eliminate one of them, and only stay with one eLearning per employee.
Please help!
- 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.
2 Replies
- Vijay_A_VermaMost 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" - AnonymousNot applicable
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.