Hello,
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.
Solved! Go to Solution.
Hi @dkrish2020,
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)
Hi @dkrish2020,
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)
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
192 | |
67 | |
46 | |
41 | |
22 |
User | Count |
---|---|
246 | |
120 | |
83 | |
76 | |
70 |