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 / How do I have an Or in...
Power Apps
Answered

How do I have an Or in a Filter()?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a label that recognizes the user: Office365Users.MyProfile().JobTitle and then I also have a hidden label that says "All Roles".  So, when a user accesses the app, I want the gallery to display all the items that are available to their role or all roles... and then I want them to be able to search within that.

 

Here's what I have the gallery set to:

Filter(ListName,ColumnName.Value in CurrentUsersLabel.Text Or AllRolesLabel.Text && searchbox.Text in Title)

 

It only returns the first logical test instead of both. Thoughts?

Categories:
I have the same question (0)
  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    @Anonymous 

     

    Filter(ListName, (CurrentUsersLabel.Text in ColumnName.Value || AllRolesLabel.Text in ColumnName.Value) && searchbox.Text in Title)

     

    ColumnName.Value - What type of column is this columnname?

    Is it choice? - what values are part of this? is this multi select?

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @RezaDorrani, So simple! Thank you! Right now, the column is a single-selection drop-down, but it needs to be a multi-selection. I've been researching how to first even display the multi-selection choices in the gallery and haven't made it that far yet. Suggestions?

  • RezaDorrani Profile Picture
    12,145 on at

    @Anonymous 

     

    It is little tricky

     

    https://www.youtube.com/watch?v=44j2VRbdWjk

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard