web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to combine filter ...
Power Apps
Unanswered

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
    on at
    Re: 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

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 836 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 231 Super User 2025 Season 2

Last 30 days Overall leaderboard