Hi guys,
In my powerapp, the gallery is filtered using the following code:
SortByColumns(Filter('[ext].[pwr_OwnerBookingsAll]', ParkName = Left(ParkDropdown.Selected.Value, Len(ParkDropdown.Selected.Value) - 5), Or(PitchFilterTextbox.Text = "", PitchFilterTextbox.Text in LookUp(Filter('[dbo].[VanBasicDetails]', PARK_CODE = Right(ParkDropdown.Selected.Value, 2)), VAN_ID = LodgeNumber).PITCH_DESC) && (Status = "Pending" Or ShowAdded.Value)),"StartDate", SortOrder.Ascending,"LodgeNumber", SortOrder.Ascending)

The problem is that the results only show when the 'show added' checkbox is ticked, if unchecked, nothing is displayed.
However, if I remove the pitch filter, so I'm left with:
SortByColumns(Filter('[ext].[pwr_OwnerBookingsAll]', ParkName = Left(ParkDropdown.Selected.Value, Len(ParkDropdown.Selected.Value) - 5) && (Status = "Pending" Or ShowAdded.Value)),"StartDate", SortOrder.Ascending,"LodgeNumber", SortOrder.Ascending)
This works but I can't filter the results.
I'm clearly missing something and was hoping anyone could shed a light on what I'm doing wrong.
Many thanks