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 / Dropdown that filters ...
Power Apps
Answered

Dropdown that filters a lookup column in my SP list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I created a column of Lookup type in my SP List called "Product" that can contain several products chosen for the same item in that list and I created a powerapps that connects to this list.

I want in my powerapps the user to be able to choose a certain product in a dropdown and for the app to bring in a gallery, only the rows of the SP list that contain the product chosen by the user.


I'm trying to do it using this code, but I'm getting an error:
Filter(MyList; dropdown.Selected.Value in Product)


Can someone help me?

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Could you clarify your question?

    What's the error message? 

    What's the related list/field for the lookup field?

    vxiaochenmsft_0-1666323075229.png

    What's the formula of your dropdown items attribute?

     

    Best Regards,

    Wearsky

  • WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at

    Hi @req77 ,

    Are you referring to a many-to-many query here (both the list and combo box have multiple selections)?

    Ungroup(
     ForAll(
     dropdown.SelectedItems As aSel,
     Filter(
     MyList,
     aSel.Value in Product.Value
     )
     ),
     "Value"
    )

     

    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.

    Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello, @v-xiaochen-msft

    What's the error message?

    "Invalid schema, expected single column table".

    What's the related list/field for the lookup field?

    A list called Products where the name of the products are in the Title column.

    What's the formula of your dropdown items attribute?

    The Items function for my dropdown is basically: Products (and in the dropdown settings I choose the Title column from the Products list)

     

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

    Hi @Anonymous ,

     

    Have a good day. Assuming the lookup column allows multiple selections, and the dropdown doesn't allow multiple selections, I made a sample for you.

     

    vxiaochenmsft_0-1666582208085.png

    vxiaochenmsft_1-1666582341752.png

    vxiaochenmsft_2-1666582410680.png

     

    vxiaochenmsft_3-1666582432633.png

    vxiaochenmsft_4-1666582450966.png

     

    Please try this:

    Filter(MyList; Dropdown1.Selected.Title in Concat(Product;Value;";"))

     

    Best Regards,

    Wearsky

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

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard