Showing results for 
Search instead for 
Did you mean: 
Level 8

Full String Variable to a Gallery

In reference to a previous post that worked at


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")


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.

Level 10

Re: Full String Variable to a Gallery

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

Helpful resources


Power Apps Super User Class of 2020

Check it out!


Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,561)