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

FilterString from Buttons

I have multiple buttons lined up to display as a menu. Next to them on the same screen is a list I want filtered by these buttons. How can I pass a filterstring to filter that gallery?

 

Filtering is based off a multi value that includes Not Started, In Progress, Completed

 

Button example = UpdateContext(Filter(',SharePointListName>',Mechanic_x0020_Status.Value="Not Started"))

 

1 ACCEPTED SOLUTION

Accepted Solutions
leyburn19
Level 10

Re: FilterString from Buttons

Try

 

Filter('<List Name>',Mechanic_x0020_Status.Value=statvar)

 

If that fails try to see

 

Filter('<List Name>',Mechanic_x0020_Status.Value="In Progress")

View solution in original post

3 REPLIES 3
leyburn19
Level 10

Re: FilterString from Buttons

I take it you list is filtered on a data source. I would put some text into variable on the button on select like set(myvar,"started")

 

Use this variable in your list filter

msmith
Level 8

Re: FilterString from Buttons

Sorry, I am still a bit lost. Based on your suggestion I set the button to: Set(statvar,"In Progress") for one of five buttons. 

 

The gallery items is set to: Filter('<List Name>',Mechanic_x0020_Status.Value='{statvar}')

 

 

leyburn19
Level 10

Re: FilterString from Buttons

Try

 

Filter('<List Name>',Mechanic_x0020_Status.Value=statvar)

 

If that fails try to see

 

Filter('<List Name>',Mechanic_x0020_Status.Value="In Progress")

View solution in original post

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 (6,154)