cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
golfnutt82
Super User
Super User

Filter a lookup field

Hello,
I have a form that contains a field where a user can select from a lookup a role. However, once the list is fully populated with Roles there will be close to 1200 items. Is there a way to filter the lookup control?  

golfnutt82_0-1634150997247.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
StalinPonnusamy
Super User
Super User

Hi @golfnutt82 

 

Sample

IssueTracker - SPList

SingleEvent - LookupColumnName

EventItenary - Another SP List which SingleEvent is having lookup

Session type - Choice field to filter

Filter(
    Choices([@IssueTracker].SingleEvent),
    Value in Filter(
        EventIItinerary,
        'Session type'.Value = "Talk"
    ).Title
)

 

View solution in original post

5 REPLIES 5
StalinPonnusamy
Super User
Super User

Hi @golfnutt82 

 

Yes, we can filter the Lookup list like below

Filter(
       Choices(SPList.LookupColoumn),
       Value in Filter(SPListLookup,Condition).ColumnName
)

 

StalinPonnusamy
Super User
Super User

Hi @golfnutt82 

 

Sample

IssueTracker - SPList

SingleEvent - LookupColumnName

EventItenary - Another SP List which SingleEvent is having lookup

Session type - Choice field to filter

Filter(
    Choices([@IssueTracker].SingleEvent),
    Value in Filter(
        EventIItinerary,
        'Session type'.Value = "Talk"
    ).Title
)

 

Hi Stalin,
Thanks for your input regarding my question.
When attempting to use your solution I am receiving an error.
I am somewhat new to Power Apps so I am sure I am missing something.

golfnutt82_0-1634212041125.png

I really appreciate your help!

StalinPonnusamy
Super User
Super User

Hi @golfnutt82 

 

Filter(
    Choices([@'Access Requests'].'LU_Role Name'),
    Value in Filter(
        LURoleSPList,
        Filter Condition
    ).Title
)

 

2 things you need to change on this

LURoleSPList - Name of the SP list where Roles are stored

Filter Condition - What you want to filter from the Role SP list

 

In my example, filtering session type = Talk

 

If still having a problem, Please share your SharePoint Datasource structure, so that we can get a solution

 

Hi Stalin,
I will make the changes and let you know.
Here are my data sources below:

golfnutt82_1-1634217462962.png

The lookup list "Roles" looks like this below:

golfnutt82_2-1634217794663.png

 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,446)