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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sorting SharePoint Cal...
Power Apps
Answered

Sorting SharePoint Calculated Column Content in Power App Combo Box

(1) ShareShare
ReportReport
Posted on by 5,331 Moderator
I am trying to sort the content of a SharePoint calculated column in a Power Apps Combo Box.

If I filter the SP column content it all comes through without issue, but it is not sorted.

When I replace 'Filter' with 'Sort' (see below) I get errors.

It is my understanding that SP calculated columns are not searchable in a Power Apps Combo Box?

Is this true, and does the same restriction apply to the sorting of SP calculated column content in a
Power Apps Combo Box?

What am I missing?

First Attempt:
If(Role_DataCardValue.Text = "Subcontractor",Sort(Staking_Collection,Cost_Type = "Subcontractor" && Title =
     Location_Dropdown.Selected.Value).Billing_Unit_and_Description,SortOrder.Ascending),
 
    If(Role_DataCardValue.Text = "Technician",Sort(Staking_Collection,Cost_Type = "In House" && Title =
     Location_Dropdown.Selected.Value).Billing_Unit_and_Description,SortOrder.Ascending)


Second Attempt:
If(Role_DataCardValue.Text = "Subcontractor",Sort(Staking_Collection,Cost_Type = "Subcontractor" && Title =
     Location_Dropdown.Selected.Value).Billing_Unit_and_Description,SortOrder.Ascending,
 
    If(Role_DataCardValue.Text = "Technician",Sort(Staking_Collection,Cost_Type = "In House" && Title =
     Location_Dropdown.Selected.Value).Billing_Unit_and_Description,SortOrder.Ascending))
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,960 Moderator on at
    Hi
     
    You are going to get errors. So what you want to do is add a Sort Column into your data. You can do this with AddColumns, and when you do, set the Value = to the output of the Calculated Column, then sort by the new column.
     
     
    Let me know if you have any questions
  • Verified answer
    Phineas Profile Picture
    5,331 Moderator on at
    @FLMike

    Are you confirming my assumption is correct, that the issue is the restrictions on the SP calculated column?

    Also, does this mean the output of an 'AddColumns' is not bound to the restrictions of a calculated column
    in the Power Apps Combo Box, and would allow for sort and/or search of the returned results?
  • Suggested answer
    Ravindra Jadhav Profile Picture
    342 Moderator on at
    In combobox you have less then 2000 item, then you can load that in collection and then sort it will work
     
     
     
    Please Closed the Question, Mark it Solved 
     
    If my answer helped resolve your issue, please consider marking it as solved to assist others facing the same problem. Additionally, giving it a like would be greatly appreciated and motivates us to keep helping
     
    Thank You
    Ravindra Jadhav

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard