cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
burliad
Helper III
Helper III

Filtering a SharePoint list in gallery

Hi All,

 

Looking to filter my SharePoint list by one column.  Power Apps generated this code which works but would like to filter it by column named "PAC", which is a choice field in SharePoint.

 

 

SortByColumns(Filter([@'Master Chemical List'], StartsWith(Title, txtSearchPac7.Text)), "Title", If(SortDescending1, Descending, Ascending))

 

 Thanks 

1 ACCEPTED SOLUTION

Accepted Solutions
mdevaney
Super User
Super User

@burliad 

Like this...

SortByColumns(
  Filter([@'Master Chemical List'],
    PAC.Value = "YourTextHere",
    StartsWith(Title, txtSearchPac7.Text)),
  "Title",
  If(SortDescending1, Descending, Ascending)
)


---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

2 REPLIES 2
mdevaney
Super User
Super User

@burliad 

Like this...

SortByColumns(
  Filter([@'Master Chemical List'],
    PAC.Value = "YourTextHere",
    StartsWith(Title, txtSearchPac7.Text)),
  "Title",
  If(SortDescending1, Descending, Ascending)
)


---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Thank you so much!  Exactly what I was looking for.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,902)