I have been using the below code for over 12 months in a PowerApp and now without any changes to the app or the datasource it has stopped working. I can't work it out but the common suggestion is using an As statement. can someone please advise how to correct this code?
If(And(datesSelected, varType <> ""), Filter( 'Loan Equipment', varType = HardwareType, IsEmpty( Filter( 'Loan Dates', Ref = AssetID, Or( BEndDatePicker.SelectedDate <= EndDate && BStartDatePicker.SelectedDate >= StartDate, BEndDatePicker.SelectedDate >= EndDate && BStartDatePicker.SelectedDate <= StartDate, BStartDatePicker.SelectedDate >= StartDate && BStartDatePicker.SelectedDate <= EndDate, BEndDatePicker.SelectedDate <= EndDate && BEndDatePicker.SelectedDate >= StartDate ) ) ) ) )
Really appreciate your help