Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join 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.

Reply
keylian031987
Regular 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.

keylian031987_0-1689012695572.png

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!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @keylian031987 ,

 

My solution is to split English and Spanish, and then filter out English or Spanish to keep one.

Sample data:

vstephenmsft_0-1689216952969.png

 

1.Split Column By Delimiter

vstephenmsft_1-1689216966357.png

vstephenmsft_2-1689217016562.png

vstephenmsft_3-1689217029067.png

2.Filter the Column1.2

vstephenmsft_4-1689217056227.pngvstephenmsft_5-1689217061195.png

                                                                                                                                                         

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.           

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @keylian031987 ,

 

My solution is to split English and Spanish, and then filter out English or Spanish to keep one.

Sample data:

vstephenmsft_0-1689216952969.png

 

1.Split Column By Delimiter

vstephenmsft_1-1689216966357.png

vstephenmsft_2-1689217016562.png

vstephenmsft_3-1689217029067.png

2.Filter the Column1.2

vstephenmsft_4-1689217056227.pngvstephenmsft_5-1689217061195.png

                                                                                                                                                         

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
Super User
Super User

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"

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.