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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
grggmrtn
Post Patron
Post Patron

[Power Query] Removing rows that meet specific criteria (aka WHERE)

Hi everyone,

 

Our data is giving us redundencies that I need to correct for in PowerBI. It's a glitch that I can't get fixed within the data itself.

 

Basically what happens is that I get two rows that are *almost* identical - something like this:

PersonID	Service		Date	Received
1		A		1.1.2019	1
1		A		1.1.2019	0
1		A		2.1.2019	1
1		A		3.1.2019	1
1		B		1.2.2019	0
1		B		2.2.2019	0

There SHOULD be one line for each date, but every once in awhile I get two lines (like in the first two lines in the above table) - with the only difference being [Received].

 

I need some sort of filter that will DELETE the row if [PersonID], [Service], [Date] are identical, but where [Received]=0

 

Can anyone help?

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, select the first  3 columns, right click and select Group By.  Take the maximum of the Received column.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, select the first  3 columns, right click and select Group By.  Take the maximum of the Received column.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Awesome @Ashish_Mathur , thanks so much!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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