I am trying to use an If statement to view if a check box is ticked, if it is display all vehicles. If it is not checked only display vehicles that meet the criteria in the filter. However I keep getting the error listed in the subject line.
Haha never thought id be the one making a post here but any help would be greatly appreciated. Thanks in advance.
Function:
If(Checkbox1.Value = true, Vehicles.VehicleNumber, Distinct(Filter(Vehicles, LocKey = DataCardValue11.SelectedText.Result || LocKey = 60000184 || LocKey = 60000205 || LocKey = 50000502 || LocKey = 60000688 || LocKey = 60000690 || LocKey = 60000691 || LocKey = 60000693 || LocKey = 60000705 || LocKey = 50000199 || LocKey = 50000199 || LocKey = 60000177), VehicleNumber))