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 / Remove Item in collect...
Power Apps
Answered

Remove Item in collection if Item is esist in collection_b

(0) ShareShare
ReportReport
Posted on by 4

Hi,

 

I try to remove the collection item by checking another collection, if item is exist in other collection then would like to remove it from main collection, let me share an example below

 

ClearCollect(colListofPeople, {Result: "A"},{Result: "C"}, {Result: "Z"});

ClearCollect(colAvailablePerson, {Value: "A"}, {Value: "B"});

tried to iterate colListofPeople one by one to check colAvailablePerson, if exist then delete (currently "a" is the common) the respective record.

so the final result should look like:

hsyn_tknlp_0-1665135966246.png

 

thank you

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,844 Super User 2026 Season 2 on at

    Hi @hsyn_tknlp ,

     

    I suggest using the RemoveIf function for that:

     

    RemoveIf(colListofPeople, Result in colAvailablePerson.Value)

     

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-remove-removeif

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard