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.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Top Solution Authors
Top Kudoed Authors
Users online (1,408)