cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Highlighted
Super User
Super User

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
Super User
Super User

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}')

 

 

Highlighted
Super User
Super User

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,881)