How can I write an expression that will only sum values in a list where a column is not null?
example:
2.1 4 5 23
4 1 2 null
1 3.1 5 1
8 .5 1 null
i would like to get the sum of the first column to all rows who doesn’t have the last column null. So my answer would be 2.1+1 = 3.1. Is it possible to have a ‘where’ clause in a Sum expression? Or how could i use the Sum-if to accomplish this?
have a look whether this helps