Forum Discussion

gianmarco's avatar
gianmarco
Icon for Helper IV rankHelper IV
5 years ago
Solved

Remove duplicates based on multiple conditions in Power Query

Dear All,

I have the following table:

ProdNameCodeValueSourceCodeQ.ty
AppleNFOE748913
AppleDNSA748913
KiwiFDAD748914
AppleNFOE551173


I want to remove duplicates based on the following conditions:

1) Equal Prodname

2) Different CodeValue

3) Equal SourceCode

 

So that my table would become as follows:

ProdNameCodeValueSourceCodeQ.ty
AppleNFOE (or DNSA)748913
KiwiFDAD748914
AppleNFOE551173

 

 

Is this operation possible?

 

Thank You for your help

 

  • In the query editor, hold Ctrl and select the ProdName and SourceCode columns, then under Remove Rows pull down choose Remove Duplicates.

     

    Pat

     

2 Replies

  • mahoneypat's avatar
    mahoneypat
    Icon for Microsoft Employee rankMicrosoft Employee

    In the query editor, hold Ctrl and select the ProdName and SourceCode columns, then under Remove Rows pull down choose Remove Duplicates.

     

    Pat