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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filtering AvaliableRoo...
Power Apps
Unanswered

Filtering AvaliableRoomNameEmails in Book A Room Template using a Toggle

(1) ShareShare
ReportReport
Posted on by

Good tuesday,


I am currently struggling with filtering the avaliable roomnames in my roomsgallery to only display rooms that have the name "RS_KS4950"

hotdogman_0-1720531902185.png

 

Categories:
I have the same question (0)
  • madlad Profile Picture
    2,637 Moderator on at

    Hi!

     

    I hope I understand correctly, you only want to use this filter when the toggle is selected? If so, try something like:

     

    Filter(
     AvailableRoomEmailName,
     If(
     Toggle1.Value,
     "RS_KS4950" in Name,
     True
     )
    )

     

    "If(Toggle1.Value, "RS_KS4950" in Name,True)" Is used here, so that If Toggle1 is checked, it will filter as you've specified. Otherwise it will return all results.

     

    Please note you may have a delegation issue here, which could become a problem if more than 2000 records will be in play.

     

    Hope this helps! 🙂

  • hotdogman Profile Picture
    on at

    I think one thing I'm overlooking right now is that "RS_KS4950" is the building name, "RS_KS4950_1" the "1" represents the floor level, and "RS_KS4950_1_HotDagMan" represents the the room name. 

    I want to display all those avaliable room names that have the "RS_KS4950" when I turn on the toggle

     

  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    hey @hotdogman 

     

    can u try this:

     

    Filter(AvailableRoomEmailName, RoomName = "RS_KS4950")
    

     

    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

  • madlad Profile Picture
    2,637 Moderator on at

    @hotdogman 

    The code I provided should accomplish this- However, If you have an alternate filter condition to use when the filter is untoggled, you can replace the 'true' in my original code with this. If you want to filter using  "RS_KS4950_1" instead, you can just replace the string in my original code with that.

     

    Hope this helps!

  • hotdogman Profile Picture
    on at

    hotdogman_0-1720532971912.png

    I get this error message when I try to type it in

     

  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    try this instead:

    Filter(AvailableRoomEmailName, Text(RoomName) = "RS_KS4950")
    

     

    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
     

  • madlad Profile Picture
    2,637 Moderator on at

    @hotdogman 

    RoomName seems to be a control, try replacing it with Name

  • hotdogman Profile Picture
    on at

    The code doesn't show any errors but it's not filtering the gallery

    hotdogman_0-1720551672741.png


    Sad days : , (

  • hotdogman Profile Picture
    on at

    hotdogman_0-1720551732694.png

     

  • madlad Profile Picture
    2,637 Moderator on at

    @hotdogman Where is the code you've shown here? It looks like you have the toggle selected?

    It needs to be in the galleries Items property.

     

    You can also see more on the filter function here

     

    Let me know!

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard