cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TobiasOwen Member
Member

Bizarre behaviour from 'Remove Duplicates'

What is going on here??

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

remove-duplicates-1.PNG

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

remove-duplicates-2.PNG

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

remove-duplicates-3.PNG

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

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User
Super User

Re: Bizarre behaviour from 'Remove Duplicates'

Hi @TobiasOwen 

 

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.

 

View solution in original post

Super User
Super User

Re: Bizarre behaviour from 'Remove Duplicates'

Hi @TobiasOwen 

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

image.png

 

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.

 

 

View solution in original post

7 REPLIES 7
Super User
Super User

Re: Bizarre behaviour from 'Remove Duplicates'

Hi @TobiasOwen 

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.

Super User
Super User

Re: Bizarre behaviour from 'Remove Duplicates'

@TobiasOwen 

Please ingore this comment Smiley Frustrated

Thanks

Highlighted
TobiasOwen Member
Member

Re: Bizarre behaviour from 'Remove Duplicates'

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

remove-duplicates-4.PNG

remove-duplicates-5.PNG

Super User
Super User

Re: Bizarre behaviour from 'Remove Duplicates'

Hi @TobiasOwen 

 

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.

 

View solution in original post

TobiasOwen Member
Member

Re: Bizarre behaviour from 'Remove Duplicates'

@Mariusz  'Group By' does give me the expected list of results (21 unique, not 19 as previously indicated).

remove-duplicates-6.PNG

However I also lose the rest of the table, so it's not really a solution. Interesting that this works but 'Remove Duplicates' doesn't.

Super User
Super User

Re: Bizarre behaviour from 'Remove Duplicates'

Hi @TobiasOwen 

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

image.png

 

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.

 

 

View solution in original post

TobiasOwen Member
Member

Re: Bizarre behaviour from 'Remove Duplicates'

@Mariusz  That does give me the output I'd expect. I will mark it as a solution however I don't see it as the "right" solution. 'Remove Duplicates' clearly isn't behaving as expected and that's still the issue, even when using this workaround.

Thanks for your help!

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 6 members 3,141 guests
Please welcome our newest community members: