Forum Discussion

venug20's avatar
venug20
Resolver I
7 years ago
Solved

Remove Duplicate Rows in Query Editor

Hi Everyone,

 

i have data like below...

 

I want to remove duplicate row "Data level & District & Cust ID"....

 

 

Data LevelDistrictSales ValueCustomer id
District levelBagpat1037764.2670
District levelBagpat1037764.2670
District levelBagpat1037764.2670
District levelBijnor1037764.2670
District levelBijnor1037764.2670
District levelBijnor1037764.2670
District levelBijnor1037764.2670
State levelAgra1037764.2670
State levelAgra1037764.2670
State levelAgra1037764.2670
State levelAligarh1037764.2670
State levelAllahabad1037764.2670
State levelAllahabad1037764.2670
State levelAllahabad1037764.2670
State levelAllahabad1504302.6929
District levelAllahabad1504302.6929
State levelAmbedkar Nagar1037764.2670
State levelAmethi97057.1666730
District levelAmethi97057.1666730
State levelBahraich995953.166721
District levelBahraich995953.166721
State levelBudaun2846124.4123
District levelBudaun2846124.4123
State levelGhazipur408607.166727
District levelGhazipur408607.166727
State levelHardoi1676610.3524
District levelHardoi1676610.3524
State levelPratapgarh1534924.01722
District levelPratapgarh1534924.01722

 

Pls provide solution to this data.... Thanks in advance...

 

7 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi venug20,

     

    Select all columns in question and then right click one of them. Then select Remove Duplicates and that should do the trick.

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    Br,

    T

     

     

    • venug20's avatar
      venug20
      Resolver I

      Anonymous

       

      I am not able get correct output after remove duplicates. Pls share PBIX file using my sample data if possible...

      • Anonymous's avatar
        Anonymous
        Not applicable

        venug20

         

        Heres a PBIX: Duplicate removal

        See the "Removed Duplicates" table in the query editor

         

        Br,

        T