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 gallery with bu...
Power Apps
Answered

Filter gallery with buttons

(0) ShareShare
ReportReport
Posted on by 59

Dears, 

 

Does anyone know how can I make filtering of the gallery with these buttons? 

 

IMG_8140.jpg

 

Thank you

Categories:
  • Verified answer
    theapurva Profile Picture
    970 Super User 2024 Season 1 on at

    Hello @redaelaouane :

    you can use if condition in Items:
    Steps:

    1. On each Button set VarStatus variable to the status: E.g. For

    All button OnSelect property should be: Set(varStatus,"All")

    In Progress: Set(varStatus,"In Progress")

    Completed: Set(varStatus, "Completed")

    2. Items Formula should be

    If(varStatus="All",YourListName, //Display all items (without any filter)
    Filter(YourListName,Status=varStatus)) // Display items fitered by Selected Status
  • redaelaouane Profile Picture
    59 on at

    Thank you @theapurva , 

     

    Is it normal that I cant find "items" to put the formula?

  • VJR Profile Picture
    7,635 on at

    theapurva's solution is perfect. No, its not normal that you can't see Items. 🙂 Make sure to click the Gallery control on the left hand side list of controls (and not any data card or any other control).

  • redaelaouane Profile Picture
    59 on at

    Alright, 

     

    Thank you @VJR 

    Found! but still few issues, 

     

    Screen Shot 2022-09-27 at 13.42.17.png

     

    The "All" thing doesnt work 

  • VJR Profile Picture
    7,635 on at

    It is some other part of the Formula that has an error and is not visible in the screenshot.

  • redaelaouane Profile Picture
    59 on at

    @VJR The problem is located in the gallery, when i put the formula on Items 😞

  • VJR Profile Picture
    7,635 on at

    Please share your complete formula

  • redaelaouane Profile Picture
    59 on at

     followed all these steps that shared by @theapurva 

     

    Steps:

    1. On each Button set VarStatus variable to the status: E.g. For

    All button OnSelect property should be: Set(varStatus,"All")

    In Progress: Set(varStatus,"In Progress")

    Completed: Set(varStatus, "Completed")

    2. Items Formula should be

    If(varStatus="All",YourListName, //Display all items (without any filter)
    Filter(YourListName,Status=varStatus)) // Display items fitered by Selected Status

     

    @VJR Thank you so much for your help

  • VJR Profile Picture
    7,635 on at

    Filter(YourListName,Status=varStatus))

    In this line, what is Status, where is it coming from?

  • redaelaouane Profile Picture
    59 on at

    @VJR Status is one of the items on the list on Sharepoint. it shows the status of the request; new, in progress or Completed

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard