I have Status column in my SharePoint List with Choices New, In Progress and Completed. In my gallery I would like to show items sorted with this column. The "Completed" items needs to be at the end of the gallery. I would like to sort in the order of In Progress, New and Completed. I am not finding a way to do this for a choice column. What should be my approach for this? Below code is what I got for my Gallery items.
SortByColumns(
Filter(
'SLD Form',
(Category.Value = drpCategory.Selected.Value || If(
drpCategory.Selected.Value = "All",
true,
false
)) && (TopicType.Value = drpTopicType.Selected.Value || If(
drpTopicType.Selected.Value = "All",
true,
false
)) && (Status.Value = drpStatus.Selected.Value || If(
drpStatus.Selected.Value = "All",
true,
false
)) && If(
varShowUpcmg,
Schedule >= varToday,
true
)
),
"Schedule",
Descending
)
Also I dont think I would be able to use AddColumns Function as my gallery is linked to EditForm where there can arise conflict. I am really running out of options.