How To Create an IFS Formula based on X?

Hello, does anybody know how to create an IF based formula.

The structure:

  • Product Type (Dropdown Field)
  • Amount (Currency Field)
  • Value A (Currency Field)
  • Value B (Currency Field)
  • Value C (Currency Field)
  • Value D (Currency Field)

IF Product Type = Product A

THEN Amount = Value A * Value B

IF Product Type = Product B

THEN Amount = Value C * Value D

Kindly advise, thank you.

  • Hi

    The formula may looks like that:


    ifElse(equal($product_type,"Product A"),multiply($value_a,$value_b),ifElse(equal($product_type,"Product B"),multiply($value_c,$value_d),0))

    Obviously you need to replace the fields I added in the formula by the correct ones.

    Regards

    André Lopes
    Lampada Global
    Skype: andre.lampada
  • Thank you for the suggestion. It works :)

  •  might I ask how or where you apply this? Would this be usuable within the catalog for quoting? I know there are more oob options we are not yet using - and need to be. This looks valuable. 

    Thanks for any input you might be willing to lend Slight smile

    Missy B.