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 by Multiple ...
Power Apps
Answered

Filtering by Multiple Columns

(0) ShareShare
ReportReport
Posted on by 145

I'm trying to figure out the most efficient way to filter a gallery w/ multiple columns.  Ideally, I'd like to do a single filter function like...

 

Filter(DataSource, 

If(!IsBlank(Criteria1), Column 1 = Criteria1,true)

If(!IsBlank(Criteria2), Column 2 = Criteria2,true)

If(!IsBlank(Criteria3), Column 3 = Criteria3.true)

 

The problem I can't figure out a way to do this without using IsBlank.  I'm using a sharepoint list and I get a delegation issue.  the only workaround I can think of is shove everything into a big collection and then filter off that or write a really long filter function where I write out every combination.    

 

Edit: I thought startswith would work but I'm getting a delegation issue.  

Categories:
  • Verified answer
    rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi there

     

    maybe im getting this wrong but do you wish the filter to check whether any of the columns satisfy the search? if so Filter(DataSource, column1 = criteria1 || column2 = criteria2 || column3 = criteria3) should do it. if one is blank then the other two gets evaluated?

     

    R 

  • dyee Profile Picture
    145 on at

    I am so dumb.  That did it.

  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    great stuff, im glad it helped.

    i miss these things at times as well (and goes duh), i know the feeling :).

    have a good day,

  • askondo Profile Picture
    Microsoft Employee on at

    @rubin_boer Thank you for always responding to forum posts.

  • dyee Profile Picture
    145 on at

    I lied.  The filter didn't work because it will consider a blank item to be a filter.  I set up a variable that determined if I was filtering by item 1 item 2 or item 3.  Then I wrote filter statements for every possible solution.  It's a super big pain in the butt.  

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

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard