cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
numersoz
Helper III
Helper III

Filter by Multiple Conditions

Hi, 

 

I've noticed that due to a bug in my data, one of the products has a value displayed wrong. I would like to remove the rows where these values are.

 

The callenge I have is, I can't simply apply a filter to Values column as there are multiple products. I want to remove the rows where the column Values are lower than a value and the column Products are equal to a specific product name.

 

What would be the best way to accomplish this in Power Query?

1 ACCEPTED SOLUTION
Jimmy801
Super User III
Super User III

Hello @numersoz 

 

you can use Table.SelectRows and adapt the filter section like this:

Table.SelectRows(PreviousStep, each [Product] = "Productname" and [ValueField] < 100)


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

View solution in original post

2 REPLIES 2
Jimmy801
Super User III
Super User III

Hello @numersoz 

 

you can use Table.SelectRows and adapt the filter section like this:

Table.SelectRows(PreviousStep, each [Product] = "Productname" and [ValueField] < 100)


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

View solution in original post

camargos88
Community Champion
Community Champion

Hi @numersoz ,

 

You can create a custom column and refer to those columns, like:

 

if [Product] = "ABC" and [Value] < 100 then 1 else 0

 

if ([Product] = "ABC" or [Product] = "BCA") and [Value] < 100 then 1 else 0

 

After it, you can filter out the rows you don't need.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Kudoed Authors