Hi all,
I have a gallery with a combo box that filters the results by type of workshop, and a dropdown for filtering by date, however I want the dates in the dropdown to be based on the type of workshop selected in the combo box. Eg if I select X Workshop in the combo box cmb_Main_Workshop, then I want the dropdown to show only the dates that this particular X workshop was held. I have achieved this using the following:
Distinct(Filter('Workshop Participants', Workshop.Value in cmb_Main_Workshop.SelectedItems.Value||IsBlank(cmb_Main_Workshop.SelectedItems)).Date, Text(Date,"dd/mm/yyyy"))
I now want to sort the date results in the dropdown chronologically, however because I have chosen to display dates in the dd/mm/yyyy format, I cannot figure out how to make the sort work. I suspect I need to sort the dates AFTER the filter is applied but BEFORE the text date format is applied - but not sure how to do this.
Any suggestions?