Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ThomasWeppler
Skilled Sharer
Skilled Sharer

How to remove the rigth dublicate values?

Hi Power Bi community

I have a table with many forms where questions can be answered.

It haves a colum called object_id (can be multiples but I only want one)

It also has a colum called accepted (which can be true or false)

And there are also other less important colums for this task.

I only want one row for each diffrent object_id. So remove duplicate should work, but if one or more of the row has the value true() in the accepted column then I want that one to be included.
I tried to sort the accepted colums first by true or false but it didn't seem to solve the issue.
Any ideas of what I could try next? All help is greatly appricacted.

1 ACCEPTED SOLUTION
dufoq3
Super User
Super User

Hi @ThomasWeppler, you have few options:

 

  1. filter out false values before removing duplicates
  2. use Table.Buffer function after sorting and then remove duplicates
  3. remove duplicates using Group By button

Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

View solution in original post

3 REPLIES 3
dufoq3
Super User
Super User

Hi @ThomasWeppler, you have few options:

 

  1. filter out false values before removing duplicates
  2. use Table.Buffer function after sorting and then remove duplicates
  3. remove duplicates using Group By button

Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

Hi @dufoq3 

Thanks for the answer.
I when with the group by function. I changed "yes" to 1 and "no" 0 I summed it up and this way I could see if yes was selected in one of the object_id thenit would be a number larger than 0. From there it was pretty easy.

Thanks for the help and getting me in the right direction. 🙂


Glad to help. You're welcome.


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors