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 a lookup type f...
Power Apps
Unanswered

Filter a lookup type field on power apps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi team,

I'm asking for your help with a problem I've been having since Friday; actually i want to filter a search type field in a form using a "drop down list".
The screenshot above represents my form so the data source is a share point list
the fields I want to filter these Item fields (Type Lookup)
very close to my form so I create a "drop down" which lists all the categories of articles
I therefore want to display the articles in the search field of my form according to the category selected in the drop-down list Thank you for your help!

Hardy299_0-1629716891868.png

 

Capture d’écran 2021-08-23 115430.png
Categories:
I have the same question (0)
  • Bilakanti Profile Picture
    1,226 on at

    @Anonymous  Is Article a lookup field? And you want to filter Articles with which article is been selected in the dropdown right?

     

  • WarrenBelz Profile Picture
    156,319 Most Valuable Professional on at

    Hi @Anonymous ,

    It is helpful to post some field, list and control names, but a Lookup column needs some further "treatment" to filter on (incidentally they are completely unnecessary in Power Apps and will only cause you unwanted difficulties on many levels. The syntax would be

    Filter(
     AddColumns(
     ListName,
     "WhateverName",
     LookupField.Value
     ),
     WhateverName = YourDropdown.Selected.xxxx
    )

    where xxxx is the valid output of the dropdown(Value/Result/FieldName). Note that this is not Delegable - it will only work on list numbers up to your (500-2,000) Delegation limit.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Bilakanti ,

    Yes the article is a lookup field and I want to filter them according to the Category selected in the Dropdown in capture.
    NB the data source of the dropdown is a list Sp 

    Hardy299_0-1629717485642.png

     

  • Bilakanti Profile Picture
    1,226 on at

    @Anonymous I would agree with @WarrenBelz  statement.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you @WarrenBelz && @Bilakanti 

    I tried the request but it doesn't work on my end. my article field suddenly became empty, in fact I cannot expand:

    the request :

    /*Choices([@DemandeAchatArticleFournisseur].ArticleId)*/
    /*Filter(Article,CategorieId.Value=Dropdown3.Selected.Nom||IsBlank(Dropdown3.Selected.Nom))*/
    Filter(
     AddColumns(
     DemandeAchatArticleFournisseur,
     "WhateverName",
     ArticleId.Value
     ),
     WhateverName = Dropdown3.Selected.Nom
    )
    

     

    "DemandeAchatArticleFournisseur" Here is my list (Source date of the form)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @WarrenBelz 

    Categories also come from the Sp list (Lookup Fields in the Item list)

  • WarrenBelz Profile Picture
    156,319 Most Valuable Professional on at

    Hi @Anonymous ,

    How many items are in your list?

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @WarrenBelz  just 11 Articles

  • WarrenBelz Profile Picture
    156,319 Most Valuable Professional on at

    @Anonymous ,

    OK you do not have a Delegation issue, but if ArticleID is a Lookup column and you want to filter on its value selected being in Dropdown3 (assuming the output is nom), then the code

    Filter(
     AddColumns(
     DemandeAchatArticleFournisseur,
     "WhateverName",
     ArticleId.Value
     ),
     WhateverName = Dropdown3.Selected.Nom
    )

     is correct (and I only used WhateverName suggesting you could put anything there).

    Is there something incorrect in the assumptions?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz ,

    the code below generates an error in my collecton that I do not understand please: My collection:

    Collect(DemandeAchatArticleCollection, {ArticleCollection: DataCardValue130.Selected.Value, QteCollection:Value( DataCardValue132.Text), PrixCollection:Value(DataCardValue134.Text),ID : CountRows(DemandeAchatArticleCollection)+1})
     

     

    Error message : Incompatible Type . The "ArticleCollection" column in the data source you're updating expects a 'Text' type and you're using a 'Error ' type

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard