Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Remove all duplicates in query (do not keep any duplicate instance)

Hi guys,   I have a dataset and if there are duplicit values I want to remove them completely.  How can I do that? Standard "remove duplicates" keep one instance of every duplicate, and remove the...
  • Nathaniel_C's avatar
    6 years ago

    Anonymous ,

    In Power Query, Duplicate your table, then do a Group By on one table which will count the columns and you will delete any results that are not 1, then merge the tables together on ID, then expand so that you get your original count column, delete all but your original two columns. 

    The pictures are not in exact order, but number 1 is at the bottom


     

     

     

     

     


    Let me know if you have any questions.

    If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
    Nathaniel