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

Notifications

Announcements

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,329 Super User 2025 Season 2
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
    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
  • Verified answer
    Phineas Profile Picture
    5,329 Super User 2025 Season 2 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
    Michael E. Gernaey Profile Picture
    53,719 Super User 2025 Season 2 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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 422

#2
WarrenBelz Profile Picture

WarrenBelz 380 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 325 Super User 2025 Season 2

Last 30 days Overall leaderboard