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

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

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

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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,190)