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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
v-stephen-msft
Community Support
Community Support

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
v-stephen-msft
Community Support
Community Support

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors
Top Kudoed Authors