cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Leu0101
Frequent Visitor

Sort gallery by priority order highest to lowest

I'm having a bit of trouble adding the ability to show my gallery tickets how I want to see them. Currently it shows it by lowest ID number to highest. I would like them to show priority highest to lowest.

 

HelpDesk =SharePoint List HelpDesk Ticket

Assignedto = Who is assigned the ticket

Dropdown1.Selected.Value = Assignedto DisplayName

 

(Gallery) Items =Sort(Filter(HelpDesk, "Assignedto" = Dropdown1.Selected.Value || Assignedto.DisplayName = Dropdown1.Selected.Value ),Descending)

 

*This part of the formula works for me no problem. However I would like to add the ability for the gallery to show the highest priorities first currently it shows it by it's ID lowest to highest.

 

Priority: SPL Column Name

Priority Choices: Level 1 - High, Level 2 - Medium, Level 3 - Low

 

Any ideas how this can be done? Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Leu0101
Frequent Visitor

Just figured it out. I added Priority.Value at the end.

 

Sort(
Filter(HelpDesk, "Assignedto" = Dropdown1.Selected.Value || Assignedto.DisplayName = Dropdown1.Selected.Value ),Priority.Value,Ascending)

View solution in original post

1 REPLY 1
Leu0101
Frequent Visitor

Just figured it out. I added Priority.Value at the end.

 

Sort(
Filter(HelpDesk, "Assignedto" = Dropdown1.Selected.Value || Assignedto.DisplayName = Dropdown1.Selected.Value ),Priority.Value,Ascending)

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,665)