cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Gallery Filter

Sorry if this is a stupid question. I'm just starting to play with PowerApps and I want to only show records in my gallery that have the answer No in the column SaleRepApproved. The app created itself and gave the coding below.

 

SortByColumns(Filter('Sales Hand off', StartsWith(Title, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

 

I've tried editing it a bunch of different ways and no such luck

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: Gallery Filter

Hi @Robert2 

 

Can you try to use the below expression to embed both the conditions if the SharePoint column is a single line text field:
 
SortByColumns(Filter('Sales Hand off', StartsWith(Title, TextSearchBox1.Text) && SaleRepApproved = "No"), "Title", If(SortDescending1, Descending, Ascending))
 
If this field is a Yes/No type sharepoint column then you can try out the below expression:
SortByColumns(Filter('Sales Hand off', StartsWith(Title, TextSearchBox1.Text) && SaleRepApproved = "false"), "Title", If(SortDescending1, Descending, Ascending))
Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

3 REPLIES 3
Highlighted
Super User III
Super User III

Re: Gallery Filter

Hi @Robert2 

Assuming that SaleRepApproved is a text field, the following modification should work:

 

SortByColumns(Filter('Sales Hand off', SaleRepApproved="No"), 
"Title",
If(SortDescending1, Descending, Ascending)
)
Highlighted
Dual Super User III
Dual Super User III

Re: Gallery Filter

Hi @Robert2 

 

Can you try to use the below expression to embed both the conditions if the SharePoint column is a single line text field:
 
SortByColumns(Filter('Sales Hand off', StartsWith(Title, TextSearchBox1.Text) && SaleRepApproved = "No"), "Title", If(SortDescending1, Descending, Ascending))
 
If this field is a Yes/No type sharepoint column then you can try out the below expression:
SortByColumns(Filter('Sales Hand off', StartsWith(Title, TextSearchBox1.Text) && SaleRepApproved = "false"), "Title", If(SortDescending1, Descending, Ascending))
Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Highlighted
New Member

Re: Gallery Filter

That worked perfectly!

 

It was a yes/no field. I pasted that into the fx bar and it did exactly what I was hoping for.

 

Thank you.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,149)