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?

Report
All responses (
Answers (