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 / Filter SP List Lookup ...
Power Apps
Unanswered

Filter SP List Lookup Field with Startswith

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm having trouble figuring out if this is possible and if so what the syntax would be. I have the following:

  • 2 SharePoint lists. On SP List A, a column with a list of codes (trip codes). On SP List B, a lookup column referencing those trip codes.
  • In my power app, I have a field using Choices(@'SP List B'].'Trip Code') which I am then hoping to filter using a "startswith" function. 
  • I cannot get the filter to work with startswith referencing SP List B at all. So I changed the syntax to the following: 
    • Filter(Choices([@'SP List B'].'Trip Code'),
      Value in Filter(SP List A.'Trip Code', StartsWith('Trip Code',"21")))
    • This sort of works. It is slow to load (guessing due to the multiple lookups going on) and it only returns a smaller list of trip code options, not the entire list filtered down to those trip codes starting with 21. 
    • The original column trip code is a text field, not numeric. 

I've tried to figure this out using @CarlosFigueira post here, Solved: How to filter choices() on Combobox - Power Platform Community (microsoft.com), but no luck. 

 

Any ideas where I'm going wrong? Thanks!

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    How large is this list?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The referred lookup list is 1600 rows. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Anyone else have ideas on this one? Still looking for a solution. Thanks!

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 936

#2
Valantis Profile Picture

Valantis 604

#3
11manish Profile Picture

11manish 518

Last 30 days Overall leaderboard