Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Bizarre behaviour from 'Remove Duplicates'

What is going on here??

I've got a column with 63 rows, of which 19 are distinct values.

I right-click and select 'Remove Duplicates' (or use the button in the ribbon, it has the same effect).

I get a list of 4 values back! It has clearly removed non-distinct values from this list.

Why is this happening? And how do I get 'Remove Duplicates' to work as expected?

  • Mariusz's avatar
    Mariusz
    7 years ago

    Hi Anonymous 

     

    Can you not use Group By Instead?

    I wonder if you will get the same result.

     

    Regards,
    Mariusz

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • Mariusz's avatar
    Mariusz
    7 years ago

    Hi Anonymous 

    You can extend "Group By" by switching to advanced, like below.

     

    21 unique values is probobly the right result as query editor previews serten amount of rows rather then loads whole table, so 19 unique values might have been incomplete.

     

     

7 Replies

  • Mariusz's avatar
    Mariusz
    Community Champion

    Hi Anonymous 

    You need to select both Columns

     

    Regards,
    Mariusz

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • Mariusz's avatar
      Mariusz
      Community Champion

      Anonymous 

      Please ingore this comment :smileyfrustrated:

      Thanks

    • Anonymous's avatar
      Anonymous
      Not applicable

      Mariusz  Same thing still happens. Same result no matter how many columns I select.

      • Mariusz's avatar
        Mariusz
        Community Champion

        Hi Anonymous 

         

        Can you not use Group By Instead?

        I wonder if you will get the same result.

         

        Regards,
        Mariusz

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.