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 / RemoveIf not working w...
Power Apps
Answered

RemoveIf not working with lookup field?

(0) ShareShare
ReportReport
Posted on by 359

I'm trying to delete entities that match a certain criteria:

I wanted to do using a lookup field  but noticed that it doesn't seem to work.

 

This is the my code using the lookup up script:

 

RemoveIf('Purchase Requisition Copy Tos', 'Requisition Number'.'Requisition #' = "1059");

 

 

That doesn't work but when I use a text field like this, it does:

 

RemoveIf('Purchase Requisition Copy Tos', 'Requisition Number Holder' = "1059")

 

 

 Now you might think it's because the lookup field is empty,  but it's not checked it using a Gallery and the entities do have data and it's "1509".  Can it just not find the lookup field's value or something?

 

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

    Can we see an example of what builds this collection? I'm not sure how your column reference 'Requisition Number' has another reference called 'Requisition #'. I may just be unaware of this function, but I don't see how this works.

  • Mgodby Profile Picture
    359 on at

    It's a lookup field. I have the same thing in my gallery and it shows the data.

     

    lookupfield.png

     

    This is my gallery and it uses the same entity as the one I use in the RemoveIf() and it has the data I'm trying to use.

    galleryvalue.png

     

     

     

     

  • Verified answer
    v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @Mgodby ,

     

    I just tested with a similar formula like:

    RemoveIf(Custom,Lookup.fullname="xxx")

    This works for me.  


     
    What is the field type of 'Requisition #' from your source entity?

     

    Regards,

    Mona

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard