4 Replies Latest reply: Apr 25, 2017 9:49 AM by Sunny Talwar RSS

    Can't aggregate alternate states

    Nicolò Cogno

      I everybody,

       

      I'm using the set object state extension to compare prices of objects. I would like to be able to compare more objects at a time but I can only do that with the objects in main state.

       

      For the main state I'm using this expression:

       

      Sum(Aggr(Min(object_cost),object_name))

       

      and it works always, I can select one or more objects and there is no problem.

       

      With the objects in alternate state I use this expression:

       

      Sum(Aggr(Min({Alt}object_cost),{Alt}object_name))


      but it doesn't work, it gives me a wrong result.

      If I use

       

      Min({Alt}object_cost)



      I get the right result, but with this I can only select one object. What should I use to get the right result when selecting more objects in the alternate state?

       

      Thanks a lot for your help and for your attention ,

       

      Best regards

       

      Nicolò Cogno