cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
joeyb1215
Frequent Visitor

Filter with grouped condition

I was wondering if there is a way to group a filter condition. 

 

EX: I have a gallery that needs to exclude certain materials. For that I have the following:

Filter(RPTDLOADS, RPT<>"RPT", Material <> "DEL", Material <>"TCH", Material <>"RNT")

 

Is there any way to combine the Material conditions? The closest I got was the following, without any errors or warnings, but it does not filter at all. 

Filter(RPTDLOADS, RPT<>"RPT", Material <> "DEL"||"TCH"||"RNT")

1 ACCEPTED SOLUTION

Accepted Solutions
CarlosFigueira
Power Apps
Power Apps

You can use the in operator for this:

Filter(RPTDLOADS, RPT <> "RPT", Not(Material in ["DEL","TCH","RNT"]))

Notice that depending on the data source for RPTDLOADS this may generate a delegation warning. If this is not a problem, then you can use this solution.

View solution in original post

2 REPLIES 2
CarlosFigueira
Power Apps
Power Apps

You can use the in operator for this:

Filter(RPTDLOADS, RPT <> "RPT", Not(Material in ["DEL","TCH","RNT"]))

Notice that depending on the data source for RPTDLOADS this may generate a delegation warning. If this is not a problem, then you can use this solution.

Thanks! Worked Perfectly!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,732)