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

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

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
    Re: How to incorporate an additional condition to this sort and filter syntax

    @punksterz626 

    SortByColumns(Filter( 'Org Chart',ReportingManager = Gallery3_1.Selected.Employee), "Status", SortOrder.Descending, "Employee",SortOrder.Ascending)
  • punksterz626 Profile Picture
    on at
    Re: How to incorporate an additional condition to this sort and filter syntax

    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
    Re: How to incorporate an additional condition to this sort and filter syntax

    @punksterz626

    Choice columns?

     

  • punksterz626 Profile Picture
    on at
    Re: How to incorporate an additional condition to this sort and filter syntax

    nope

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: How to incorporate an additional condition to this sort and filter syntax

    @punksterz626 

    What does intellisence suggest?

  • punksterz626 Profile Picture
    on at
    Re: How to incorporate an additional condition to this sort and filter syntax

    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
    Re: How to incorporate an additional condition to this sort and filter syntax

    @punksterz626 

    If you have changed the names of the columns after you created the list, you may need to use the original name not the display name.

    https://www.sharepointdiary.com/2021/01/get-field-internal-name-in-sharepoint-online-using-powershell.html#:~:text=Here%20is%20how%20to%20find%20the%20internal%20name,parameter%20value.%20E.g.%20In%20my%20case%2C%20it%E2%80%99s%3A%20%E2%80%9CProject_x0020_Classification%E2%80%9D 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 671 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 424 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard