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 Gallery based o...
Power Apps
Answered

Filter Gallery based on 1 column but multiple values.

(0) ShareShare
ReportReport
Posted on by 505

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??

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at

    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.

  • niklasjegg Profile Picture
    505 on at

    Hi @WarrenBelz  thanks a lot this works fine!

     

    Now i just need to create security groups 🙂

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