Forum Discussion
rbreneman
4 years agoHelper II
Remove duplicate and control which row stays
Hi! I have a pretty simple query, two columns. Column A is the name of a school and column B is an ID number. I want to remove the duplicate ID number, but keep the row that has the shortest name. T...
- 4 years ago
NewStep=Table.FromRecords(Table.Group(PreviousStepName,"ColumnB",{"n",each Table.Min(_,each Text.Length([ColumnA]))})[n])
rbreneman
4 years agoHelper II
Thank you all for your proposed solutions! I decided to go with wdx223_Daniel's solution as it was the simplest to implement. It works perfectly!
Thanks again!