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 By Tick...
Power Apps
Answered

Filter Gallery By Ticket Status

(0) ShareShare
ReportReport
Posted on by 122

I have a Ticket Stats Page that has 5 Categories.

  1. All
  2. New
  3. In-Progress
  4. Delayed
  5. Resolved

I want to use a variable or some means of filtering a gallery on another page so that when I click on one of these count items, it will take me to the page and show me the gallery filtered by the type that I clicked on. The picture attached shows how I have my "Items" set for the gallery and also how I have my variable setup.PowerApps FilterGallery.jpgPowerApps FilterGallery2.jpg

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    You can pass a 'context' argument to the Navigate() function in the button's OnClick action. See below:

     

    Navigate(SupportTicketPage,ScreenTransition.None,{ITSupportFilter:"Resolved"})

     

     Then you can reference it on your Support Tickets page like this

     

    Sort(Filter('IT Support Tickets', StatusColumn = ITSupportFilter),Created,Descending)

     

    ---
    If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up. 

  • HubbardInc Profile Picture
    122 on at

    Can you please help with what I should do if I want the "All" items button to show all items in the list? I can't seem to get my All Button to return all gallery items once I filter by one of the other buttons. I am not sure what to enter for the OnSelect for the all button.

     

    PowerApps FilterGallery3.jpg

  • mcastine Profile Picture
    57 on at

    Maybe the ALL Button can just Reset(Gallery) which will take all the filters off

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Use this in the gallery's Items property 

    If(ITSupportFilter = "All",
    Sort('IT Support Tickets', Created, Descending),
    Sort(Filter('IT Support Tickets', StatusColumn = ITSupportFilter),Created,Descending)
    )

     Then pass "All" as the filter the same way you do the other filter values.

  • HubbardInc Profile Picture
    122 on at

    I haven't been able to get the option working to pass context in the navigate function. Please help.

     

    PowerApps FilterGallery4.jpg

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    That formula looks correct. What does the gallery formula look like?

  • HubbardInc Profile Picture
    122 on at

    If(ITSupportFilter = "All", Sort('IT Support Tickets', Created, Descending), Sort(Filter('IT Support Tickets', StatusColumn = ITSupportFilter),Created,Descending))

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    What exactly is the problem you're having? Is it detecting the ITSupportFilter variable, but not updating?

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard