3 Replies Latest reply: Jul 18, 2013 9:20 AM by Angel Rodriguez RSS

    Subfield function inside set analysis

      Hi dev people,


      I have been trying several hours make to work the expression: 



      =Sum( {< Producto={$(=subfield(vProducto,' (',1))}>} Precio)



      In vProducto is stored 'Producto1 (200)'


      I have also tried:


      =Sum( {< Producto={$(=subfield('Producto1 (200)',' (',1))}>} Precio)

      and it does not work either.

      If i try:


      =Sum( {< Producto={'Producto1'}>} Precio)



      it works.


      It seems that the subfield expression or the variable is not well resolved. Any ideas?



      Thank you!!