Hi,
In automation I am trying to calculate sum of multiply of two lookupissue values (X and Y)
lookupissue.valueX (string)
lookupissue.valueY (number)
Could you help me and propose what is the correct smartvalue to be used or how to achieve the expected. Take an examle of lookup issue values
5 * 2 + 10 * 3 + 1 * 5 = 10 + 30 + 5 = 45
but if I use for example
{#=}}{{lookupIssues.valueX.asNumber.multiply(lookupIssues.valueY).sum}}{{/}}
it returns 0 ?
if I understand it correct, you want to do sumproduct. Below works.,
{{#=}} {{#lookupIssues}} {{valueY.multiply(valueX.asNumber)}} {{^last}}+ {{/}} {{/}} {{/}}
Can you check and see if this works for you?
This will give the correct sum product.
{{#=}} {{#lookupIssues}} {{valueY}} * {{valueX.asNumber}} {{^last}}+ {{/}} {{/}} {{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Vishal Biyani your solution works :) I am so glad to see this finally working - thanks a lot for you help and have a nice day!!
BR;
/Ari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad to know this worked for you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.