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")
Solved! Go to Solution.
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.
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!
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
201 | |
71 | |
51 | |
49 | |
20 |
User | Count |
---|---|
261 | |
123 | |
86 | |
79 | |
72 |