$ 0 0 v_Positive =Sum(If([Value] >0;[Value];0) ForEach ([Product]))v_Negative =Sum(If([Value] <0;[Value];0) ForEach ([Product]))