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 / SortByColumns includin...
Power Apps
Answered

SortByColumns including a combobox column?

(0) ShareShare
ReportReport
Posted on by 9

I am trying to make an app where the gallery collection sorts the items by a value that is stored in a combobox column.  The code I am using is this:

 

SortByColumns(
 Filter('Time Tracking',CurrentUser.Email = Author.Email, StartsWith(Title, TextSearchBox1.Text)),
 "Pay_x0020_Period",
 If(SortDescending1, Ascending, Descending)
)

The error is "SortByColumns has some invalid arguments." 

 

I am declaring and setting CurrentUser in Onstart, so that's not the issue.

 

If I chage "Pay_x0020_Period" for any none combobox column, it works fine.  

 

What gives?

Categories:
I have the same question (0)
  • Verified answer
    wmcbruce Profile Picture
    9 on at

    Solved it.  

     

    Sort(
     Filter('Time Tracking',CurrentUser.Email = Author.Email, StartsWith(Title, TextSearchBox1.Text)),
     Pay_x0020_Period.Value,
     If(SortDescending1, Descending, Ascending)
    )

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard