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 Apps
Answered

Nested RemoveIf

(0) ShareShare
ReportReport
Posted on by 31

Hi!

I have trouble figuring out these nested data connections.

I want to remove each record in "InsuranceSplit" if column "InsuranceTypeSplitId" exists in the table "InsuranceTypes" BUT only where  the column "ClientSplitId" is also equal to my variable vClientSplitId.

 

"InsuranceSplit"

benyie_6-1660900004494.png

 

"InsuranceTypes"

benyie_3-1660898167168.png

 

Categories:
I have the same question (0)
  • Verified answer
    Gochix Profile Picture
    1,935 Moderator on at

    Hi @benyie ,

    You can do something like this:

    ForAll(InsuranceTypes,
    RemoveIf(InsuranceSplit,InsuranceTypeSplitId = InsuranceTypes[@InsuranceTypeSplitId] && ClientSplitId = vClientSplitId))


    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • benyie Profile Picture
    31 on at

    Sorry @Gochix ! I was too quick, this actually didn't work as expected.

     

    Because I first have to filter the table "InsuranceTypes" where the column ClientSplitId equals my vClientSplitId. After that I make the comparison and remove each record in "InsuranceSplit" if column "InsuranceTypeSplitId" exists in the filtered table "InsuranceTypes"

  • Gochix Profile Picture
    1,935 Moderator on at

    Hi @benyie ,

     

    the formula does exactly what you are asking. I’ve checked at my end before posting it and it worked fine. If this doesn’t work for you then could you explain what does the formula do so we can see what to adjust. 

  • benyie Profile Picture
    31 on at

    @Gochix Oh now I see it worked.

    I only read 500 records from database right now.

    Since this operation takes several records I couldn't first see that anything happened at all.

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!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard