cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
msmith
Level 8

Full String Variable to a Gallery

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.

1 REPLY 1
leyburn19
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

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,003)