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

 

 

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps 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

SecondImage

Difinity Conference

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

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