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 / Filter a Gallery based...
Power Apps
Unanswered

Filter a Gallery based on Checkboxes from a MultiSelect field

(0) ShareShare
ReportReport
Posted on by 38

Good Day Everyone,

I am trying to get this to work. I feel like I am close but may be over complicating this. What I have is a Room Reservation app.  As shown here, I want users to select the equipment needed from the LeftGallery of checkboxes on the left and have the gallery on the RightGallery show only the RoomTypes  that have the selected equipment in it . In this photo shown here the Items property of the RightGallery is Distinct(MTFConfRooms,RoomType.Value).Value .   In the SharePoint list there are 30 rooms(records) that are all one of the 5 types. Each distinct RoomType has a the same type of equipment, i.e. (All Classrooms have a Flip Chart, Projector Screen, Phone/Jack, Instructor Laptop, and Whiteboard) and (All Breakout Rooms have a Flip Chart, Phone/Jack, and Whiteboard).  

RResRoomEquipment.png

ConfRoom List.png

 

 

 

 

 

 

 

 

 

Again I would like the users to choose the equipment they need and have the RoomTypes gallery only show the room types that contain the combination of selected equipment. I have tried using Index using the formula below that I copied from @WarrenBelz . This formula doesn't throw any errors and I made some changes to it based on reading various articles, but it also does not show the room types that have the selected equipment. It doesn't return anything at all when I select the checkboxes.  Note: the ComboBox at the bottom of my screen is cbEuipmentCheck_3 and it populates the name of the equipment as they are selected from the Equipment checkboxes. Can I get some help please?

 

Filter(
    MTFConfRooms,
    Index((
        cbEuipmentCheck_3.SelectedItems.Value),
        1
    ).Value in RoomEquipment Or IsBlank(Index((
        cbEuipmentCheck_3.SelectedItems.Value),
        1)),
    Index((
        cbEuipmentCheck_3.SelectedItems.Value),
        2
    ).Value in RoomEquipment Or IsBlank(Index((
        cbEuipmentCheck_3.SelectedItems.Value),
        2)),
        Index((
        cbEuipmentCheck_3.SelectedItems.Value),
        3
    ).Value in RoomEquipment Or IsBlank(Index((
        cbEuipmentCheck_3.SelectedItems.Value),
        3)),
        Index((
        cbEuipmentCheck_3.SelectedItems.Value),
        4
    ).Value in RoomEquipment Or IsBlank(Index((
        cbEuipmentCheck_3.SelectedItems.Value),
        4)),
        Index((
        cbEuipmentCheck_3.SelectedItems.Value),
        5
    ).Value in RoomEquipment Or IsBlank(Index((
        cbEuipmentCheck_3.SelectedItems.Value),
        5)),
        Index((
        cbEuipmentCheck_3.SelectedItems.Value),
        6
    ).Value in RoomEquipment Or IsBlank(Index((
        cbEuipmentCheck_3.SelectedItems.Value),
        6)),
        Index((
        cbEuipmentCheck_3.SelectedItems.Value),
        7
    ).Value in RoomEquipment Or IsBlank(Index((
        cbEuipmentCheck_3.SelectedItems.Value),
        7)),
        Index((
        cbEuipmentCheck_3.SelectedItems.Value),
        8
    ).Value in RoomEquipment Or IsBlank(Index((
        cbEuipmentCheck_3.SelectedItems.Value),
        8))
).RoomType
Categories:
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    Hey @BWid78 

     

    You can also try something like this

     

    Set(varSelectedEquipment, cbEuipmentCheck_3.SelectedItems.Value);

    Filter(

        MTFConfRooms,

        CountRows(

            Filter(

                varSelectedEquipment,

                Value in RoomEquipment

            )

        ) = CountRows(varSelectedEquipment)

    ).RoomType

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • BWid78 Profile Picture
    38 on at

    @mmbr1606 , So when I put the Filter formula in the Items property of the RoomType gallery I get "Delegation warning. The CountRows part of this formulas might not work correctly on large data sets". It also is not returning the room types that contain the selected equipment.  

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    You can also try the same witha collection:

     

    ClearCollect(SelectedEquipment, cbEuipmentCheck_3.SelectedItems.Value);

     

    And then:

     

    // This is a conceptual approach and may need adjustments to fit your exact scenario

    Filter(

        MTFConfRooms,

        // For each piece of selected equipment, check if it is contained within the RoomEquipment field

        // This example assumes a simple text inclusion check, which might need to be adapted based on your data structure

        CountRows(

            Filter(

                SelectedEquipment,

                // Replace 'TextSearchFunction' with an appropriate function or logic to check if 'Value' is in 'RoomEquipment'

                TextSearchFunction(RoomEquipment, Value)

            )

        ) = CountRows(SelectedEquipment)

    )

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard