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 to combine filter ...
Power Apps
Answered

How to combine filter and search function,I have a gallary filertered by a search box. Now i would like to add three checkbox for STATUS (PENDING ,ACTIVE and Closed ) to filter the gallery. How can i combine these two function together? Thanks

(0) ShareShare
ReportReport
Posted on by 389

Dear all 

 

I have a gallary filertered by a search box. Now i would like to add three checkbox for STATUS (PENDING ,ACTIVE and Closed ) to filter the gallery. How can i combine these two function together? Thanks

 

the current code for the search box

GUOGUO_1-1648091353566.png

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @GUOGUO,

    Do you want to filter the Gallery based on the search result?

    Could you please share a bit more about your scenario?

     

    I am confused that since you want to filter Gallery based on Status checkbox, why there is a STATUS field in your Search() function? Also, you have added a text field to save the status value, why you reference to the STATUS column within your Sort() function?

     

    If you write this function within your Teams app, I think you should use the If() function to define the checkbox checked value.

    vqiaqimsft_0-1648432527218.png

    Actually, you could directly add the Filter() function outside of the Search() function as below:

    Sort(Filter(<Search_Formula>,STATUSVALUE=If(Checkbox1.Checked,"Pending",If(Checkbox2.Checked,"Active",If(Checkbox3.Checked,"Closed")))),STATUS.Value,Descending)

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard