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
New Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (2,021)