I have a table like this:
There are a Values column and optional weight coefficients. If Weight is not set, then Value should not be added to the sum.
In