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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Remove Duplicates in a single cell Power Query

See below's image as an example.  The output should just say Tom Kinney one time.  If there are any duplicate values, separated by the delimiter, they should be removed.

 

Thanks in advanced,

Ryan Mulhollem

 

Power BI Help.PNG

4 REPLIES 4
kinga
Helper I
Helper I

Hello, I was able to follow this logic and it worked for me. Thank you so much. I am wondering if it is possible to take it one step further. Instead of simply removing the duplicates - could it display as Tom Kinney x3?

Zubair_Muhammad
Community Champion
Community Champion

@Anonymous 

 

Try this custom column from Query Editor.

Replace ColumnName with actual Name of your Column

 

=Text.Combine (
                List.Distinct(
                          List.Transform (Text.Split([ColumnName],","),each Text.Trim(_))
                                  )
                     ,", ")

 


Regards
Zubair

Please try my custom visuals

Worked like a charm, thanks

Anonymous
Not applicable

Seems like a very simple solution but I cannot figure this out for the life of me Smiley Sad

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.