I am trying to populate a drop down list in PowerApps based on a DatePicker field, however, the drop down is not showing all the values existing in the list in SharePoint.
List Name: Fitter List DateTime field in Fitter List: AppointmentDate DatePicker component in PowerApps set as ShortDate: DatePicker1 Field to display in drop down: Title
First query tried:
Distinct(Filter('Fitter List', (AppointmentDate = DatePicker1.SelectedDate)),Title)
Error returned:
Then tried to convert both the field being queried and the Date picker field to text and compare. This returns some selections in the Date Picker but not all.
Distinct(Filter('Fitter List', (Text(AppointmentDate,DateTimeFormat.ShortDate) = Text(DatePicker1.SelectedDate))),Title)
I then created another Calculated field AppointmentDateText based on AppointmentDate, as shown below:
=TEXT(AppointmentDate,"m/d/yyyy")
and changed the query to:
Distinct(Filter('Fitter List', (AppointmentDateText = Text(DatePicker1.SelectedDate))),Title)
Similarly, it worked for some of the selections but not all. The idea behind "m/d/yyyy" as Date Format is due the same format being displayed in the DatePicker component.
These are only a few of the queries tried, it is not working and nothing is making sense. any help would be greatly appreciated