long time listener, first time caller here...
I am trying to use SQL to calculate the average of several values across a row. All suggestions I've seen thus far say to simply Sum the values and divide by the number of values used, which would work except that it is common for some of my values to be NULL, in which case this calculation does not work. Is there a SQL statement I can use to get the average per Identifier per date across a row of values when some of those values may be NULL?
in attached image from Excel - Excel properly captures the average and ignores the NULL values. Can SQL do the same and get the same values?
Tried known suggestions for summing the values and dividing by the number of values, which does not work when those values are NULL.