Forum Discussion
arinyc
Helper I
3 years agoFilter out unique values from the cell that contains multiple values
Hi, I have a column that contains multiple values and I want to create a new column that keeps the unique values only from the original one. Example: - if the multiple value is "Springfield, S...
- 3 years ago
You can solve this by adding a custom column in Power Query. On the "Add Column" tab click on Custom Coulmn option and type the next code :
Text.Combine( List.Distinct( List.Transform( Text.Split([City],","), each Text.Trim(_))),",")The result will be unique values separated by comma in each cell.
Best
lazarjo
Advocate II
3 years agoYou can solve this by adding a custom column in Power Query. On the "Add Column" tab click on Custom Coulmn option and type the next code :
Text.Combine( List.Distinct( List.Transform( Text.Split([City],","), each Text.Trim(_))),",")
The result will be unique values separated by comma in each cell.
Best