1 Reply Latest reply: May 18, 2012 1:02 PM by Vlad Gutkovsky RSS

    Sum based on expression

      I have an expression called Range which is equal to

      if(((sum(Final_amt/sum(avg_amt))/rate)<=.80,'A', if(((sum(Final_amt)/sum(avg_amt))/rate)>.90,'B','C'))

       

      I would like to create another summation similar to this

      sum(total <Range> Members)

       

       

      Is this even possible? if not what can I do to work around this.... ?

       

      Thanks!

        • Sum based on expression
          Vlad Gutkovsky

          It sounds like your "Range" should be a calculated dimension rather than an expression. Also, the syntax above for Range won't work in QV since you have nested aggregation. Try taking this to a calculated dimension (using function aggr over dimension Member probably). The expression of the chart would just be sum(Members)

           

          Vlad