Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 6xMF4tNxzMOYgQnuw2OUNV
Power Pages - General Discussions
Answered

Combobox Filter, Search and Sort

Like (1) ShareShare
ReportReport
Posted on 8 Apr 2025 17:33:53 by 930
I have a Combobox that is getting the values from another SharePoint list.  The functions I currently have work as expected, but would like the Combobox values to be sorted ascending.  NOTE:  My data is a large data set.
 
My ComboBox fields are:
 
My items function is:  
Filter(Employees, EmpStatus.Value = "Active", StartsWith(Employee, Self.SearchText))
 
My defaultselecteditems is:
If(!IsBlank(SharePointIntegration.Selected), LookUp(Employees, EmployeeEmail.Email=ThisItem.EmployeeEmail))
Categories:
  • kmw1130 Profile Picture
    930 on 08 Apr 2025 at 18:36:04
    Combobox Filter, Search and Sort
     
    That worked great!  Thank you!
  • Verified answer
    GabGadou Profile Picture
    625 on 08 Apr 2025 at 17:56:58
    Combobox Filter, Search and Sort
    Hi,
     
    You simply use Sort on your 'items' property of combobox:
    Sort(Filter(Employees, EmpStatus.Value = "Active", StartsWith(Employee, Self.SearchText)), txtEmployeeEmail)
     
    you can use another field onstead of txtEmployeeEmail if you want. If you need 'Descending', you add SortOrder.Descending as third argument for Sort function.

    I hope it helps!
    _________________________________________________
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,731 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,075 Most Valuable Professional

Leaderboard
Loading started
Loading complete