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

View all the Fabric Data Days sessions on demand. View schedule

Reply
ThomasWeppler
Super User
Super User

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.