This forum has helped me on so many occassions. Over the last 2 days I have searched and found answers so close to what I need.
My issue: I have a query in which I average 3 fields. In some cases all three fields may be null. When they are I get an #Error in my average field.
In several posts I've read the following:
I'm looking for ideas on how to avoid the #Error when all three fields being calculated are Null. Any suggestions will be so appreciated. Thanks!
My issue: I have a query in which I average 3 fields. In some cases all three fields may be null. When they are I get an #Error in my average field.
In several posts I've read the following:
You need to determine which is the correct answer in your situation:
3, 0, 3 = 2 OR 3, null, 3 = 3
If you want null values considered to be zero for the purpose of the average, you'll be ok with this solution. If not, you'll need a more complex calculation that counts the number of non-null values to use as the divisor OR better still - normalize your schema.
I'm looking for ideas on how to avoid the #Error when all three fields being calculated are Null. Any suggestions will be so appreciated. Thanks!