Hi,
I am struggling to solve this issue, it is pretty much the final piece of the app, and is frustrating that I cannot solve it. So any help is much appreciated.
I am trying to filter a gallery by multiple dropdowns (4)
- Location
- Sub-Location
- Two DatePickers (Start Date) and (End Date)
- Shift
My gallery was filtering fine using the Location and Sub-Location dropdowns, however, I cannot get it to filter based on if the date 'Created' (the automatic Created column in SharePoint Lists) was between the two DatePickers. So the user would select the Start Date, and then the End Date, and then the Gallery would show the relevant data Created ibetween those two dates. Whilst also getting filtered on Location, Sublocation and Shift.
I have tried writing the code as you can see in my attachment, however I am getting the error code on the = sign. 'Invalid argument type: Expecting one of the following: Number, Decimal, Date, Time, DateTime, UntypedObject.
Below is my current code.
Filter('Operations MIR List',
Location = Dropdown_Location_2.Selected.Result,
'Sub-Location' = Dropdown_Sub_Location_2.Selected.Result,
'Created' = DatePicker_Start_Date.SelectedDate>=DatePicker_End_Date.SelectedDate && DatePicker_Start_Date.SelectedDate<=DatePicker_End_Date.SelectedDate)
Once this issue is solved, I'd also want it so that on the Shift filter, the options are '-----', Red, Blue, Green, Yellow. When the option '-----' is selected, I'd like the gallery to just show all shifts data. However, I need to solve this datepicker issue first.
Any help is much appreciated, thanks.