cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Dropdown list not sorting by SharePoint People column

Hello,

 

Can anyone help me how to sort a dropdown list based on People field?

 

Dropdown is linked to SharePoint field field using the following code

Sort(Distinct(PendingWith.DisplayName),Descending)

 

If I change it to 

Sort(Distinct(PendingWith.DisplayName),PendingWith,Descending)

it doesnt work. Can someone help correct it?

 

Thanks.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Super User
Super User

Re: Dropdown list not sorting by SharePoint People column

Distinct returns a column named Result, so try the formula like this:

 

Sort(Distinct(PendingWith.DisplayName),Result,Descending)



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

Highlighted
Community Support
Community Support

Re: Dropdown list not sorting by SharePoint People column

Hi @AKB_2K ,

 

Is PendingWith the column name of this person and group field? If so, the formula should be:

Sort(Distinct(ListName,PendingWith.DisplayName),Result,Descending)

 Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Dropdown list not sorting by SharePoint People column

Distinct returns a column named Result, so try the formula like this:

 

Sort(Distinct(PendingWith.DisplayName),Result,Descending)



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

Highlighted
Community Support
Community Support

Re: Dropdown list not sorting by SharePoint People column

Hi @AKB_2K ,

 

Is PendingWith the column name of this person and group field? If so, the formula should be:

Sort(Distinct(ListName,PendingWith.DisplayName),Result,Descending)

 Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

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 (6,761)