cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Filtering using check boxes and multiple option choice fields

Hello,

 

I am trying to filter a gallery using check boxes and I am hitting a wall. I figure there is an easy way to do this, but i have been staring at it four hours.

 

The idea is that when the check box is selected, only items that have "Pending Approval" will be displayed. Unchecked will show all items. I plan to have separate check boxes to filter for each of the options specified below.

 

 

Filter(
        ProjectList,
        If('RTO Pending Approval 2.1'.Value=true,'Ready to Order'.Value="Pending Approval",'Ready to Order'.Value<>""),

 

Projectlist is a collection created from a SharePoint Online list at the launch of the app.

'RTO Pending Approval 2.1' is a check box on a screen in Power Apps. 

'Ready to Order' is a multiple choice field.

  1. Pending Approval
  2. Pending Approval, New Games Ordered
  3. Approved - Ready To Order
  4. New Games Ordered
  5. Conversions Ordered
  6. N/A

"Pending Approval" is the string I am searching for.

 

I hope someone out there can help me with this. Thank you in advance. 

Peter.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

Hi @PeterBayliss ,

You can put the If inside the filter, but I have had issues with it at times.

The below should work.

If(
   'RTO Pending Approval 2.1'.Value=true,
   Filter(
      ProjectList,
      'Ready to Order'.Value="Pending Approval"
   ),
   Filter(
      ProjectList,
      'Ready to Order'.Value<>"")
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

3 REPLIES 3
Super User III
Super User III

Hi @PeterBayliss ,

You can put the If inside the filter, but I have had issues with it at times.

The below should work.

If(
   'RTO Pending Approval 2.1'.Value=true,
   Filter(
      ProjectList,
      'Ready to Order'.Value="Pending Approval"
   ),
   Filter(
      ProjectList,
      'Ready to Order'.Value<>"")
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Hi @PeterBayliss ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Hello @WarrenBelz 

 

The answer you provided worked perfectly. You have no idea how much I appreciate your assistance. 

 

Thank you so much

Peter.

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (66,171)