web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to enable filterin...
Power Apps
Unanswered

How to enable filtering on advanced lookup

(0) ShareShare
ReportReport
Posted on by 34

How can I enable the filtering on a lookup view?

 

I have 2 related tables, where I need to assign transport vehicles to orders that match specific criterias.

The user needs to be able to find a "white" "bus" from "a given partner" that has "at least x seats" and add to the "vehicle" column in the offers table. 

 

I added a lookup column to the vehicles table and added the lookup to the form. When I chose "advanced lookup" I only see "sort", no filter, at any column.

The search bar doesn't give any result other than the primary colum and even there only if the column starts with the input text. I can find bus with license place ABC-123 with the text "abc", but not when I type "123".

 

The filter works fine in the vehicles table alone. What do I need to do be able to filter the lookup view? If not possible, what is the best practice for this use case?

Categories:
I have the same question (0)
  • Kristian_Cole Profile Picture
    195 on at

    Good morning, you will need to develop a custom filter on the lookup:

     

    addCustomFilter (Client API reference) in model-driven apps - Power Apps | Microsoft Learn

     

    for example:

     

    <filter type="and">
    
    <condition attribute="colour" operator="eq" value="White" />
    
    <condition attribute="vehicleType" operator="eq" value="Bus" />
    
    <condition attribute="typer" operator="eq" value="A Given Partner" />
    
    <condition attribute="seatAmount" operator="eq" value="3" />
    
    </filter>

     

     

     

  • MartonVilmanyi Profile Picture
    34 on at

    Hi,

    Maybe I dont't understand correctly, but this looks like it adds a static filter. I would like to achieve the same filtering functionality that exists in the table views, in the advanced lookup view.

    thanks

    vm

  • Kristian_Cole Profile Picture
    195 on at

    Right I see, in your solution under the views section there is a view which has a suffix of 'lookup', this view is the lookup drop down items that you see on searching for a record when setting a lookup.

     

    Kristian_Cole_0-1701687163752.png

    Example above, you can set the view to what your query requires but it cant be dynamic unless you code it.

     

  • MartonVilmanyi Profile Picture
    34 on at

    I didn't think that this is such a complex task.

    Can I do it on the way around?

    Place the "vehicle" as table grid on the "jobs" form, select a vehicle record and with a flow(?) add it to the current "job" record?

  • Kristian_Cole Profile Picture
    195 on at

    Using flow is an option but the lookup view is probably less leg work for you and doesn't involve adding sub grids/creating a flow. It is more maintenance for you down the line.

     

  • MartonVilmanyi Profile Picture
    34 on at

    Is there maybe some tutorial for this and can I make it global? Like add the filter option to all columns in all lookup views? I found tons of material for pre-filtering lookup views, but not for this.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard