Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Create new table by removing duplicates on certain column in current table

Hi All,

 

I already have a current data (Table A) but I want to create a new table by removing the duplicates from the column "Order Number" from Table A. I don't need to transform Table A as I need it as it is, but I need a replica of Table A without the duplicates.

 

Need your help on this.

 

Thanks.

6 Replies

  • PVO3's avatar
    PVO3
    Icon for Impactful Individual rankImpactful Individual

    In Power Query right click the table and press 'Reference'. Right click the [Order number] and press 'Remove duplicates'.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Sorry, but I missed a detail. The table that I have is in Direct Query, so it does not support removing duplicates from the column.

    • PVO3's avatar
      PVO3
      Icon for Impactful Individual rankImpactful Individual

      Then what about a DAX table (data view --> table tools --> new table) then type:

      Table = Distinct([Order Number])

      Additional columns can be added by logic.

      • Anonymous's avatar
        Anonymous
        Not applicable

        this should be helpful but the result of the query exceeded 1M rows