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 / Combining two values i...
Power Apps
Answered

Combining two values in one filter

(0) ShareShare
ReportReport
Posted on by 108

Hi

I'm trying to filter a Gallery based on 2 different values in a SharePoint List. Filtering One is easy (Filter(TableName,ColumnName=Dropdown1.Selected.Value)

But, I would like to show content  where the "ProjectName" = XXX and the "ProjectPhase"= YYY. Both X and Y is in the same SharePoint-list.

I've tried &  &&  .  and ! without any results.... 

 

Any good ideas or solutions?

Categories:
  • Verified answer
    LauraOnu Profile Picture
    Microsoft Employee on at

    You can use either && or "And" function, for example:

    Filter(Assets, InService=true && AssetType="Tablet") or Filter(Assets, And(InService=true, AssetType="Tablet"))

    No need to quote the column names, intellisese adds simple quotes if there are spaces

  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    In addition to what LauraOnu suggested, you can also pass more parameters to the Filter function, and they will be combined as if they were passed to the And function, like in the example below.

    Filter(TableName, ColumnName = Dropdown1.Selected.Value, ProjectName = "XXX", ProjectPhase = "YYY")
  • TerjeF Profile Picture
    108 on at

    Thanks, I went for this and it worked perfect! Great fun!

  • cholopa Profile Picture
    62 on at

    And what about using "OR" instead of "AND", lets say a want to filter by two conditions, but not both condicitons have to be true, only one of them.

     

    Any clue?

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    You can use the Or operator or the || which is the equivalent.

    Check out the operators here at this document.

     

    Basic building blocks:

    And  &&

    Or  ||

    Not !

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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard