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.

View solution in original post

Thanks! Worked Perfectly!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (25,863)