I want to sort gallery items directly without any button click for this iam trying to sort gallery items with optionset field and two optionset and date field. please suggest how to achieve this.
SortByColumns(Notes,"new_category", Descending,"new_bookmarked", Descending,"modified",Descending)
iam getting error as cannot sort on expression type on new_category field which is optionset field. please suggest.
Go to Solution.
For the optionset you could use an addcolumns function and retrieve the value of the field. You can use the custom column for the sorting.
Below is an example of that approach.
In this example Status is the optionset, Checked is the boolean, Modified is still Modified.
SortByColumns(AddColumns(PowerApps, "ColumnStatus", Status.Value),"ColumnStatus", Ascending, "Checked", Descending, "Modified", Ascending)
View solution in original post
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.