@PowerApps11, glad I could help.
In order to use the dropdowns you will need 2 dropdowns (status & date).
The Items property will have the following:
//StatusDropDown
["ALL", "OPEN", "CLOSED"]
//DateDropDown
["PAST DUE", "DUE TODAY"]
The OnChange property of the DateDropDown:
//This will reset the value of the StatusDropdown back to 'ALL'
Reset(StatusDropDown)
When we filter via date, we want the status dropdown to be ALL.
Remove the Default property & set AllowEmptySelection to true for the DateDropDown.
The gallery items property will be:
Filter(
TaskSPList,
//Check if all is selected, else filter by status
StatusDropDown.Selected.Value = "ALL" || status = StatusDropDown.Selected.Value,
//Check if date dropdown is blank, else filter by date range
IsBlank(DateDropDown.Selected.Value) || (DateDropDown.Selected.Value = "PAST DUE" && DATEFIELD < Today()) || (DateDropDown.Selected.Value = "DUE TODAY" && DATEFIELD = Today())
)
I hope this helps!