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
jleibowitz
Regular Visitor

Removing rows based on a set of conditions

I am trying to remove rows of data that show duplicate information. However, the rows I would like to remove would need to be based on a set of conditions. For example, I have a set of customer data and would like for duplicates to be removed if the customer full name AND the customer address are both the same. I know you can remove rows in query editor but from the looks of it you can only remove duplicates based on a single column and that would not work. Thanks!

1 ACCEPTED SOLUTION
Hasan
Resolver I
Resolver I

You can select the multible colums in Query Editor mode and remove the dblicates also

View solution in original post

5 REPLIES 5
jleibowitz
Regular Visitor

Thank you for the the help. All solutions worked and are used in different scenarios.

Hasan
Resolver I
Resolver I

You can select the multible colums in Query Editor mode and remove the dblicates also

Greg_Deckler
Super User
Super User

Create a new column that concatenates your two columns, use that to remove duplicates.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

This doesn't work for me as what I have to concatenate is a date (24/07/2017) a number (1234) and a town (London) 

It works in dax but doesn't in power query

vanessafvg
Super User
Super User

@jleibowitz you can highlight the columns you want to remove duplicates, right click and boom  remove duplicates in M (power query)





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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.