cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

filter by variable

I have a Gallery, with Items=

If(Statusvalue="Drafts",Filter('Enquiries List',Status.Value="Draft"),'Enquiries List')

 

Statusvalue is a variable with 7 possibilities. To cover all eventuals I could create a series of if functions in the above. However, is it possible to do something like this:

Filter('Enquiries List',Status.Value=Statusvalue)

 

Thanks.

1 REPLY 1
Super User
Super User

Re: filter by variable

You can use a variable in a filter. How does the variable get set with the correct value? You could also create a drop down with all the values and then have the filter use that drop down value.

 

Example:

Filter('Enquiries List',Status.Value=DropDown.Selected.Value)



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Helpful resources

Announcements
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.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

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 (9,857)