Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How to hide/remove duplicates based on condition

Hi, how do I hide/remove duplicate rows based on the following condition: if [JobID+Ticket] column contains duplicate, keep row with the highest [Sequence] number and remove the other duplicate row...
  • AlexisOlson's avatar
    AlexisOlson
    4 years ago

    I'm guessing that it eliminated duplicates for each file individually but there were duplicates across files. I guess you do have to de-duplicate after combining the files then.

     

    In this case, you use the same code (with any step references adjusted, e.g. #"Merge Columns" --> #"Inserted Merged Column") but put it at the end of the FreightForward v2 query rather than the Transform Files (2) function.

     

    If you're going to use a database eventually, you might want to try approach #4 from my blog post.