web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sort on People column ...
Power Apps
Answered

Sort on People column with filter other colums

(0) ShareShare
ReportReport
Posted on by 52

Hello,

I need to sort on a people field that comes from SharePoint people column, also need to filter another two columns. Here is the code: this code brings back the whole list not people from New York and "Establishment" category. Thanks for your help!

If(
varSortColumn = "Employee",
SortByColumns(
Filter(
AddColumns(
GCChildSupport,
"PersonsName",
Employee.DisplayName
),
dplocation.Selected.Value = "New York" And varAction = "Establishment"
),
"PersonsName",
If(
SortDescending1,
Descending,
Ascending
)
)

Categories:
  • Verified answer
    zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    SortByColumns(
    Filter(
    AddColumns(
    GCChildSupport,
    "PersonsName",
    Employee.DisplayName
    ),
    ColumnName.Value = "New York" && ColumName.Value= "Establishment"
    ),
    "PersonsName",
    If(
    SortDescending1,
    Descending,
    Ascending
    )
    )

  • lras1202 Profile Picture
    52 on at

    @zmansuri 

     

    It worked!! Thank you so much!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard