cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ramielm
Level: Powered On

Filter Gallery based of a column value

Hello,

 

I'm a beginner in PowerApps. Id like to know how to filter my gallery based of a value in a column.

The column I created (Status) has 3 options - I only need to show in the gallery values that is not equal to "Completed"

 

Hoping for you help. Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
panand99
Level 10

Re: Filter Gallery based of a column value

@ramielm

 

SortByColumns(Filter(testing,StartsWith(Refrence,txtSearchField.Text) && (Status.Value="one")),"Title",Ascending)

 

Above formula is working at my end, you just needs to change the DSN and fields.

 

View solution in original post

17 REPLIES 17
Super User
Super User

Re: Filter Gallery based of a column value

Try something like this:

Filter(SPList, Status = "Completed")

Or Status.Result or Status.Value

Let me know if it doesnt work.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com
ramielm
Level: Powered On

Re: Filter Gallery based of a column value

Where to I have to put the filter command? 

ramielm
Level: Powered On

Re: Filter Gallery based of a column value

Completed is still included in the gallery.

Super User
Super User

Re: Filter Gallery based of a column value

This should be the Items property of the gallery?

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com
Community Support Team
Community Support Team

Re: Filter Gallery based of a column value

Hi @ramielm ,

Do you want to filter your Gallery Items where Status column is not equal to "Completed"?

 

I have made a test on my side, please consider take a try with the following workaround:

Set the Items property of the Gallery to following:

Filter('YourSPList', Status.Value <> "Completed")

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ramielm
Level: Powered On

Re: Filter Gallery based of a column value

It's not working

Community Support Team
Community Support Team

Re: Filter Gallery based of a column value

Hi @ramielm ,

Could you please share a bit more about the "Status" column in your SP List? Is it a Text type column or Choice type column?

Could you please share a bit more about your data source? Is it a SP List or a CDS Entity?

 

1. If the "Status" column is a Text type column in your SP List, please set the Items property of the Gallery to following:

 

Filter('YourSPList', Status <> "Completed")

 

or

 

Filter('YourSPList', Not(Status = "Completed"))

 

 

2. If the Status column is a Option Set type column in your CDS Entity, please consider modify above filter formula as below:

Filter('CDS Entity', Not(Status = [@OptionSetName].Completed))  // OptionSetName represents the Option Set your "Status" column related to within your CDS Entity

or

Filter('CDS Entity', Status <> [@OptionSetName].Completed)

If the OptionSetName the "Status" column related to is "Status", please modify above formula as below:

Filter('CDS Entity', Not(Status = [@Status].Completed))
Filter('CDS Entity', Status <> [@Status].Completed)

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ramielm
Level: Powered On

Re: Filter Gallery based of a column value

The List is named "Maintenance Request"

The column name is "Status" and type is "Choice"

 

Gallery should only show entry/records that status is not equal to "Completed"

 

Main Gallery.PNGBrowseGallery1.PNGSharepoint List - Column name is Status and Column Type is Choice.PNG

 

 

ramielm
Level: Powered On

Re: Filter Gallery based of a column value

Anybody?

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 (8,762)