Hi there
I am creating a app that a department admin just clicks on a button to select a winner based on.
I want to be able to sort these by month but also if there was noone tagged for that month it looks at the previous month for the winner.
At the moment i have a collection called "ShuffledNames" (datasource sharepoint list) which will have the email of the tagged user and comments showing. On the button i put in the below command on the "onselect" property. The shuffle works but i want to be able to get data for the current month and if no data for that month then look at previous month. I have tried to sortbycolumns, using "Messages" column which has the dates of when the posts were posted but no luck. Any suggestions please?
ClearCollect(
ShuffledNames,
Shuffle('Appreciation - National Operations'),SortByColumns('Appreciation - National Operations',"Messages",SortOrder.Ascending)
)