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 / Filtering multiple lists
Power Apps
Unanswered

Filtering multiple lists

(0) ShareShare
ReportReport
Posted on by 383

Hi Power Apps Community,

I currently have an app where the user is required to select a value from the 'Store' dropdown. Once the selection is made, it will filter the second dropdown which is 'ProductList'.

 

Filter(Store, StoreName = dropdownstore.Selected.Text)

 

The user is then required to select a value from the 'ProductList' dropdown... BUT, based on the 'OwnerList' we can see that there are various Owners associated to a 'ProductName'. 

Data_Enthusiast_2-1604186957293.png

Therefore, I would like to filter the 'ProductList' based on the 'Owner' (who is the logged in user) so that the logged in Owner may only see ProductNames which belong to them.

I would really appreciate any assistance.

Thank you in advance.

 

 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Data_Enthusiast 
    Your explanation and diagram are wonderful.  Few users are able to explain their issue so clearly.  Bravo!

    Here's the code I would use in the 'Products' dropdown.  I assume its a DROPDOWN and not a COMBOBOX.  Also, I will assume there is a variable called varOwner that is set at the start of the app with the user's owner id.

    Filter(
     ProductList,
     StoreName in Filter(
     Store,
     StoreName = DropDown_Store.Selected.Value
     ).StoreName
     And
     ProductName in Filter(
     OwnerList,
     Owner = varOwner
     ).ProductName
    ).ProductName

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Data_Enthusiast Profile Picture
    383 on at

    @mdevaney 

    Thanks! Trying to always come across as clear as possible 🙂

    With regards to the code provided, I get the following error message for the part identified in the red square below: "Can't convert this datatype. Power Apps can't convert this Text to a Record"

    Data_Enthusiast_0-1604191383775.png

    I tried to debug it, but no luck on my side yet.

    Also, your assumptions are correct. I am using a DropDown and I do have a variable for the username.

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard