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 / Filtering a gallery by...
Power Apps
Answered

Filtering a gallery by different fields

(0) ShareShare
ReportReport
Posted on by 59

I'm trying to make an app that is connected to a Google sheet now as Sharepoint online couldn't do as much and I can get each of these filters to work indepentently, but can I somehow combine them all into 1?

 

The first 2 filters are by dropdowns and the third is obviously a search.  I would like it so that all 3 can be used simultaneously.  So you can select a building, a tech, and still be able to search if you wanted.

 

If(!IsBlank(FiltBuilding.Selected.Value),Filter(Powerapp,Building=BuildingVar.Value),Powerapp)
If(!IsBlank(FiltTech.Selected.Value),Filter(Powerapp,Tech=TechVar.Value),Powerapp)
If(!IsBlank(Search1V),Filter(Powerapp,Search1V in Desciption || Search1V in Destiny),Powerapp)

 

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    AKotb Profile Picture
    Microsoft Employee on at

    You Can try to set the Items Property to

    Filter(Powerapp, 
    If(IsBlank(FitBuilding.Selected.Value), true, Building=BuildingVar.Value),
    If(IsBlank(FiltTech.Selected.Value), true, Tech=TechVar.Value)
    If(IsBlank(Search1V), true, Search1V in Desciption || Search1V in Destiny)
    )

    so each filter argument will be applied if it is applicable, otherwise it will return true so it doesn't affect other conditions.

    Since filter conditions are combined with an And Operator.

  • Tech08 Profile Picture
    59 on at

    Filter(Powerapp, If(IsBlank(FiltBuilding.Selected.Value), true, Building=BuildingVar.Value), If(IsBlank(FiltTech.Selected.Value), true, Tech=TechVar.Value), If(IsBlank(Search1), true, Search1.Text in Desciption || Search1.Text in Destiny))

     

    There were a couple typos I had to catch and I had modified the search since I had posted, but after fixing those it works like a charm.

     

    Thanks!

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 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard