In Power Apps, I am using the following statement:
SortByColumns(
Filter(
SPListSource,
'User'.DisplayName = User.Selected.Result && StartsWith(
Title,
SearchInput1.Text
)
),
"Status",Ascending
)
However, Power Apps is not liking this statement. When I use another column (such as a date or number column) it works fine. However, this column it does not like and returns a "Cannot sort on the expression type" error. The SPListSource is a Microsoft Lists data set and the column "Status" inside of Lists is of type "Choice" that does not allow multiple selections.
I have even tried using "Status".value, but it didn't like that.
I also tried:
SortByColumns(
Filter(
SPListSource,
'User'.DisplayName = User.Selected.Result && StartsWith(
Title,
SearchInput1.Text
)
),
"Status",["Completed","Assigned","On Hold"]
)
but it didn't like the formatting in the above when I manually chose the order for the column options.
Has anyone ever come across this issue before or offer advice?
thanks in advance!