1 Reply Latest reply: Nov 13, 2012 6:06 PM by Dion Verbeke RSS

    Set analysis differ in expression and script



      I am using


      sum( {$<ProductID2 = {$(=max(ProductID2))} >} ListPrice )


      in a chart expression and it works fine.


      When I use the same code in a script I get an internal error in the {$(=max(ProductID2))} - part.


      set vMySales = sum( {$<ProductID2 = {$(=max(ProductID2))} >} ListPrice )


      How come it does not work the same way?


      Kind regards