0 Replies Latest reply: Oct 26, 2011 10:39 AM by ong.hanying RSS

    Decile Analysis

      Hello. I will like to ask how do i replace "aggr", if i want to perform decile analysis in the "load script" instead?

       

      Typically, it will look like this

      (For example)

       

      =if(AGGR(sum(montant),compte_id, week)<=aggr(NODISTINCT fractile(TOTAL <week> aggr(sum(montant), compte_id, week),0.80),week),'P-80%',

      if(aggr(sum(montant), compte_id, week)<=aggr(NODISTINCT fractile(TOTAL <week> aggr(sum(montant), compte_id, week),0.96),week),'M-16%','G-4%'))

       

      Thanks!