I have formula that can grab all the differences in expected vs real dates, but how do I tell my AVG() aggregate to ignore any zero values in the formula (i.e. the false branch of the statement below)?
=AVG(
iif(
DateDiff('d',[POOrder.ExpectedDate],[POOrder.UsrOrigPromDate])>6
OR
DateDiff('d',[POOrder.ExpectedDate],[POOrder.UsrOrigPromDate])<-6,
DateDiff('d',[POOrder.ExpectedDate],[POOrder.UsrOrigPromDate]),
0))I tried using the empty set instead of zero, but it gets angry about it not being a number. There has to be a way to just say “Skip this row” based on a condition. Can someone save me?