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 rows from a col...
Power Apps
Unanswered

Remove rows from a collection OR Data Table based on two column values

(0) ShareShare
ReportReport
Posted on by 204

Hi All,

 

I have two collections and want to remove rows from the first collection if the Row exists in the second collection.

 

Collection 1 

NewNW_0-1659431472236.png

 

How this look in the data table 

NewNW_1-1659431557740.png

 

The second collection 

NewNW_2-1659431633112.png

 

How this looks like in the Data table

NewNW_3-1659431793185.png

 

I want to remove rows from the first data table if column 1 ID and Column 2 Name match with data table 2. 

Thanks.

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at
    • Hi,
      Below is working example of removing from a table : 
      ClearCollect(tabA, Table({TitleA: "A", IDA: 1}, {TitleA, "B", IDA: 2}, {TitleA: "C", IDA: 3})); ClearCollect(tabB, Table({TitleB: "A", IDB: 1, Name: "ABC"}, {TitleB: "B", IDB: 2, Name: "XYZ"}, {TitleB: "D", IDB: 4, Name: "Test"})); ForAll(tabA, Remove(tabB, First(Filter(tabB, IDB = IDA && TitleB=TitleA))))
  • NewNW Profile Picture
    204 on at

    @NandiniBhagya20 

    Thank you very much for your reply, I tried the following, but it is not working.

    ForAll(SearchedApprovalColl,Remove(SearchApprovalResponseColl,First(Filter(SearchApprovalResponseColl,'Approval Id Index'= 'Approval Id Index' && 'Owning User'.'Full Name' = 'Owning User'.'Full Name'))))

     

    Following are the two Dataverse tables I m using to create collections 1 and 2 .  I want to remove rows from table 1 if matching row is exist in table 2 , then display the result in a data table.

     

    NewNW_0-1659443749153.png

     

    NewNW_1-1659443799637.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard