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 more than one i...
Power Apps
Unanswered

Filter more than one item in the gallery

(0) ShareShare
ReportReport
Posted on by 4

Hi, guys. I believe someone already did that or needed that somehow.

 

I have a "users table"

Columns : First Name, Last Name, Upn, Customer

in the "Customer" column, is allowed multiple values being separated by comma.

 

I also have a "devices table" with 1 customer being associated to each device. 

 

I want to filter the devices Gallery based on the customers that the user is part of.

When the user is part of only one customer, I could already got it working with this line:

If(LookUp(UsersAllinfo, User().Email in UsersAllinfo.upn, cust_ids = "9" Or "2"), SortByColumns(Filter(tbl_device, customer_id = 9),"device_name", If(SortDescending5, Descending, Ascending)))

 

The problem is when the customer is associated to multiple customers.

How can I Filter more than one device in the gallery based on what customer the user is associated to?

 

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @dcorain 

    You are trying to model a one to many relationship in a single table. This will cause numerous problems down the line. See my blog posts starting here to get an idea of how to model the tables in your app.    https://powerusers.microsoft.com/t5/Power-Apps-Community-Blog/Database-Design-Fundamentals-and-PowerApps-An-Overview/ba-p/184485 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard