Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Removing duplicate and sorting in a keywords column

All, My customer has a following requirement. This will form of a report I am generating.    I have a keywords column that contains words like following: - Grape Grape Apple - Orange Apple Grape...
  • v-kkf-msft's avatar
    v-kkf-msft
    5 years ago

    Hi Anonymous ,

     

    After sorting, you can merge rows as follows.

    1. Select "Group By", then name the new column "Rows", group the keywords column by Index column and sum.

     


    2. You can see that the aggregated column returns error value.

     


    3. At this point, select "Advanced Editor", make the changes shown in the figure below. Which function List.RemoveItems retains the other columns except the keywords column. And the rows of the keywords column are merged group by these columns. For merging rows, you can refer to the video https://www.youtube.com/watch?v=ODLTky9z5LE .

     

    List.RemoveItems(Table.ColumnNames ( #"Sort Rows"), {"keywords column"})

     

    4. Finally, you can choose whether to delete the Index column or not.

     

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

    Best Regards,
    Winniz

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.