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 / Full String Variable t...
Power Apps
Unanswered

Full String Variable to a Gallery

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

In reference to a previous post that worked at https://powerusers.microsoft.com/t5/General-Discussion/FilterString-from-Buttons/m-p/78174#M30811

 

How can I reverse the strings between the buttons and gallery so that the button drives the filter?

 

So on the gallery I tried "Variable".

 

The button will be different but one might look as follows. 

Set(statvar, "Filter("List Sample", column.value="Complete")

Or

Set(statvar, "List Sample") to get all the items

 

If I can do this, I could then set filters on other fields and not just on status. I could set them on the location.

Categories:
I have the same question (0)
  • leyburn19 Profile Picture
    2,157 on at

    You might want to try doing this using Collect() or ClearCollect()

     

    Base your gallery on the collection rather than the source. You can then create a collection based on a filter.  Something like this attached to a button:

     

    ClearCollect(MyCollect,Filter("List Sample", column.value="Complete"),{Col1:Status,Col2:Status2})

     

    Where Col1 is teh collection column name and Status is teh Column in the source)

     

    Note the gallery Columns must remain constant so teh cllection must have the same to match

     

    Your only issue with this is delegation on the source. Collections are not delegable

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 333 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 86 Super User 2026 Season 1

Last 30 days Overall leaderboard