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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to incorporate an ...
Power Apps
Unanswered

How to incorporate an additional condition to this sort and filter syntax

(0) ShareShare
ReportReport
Posted on by

Hello all,

 

Can someone assist me in adding one more condition to this existing syntax? I have the following syntax in the item property of a gallery, which sort by status. I want to add an additional condition to sort the employee name in ascending order after status. There is a column titled "Employee". Is this possible? Or even create a sort button, if necessary. 

 

Sort(Filter( 'Org Chart',ReportingManager = Gallery3_1.Selected.Employee), Status, SortOrder.Descending)

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @punksterz626 

    SortByColumns(Filter( 'Org Chart',ReportingManager = Gallery3_1.Selected.Employee), "Status", SortOrder.Descending, "Employee",SortOrder.Ascending)
  • punksterz626 Profile Picture
    on at

    when I use the SortByColumns the syntax doesn't recognize the columns "Status" and "Employee" anymore. Not sure why.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @punksterz626

    Choice columns?

     

  • punksterz626 Profile Picture
    on at

    nope

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @punksterz626 

    What does intellisence suggest?

  • punksterz626 Profile Picture
    on at

    The specific column 'Status' does not exist. The column with the most similar name is '{Path}'.

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard