Hello,
I am trying to Multiply two variables from the same table and I keep getting an error. This is the formula I am using:
=MULT(Items.ItemsQty,Items.PriceItems)
Any ideas on why it wouldn't work? Both variables are coming from a number field.
Hello,
I am trying to Multiply two variables from the same table and I keep getting an error. This is the formula I am using:
=MULT(Items.ItemsQty,Items.PriceItems)
Any ideas on why it wouldn't work? Both variables are coming from a number field.
What error are you getting? Note that Table variables are arrays/collections, so that formula is trying to multiple two lists, not each "pair" individually.
Based on the naming of the variables, it looks like you need each row to multiply individually, in which case I would create a hidden column in the table that does the row by row multiplication, then get the sum of that column instead.
Each row would then have the following formula
=MULT(INDEX(Items.ItemsQty,ROW()),INDEX(Items.PriceItems,ROW()))
Is there a way to multiple a variable in a table to a number? for example will the formula look like this:
=(INDEX(Items.ItemsQty,ROW()) * .59 ??
Yes you can multiply a table row variable with a static number. What you have there should work, but you might want to try a MULT formula if you get any errors when the field is empty.
Thanks that helped tremendously to use the INDEX :)