cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
niklasjegg
Helper II
Helper II

Filter Gallery based on 1 column but multiple values.

Hello.

 

i am building an APP where users can save their documents based on their department.

 

I have a Gallery with this filter:

Filter(Database_Test,Search_Gallery.Text in Title && 'Category' in UserDepartment)

 I want to be able to Filter it base on :

Filter(Database_Test,Search_Gallery.Text in Title && 'Category' in UserDepartment && 'Category' in UserSecurity)

 On Start i am generating the 2 variables based on 0365security groups and department.

 

How can i realize this. In case a User need access to another departments documents.

 

For example Category = IT and UserDepartment = IT but User Security = Finance. There exists a Category with the Value Finance.

 

do you know if this is possible??

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @niklasjegg ,

I think you need

Filter(
   Database_Test,
   Search_Gallery.Text in Title && 
   (
      'Category' in UserDepartment || 
      'Category' in UserSecurity
   )
)

 

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.

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @niklasjegg ,

I think you need

Filter(
   Database_Test,
   Search_Gallery.Text in Title && 
   (
      'Category' in UserDepartment || 
      'Category' in UserSecurity
   )
)

 

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.

View solution in original post

Hi @WarrenBelz  thanks a lot this works fine!

 

Now i just need to create security groups 🙂

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,487)