Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Community,
this is my table
I created a variable called v_term_extension = 36
in this use case I would like to calculate:
sum(if( v_term_extension <= use_term, use_term * payment * markup,
if( v_term_extension > use_term, (use_term * payment) +
(v_term_extension - sum (use_term)) * payment * (min(markup) = 1%)
)))
The result should be
is this possible to do this in QV?