TL;DR: Is there an easy way to calculate the average between a group of columns on google's bigquery?
I have a table with many estimates from a continuous variable, I'm giving an example with only three columns but the original table have something between 8 columns:
| Estimate_A | Estimate_B | Estimate_C |
|---|---|---|
| 4 | 2 | 3 |
| 1 | 2 | 2 |
| 4 | NULL | 2 |
| 2 | 3 | NULL |
| 4 | NULL | NULL |
I want to produce a new column AVG_ESTIMATE which is an AVERAGE between these estimate columns but ignoring the NULL data
| Estimate_A | Estimate_B | Estimate_C | AVG_ESTIMATE |
|---|---|---|---|
| 4 | 2 | 3 | 3 |
| 1 | 2 | 2 | 1.66 |
| 4 | NULL | 2 | 3 |
| 2 | 3 | NULL | 2.5 |
| 4 | NULL | NULL | 4 |

