Power BI: delete duplicates

To remove duplicates, I have to go in Power Query Editor by clicking on “home -> transform data -> transform data”:

power bi

To delete duplicates in a column, I will select the column then right click on the header to select “remove duplicates”:

power bi power bi

To delete duplicates in a list of values, click on “add column -> custom column”:

power bi

Then put this formula:

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

power bi

NOTE: change argument by yours

power bi

If my table combines both columns like that:

power bi

First, I will have to group my data based on “number” then combine all values of “support”, to know how to do it, read my article Power BI: combine multiple values. Once done, I will use the formula above to remove duplicates:

power bi

Interesting Topics