web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to filter base on ...
Power Apps
Answered

How to filter base on NOT...

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Good morning,

 

I<m trying to compare 2 gallery one which has the product selected and the other gallery showing the product remaining.

 

if I do this on the second gallery : 

 

Filter(
Products,
ProductName in ForAll(
galproductselected.AllItems.Product_L,
Product_L.ProductName
)
)

 

I'm getting the current product selected.

 

And If I do this : 

 

Filter(
Products,
Not(ProductName in ForAll(
galproductselected.AllItems.Product_L,
Product_L.ProductName
)
))

 

with this error code :

 

rhamza_0-1642438651958.png

 

Any hint ?

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @AJ_Z 

     

    Mate, I can't thank you enough. I've been chatting here for a long time and with other post and  I wasn't able to sort it out.  I spent literally 40hours on this problem. ( There was 3 tickets opened for similar issue all related to that and you fixed the Combobox Filtering, the gallery and the patch! ) 

     

    You went above the expectation with a real time meeting, spent 3h with me to find out that a microsoft feature doesn't allow me to filter properly. I'll let you post the solution here. ( Service quality 20 on 10 ! ) 

    Good job mate !

  • Verified answer
    AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    I am so glad I was able to help with all of the issues and thanks so much for your kind words it really does mean a lot 🙂 !

    The root cause of this issue links back to this setting once turned off an refreshed the issue was resolved:

    AJ_Z_0-1642451425139.png

    Once this was resolved the Items property of the Gallery functioned as expected and Filter worked properly.

     

    Thanks again for your kind words and good luck on your Power App Journey!!! 😄

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard