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
Unanswered

Filter gallery with button

(0) ShareShare
ReportReport
Posted on by 118

I have a button in Screen1 and by pressing the button I want to filter a gallery in Screen2 by the value "Overdue" in column Status.

OnSelect: Navigate('Gallery') ;; UpdateContext({var:{Status:"Overdue"}})

 

The gallery items property is as follows: 

Items: With({_items: Filter('SPL name'; ComboBox1.Selected.Value="Choose all" || Progress in ComboBox1.SelectedItems)};
Sort(Search(AddColumns(_items; "Column1"; Status); Searchfunction.Text; "Title"; "Number"; "Column1"); Descending))

 

How can I make the filter work and how to integrate the variable var in the Items property?

Categories:
I have the same question (0)
  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    Hi @DirkKoch 
    This how you pass the variable on to other screen as it is a local variable
     

    Navigate(Gallery,Fade,{var:{Status:"Overdue"}})
  • DirkKoch Profile Picture
    118 on at

    @Ramole  Thanks for the reply. 
    What I still need to make it work is how to filter the gallery with this value/variable. 
    I guess I have to adapt the Items property of the gallery as well. But how?

     

    Items: With({_items: Filter('SPL name'; ComboBox1.Selected.Value="Choose all" || Progress in ComboBox1.SelectedItems)};
    Sort(Search(AddColumns(_items; "Column1"; Status); Searchfunction.Text; "Title"; "Number"; "Column1"); Descending))

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
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard