Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Filter a table with a table of values

(1) ShareShare
ReportReport
Posted on by 97
I'm trying to figure out how to format this filter. I have a collection of data in a gallery. When a user selects an item, it gets copied into a second collection. How do I filter the first collection so that the items in the second collection are no longer shown. Here is the filter as it stands, All of the other filters need to be available too. The way I've formatted it gives me the comparison error: Table,Text. To the user, this should look to the user like the item is moving from one gallery to another.
 
GroupBy(Filter(colFirstCollection,
(TextInputCanvas1_2.Value in KEY Or IsBlank(TextInputCanvas1_2.Value)),
(txtHRMNIDsearch_1.Value in EMPID Or IsBlank(txtHRMNIDsearch_1.Value)),
(If(CheckboxCanvas1_7.Checked,Covering=true,Covering=true Or Covering=false)),
(txtEmailSearch_1.Value in EmailID Or IsBlank(txtEmailSearch_1.Value)),
(colSecondCollection.KEY<>KEY)// this is where I tried excluding all of the KEY items in the second collection
),KEY,UserDetail)
Categories:
  • Verified answer
    WarrenBelz Profile Picture
    146,524 Most Valuable Professional on at
    Filter a table with a table of values
    See bottom line of filter - some other suggestions in there as well
    GroupBy(
       Filter(
          colFirstCollection,
          TextInputCanvas1_2.Value in KEY Or Len(TextInputCanvas1_2.Value) = 0,
          txtHRMNIDsearch_1.Value in EMPID Or Len(txtHRMNIDsearch_1.Value) = 0,
          CheckboxCanvas1_7.Checked && Covering Or !Covering Or !CheckboxCanvas1_7.Checked,
          txtEmailSearch_1.Value in EmailID Or Len(txtEmailSearch_1.Value) = 0,
          !(KEY in colSecondCollection.KEY)
       ),
       KEY,
       UserDetail
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard