cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EriSto
Helper II
Helper II

Filter gallery by search and check box

Hi all,

 

On the "Dashboard" of my app, I have a gallery that shows all of my reports (Share Point entries), which I am now filtering based on certain Sharepoint data fields in the "search box".

 

I am planning on adding a "check box" to my SharePoit list to specify that the report has been processed and is no longer an open project.


Is there a way to add a "check box filter input" that plays into the gallery filter, so that in addition to filtering by the search bar, I can also check off "only active reports", and then only get a list of reports that do not have "checked checkbox"

1 ACCEPTED SOLUTION

Accepted Solutions

I'd think comparing that column value against the value of the Checkbox (true/false) would be your best bet

 

 

SortByColumns(
   Filter(MYLIST,
          (
             StartsWith( Searchcriteria1, TextSearchBox1.Text )
                ||
             StartsWith( Searchcriteria2, TextSearchBox1.Text )
          )
             &&
          Processedreport = CheckBoxName.Value
   ),
   "Created",
   If(SortDescending1, Ascending, Descending )
)

 

and if it won't compare the actual true/false value to your column (ie if your column is text) then just replace that line with Processedreport = Text(CheckBoxName.Value)

 

Could you try that out and let me know how you get on?

 

Thanks!

Sancho

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

3 REPLIES 3
iAm_ManCat
Super User
Super User

I would add a true/false column to your sharepoint list and then have the checkbox patch that value back to the sharepoint list for that item, that way when you filter you can just use ProcessedReport=true

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


Thank you @iAm_ManCat , I'll try that out. May I ask how I can link that into my search criteria? I'll put a checkbox on my dashboard, and then I'll need to link that into the filter so that if the checkbox is selected, only the reports with "Processedreport=true" in the sharepoint list are displayted.  I'm not usre how to build that into the filter though..

 

Here is an example of what my filter looks like now.

 

SortByColumns(Filter(MYLIST, StartsWith( Searchcriteria1, TextSearchBox1.Text ) || StartsWith( Searchcriteria12 TextSearchBox1.Text ) ), "Created", If(SortDescending1, Ascending, Descending ))

 

Thanks again

I'd think comparing that column value against the value of the Checkbox (true/false) would be your best bet

 

 

SortByColumns(
   Filter(MYLIST,
          (
             StartsWith( Searchcriteria1, TextSearchBox1.Text )
                ||
             StartsWith( Searchcriteria2, TextSearchBox1.Text )
          )
             &&
          Processedreport = CheckBoxName.Value
   ),
   "Created",
   If(SortDescending1, Ascending, Descending )
)

 

and if it won't compare the actual true/false value to your column (ie if your column is text) then just replace that line with Processedreport = Text(CheckBoxName.Value)

 

Could you try that out and let me know how you get on?

 

Thanks!

Sancho

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,705)