cancel
Showing results for 
Search instead for 
Did you mean: 

Percentage Rank in webI

jyothirmayee_s
Active Contributor
0 Kudos

Hi Gurus,

I need to do a Percentage Rank in WebI.. just like PercentageRank() in Excel.

I have Date and WeekAgg from SQL . Report is based on Universe and did some work around on few formulas on Percent Rank but in vain.

Rank(WeekAgg)/ Runningcount(WeekAgg) and Nofilter() option also did not work.

Any help on this would be appreciated.

Thanks,

Jothi

Accepted Solutions (1)

Accepted Solutions (1)

jyothirmayee_s
Active Contributor

Solved the Percentage Rank..

Below is formula in case anyone had similar requirement:

Max(Rank of value) - (Rank of Value) / Max(Rank of Value) -1

Thanks,

Jothi

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Jothi,

Try these below steps to achieve PercentRank in WebI.

My report has City and Sales Revenue from eFashion universe. now I want to achieve Percentage Rank for Sales Revenue.

Note: I have sorted the Sales Revenue by Descending order.

Let's create below variable to achieve the PercentRank in WebI report.

Step 1: RCount=RunningCount([Sales revenue])

Step 2: Numerator=(Max([RCount]) In Block)-[RCount]

Step 3: Denominator=(Max([RCount]) In Block)-1

Step 4: PercentRank=[Numerator]/[Denomiator]

Here is screen shot of WebI report:

Hope this will help..

Regards,

Mahender

jyothirmayee_s
Active Contributor
0 Kudos

thank you Mahender,

Somehow values in WebI are not matching with the PercentRank() in Excel.

Followed step by step.

Thanks,

Jothi

Former Member
0 Kudos

Hello Jyothi,

Could you please post the snap shot of report where you need Ranking and also if possible sample data.

Regards

Niraj

jyothirmayee_s
Active Contributor
0 Kudos

Here is the sample data Niraj,

Week AggDate
1.4175382016-01-15 0:00:00
1.45352572016-01-18 0:00:00
1.48432172016-01-19 0:00:00
1.54235342016-01-20 0:00:00
1.24140142016-01-21 0:00:00
1.31703392016-01-22 0:00:00
1.32141492016-01-25 0:00:00
1.29912322016-01-26 0:00:00
1.2511242016-01-27 0:00:00
1.26114982016-01-28 0:00:00
1.226532016-01-29 0:00:00
1.2156772016-02-01 0:00:00
1.40737452016-02-02 0:00:00
1.39649052016-02-03 0:00:00
1.22900082016-02-04 0:00:00
1.19412582016-02-05 0:00:00
1.21982362016-02-08 0:00:00
1.30705052016-02-09 0:00:00
1.544012016-02-10 0:00:00
1.57636572016-02-11 0:00:00
1.89669912016-02-12 0:00:00
1.62428832016-02-15 0:00:00
1.47375382016-02-16 0:00:00
4.50109892016-02-17 0:00:00
1.036342016-02-18 0:00:00
1.52560522016-02-19 0:00:00
1.30729812016-02-22 0:00:00
1.37019082016-02-23 0:00:00
1.35012862016-02-24 0:00:00
1.35259972016-02-25 0:00:00
1.35894482016-02-26 0:00:00
1.19948862016-02-29 0:00:00
1.16458472016-03-01 0:00:00
1.18330322016-03-02 0:00:00
1.14830492016-03-03 0:00:00
1.13798922016-03-04 0:00:00
1.22845232016-03-07 0:00:00
1.30348962016-03-08 0:00:00
1.31971642016-03-09 0:00:00
1.37434542016-03-10 0:00:00
1.2379422016-03-11 0:00:00
1.6674522016-03-14 0:00:00
1.14173442016-03-15 0:00:00
1.13807992016-03-16 0:00:00
1.15319162016-03-17 0:00:00
1.66945662016-03-18 0:00:00
1.34645962016-03-21 0:00:00
1.23673092016-03-22 0:00:00
1.20505112016-03-23 0:00:00
1.2620592016-03-24 0:00:00
1.27112482016-03-25 0:00:00
1.17427622016-03-28 0:00:00
1.23446082016-03-29 0:00:00
1.35683782016-03-30 0:00:00
1.45796962016-03-31 0:00:00
1.445492016-04-01 0:00:00
1.21353382016-04-04 0:00:00
1.21152252016-04-05 0:00:00
1.24248542016-04-06 0:00:00
1.20322352016-04-07 0:00:00
1.20419092016-04-08 0:00:00
1.25765652016-04-11 0:00:00
1.2442432016-04-12 0:00:00
1.22394862016-04-13 0:00:00
1.24477242016-04-14 0:00:00
1.29432112016-04-15 0:00:00
1.62023712016-04-18 0:00:00
1.56011042016-04-19 0:00:00
1.93510242016-04-20 0:00:00
1.33792972016-04-21 0:00:00
1.29748532016-04-22 0:00:00
1.17925532016-04-25 0:00:00
1.19106622016-04-26 0:00:00
1.1569112016-04-27 0:00:00
1.1629212016-04-28 0:00:00
1.1602362016-04-29 0:00:00
1.19238662016-05-02 0:00:00
1.19681982016-05-03 0:00:00
1.20580572016-05-04 0:00:00
1.24172572016-05-05 0:00:00
1.21905162016-05-06 0:00:00
1.20532152016-05-09 0:00:00
1.19169492016-05-10 0:00:00
1.21995192016-05-11 0:00:00
1.21289172016-05-12 0:00:00
1.24599972016-05-13 0:00:00
1.19313292016-05-16 0:00:00
1.19045622016-05-17 0:00:00
1.18690682016-05-18 0:00:00
1.25447822016-05-19 0:00:00
1.18891242016-05-20 0:00:00
1.22429922016-05-23 0:00:00
1.33522912016-05-24 0:00:00
1.37644092016-05-25 0:00:00
1.33921452016-05-26 0:00:00
1.27191712016-05-27 0:00:00
1.26764582016-05-30 0:00:00
1.22086472016-05-31 0:00:00
1.32309212016-06-01 0:00:00
1.3348612016-06-02 0:00:00
1.27644292016-06-03 0:00:00
1.13719842016-06-06 0:00:00
1.2145292016-06-07 0:00:00
1.17513262016-06-08 0:00:00
1.21622132016-06-09 0:00:00
1.17049442016-06-10 0:00:00
1.39702432016-06-13 0:00:00
1.29715142016-06-14 0:00:00
1.33677692016-06-15 0:00:00
1.15133062016-06-16 0:00:00
1.2497512016-06-17 0:00:00
1.20089382016-06-20 0:00:00
1.10922942016-06-21 0:00:00
1.10241352016-06-22 0:00:00
1.12676192016-06-23 0:00:00
1.09369932016-06-24 0:00:00
1.06561422016-06-27 0:00:00
1.16305982016-06-28 0:00:00
1.17899962016-06-29 0:00:00
1.2505432016-06-30 0:00:00
1.26216042016-07-01 0:00:00
1.38513932016-07-04 0:00:00
1.31135512016-07-05 0:00:00
1.30466062016-07-06 0:00:00
1.23995822016-07-07 0:00:00
1.21328072016-07-08 0:00:00
1.15600362016-07-11 0:00:00
1.28348082016-07-12 0:00:00
1.26815132016-07-13 0:00:00
1.25344362016-07-14 0:00:00
1.26484722016-07-15 0:00:00
1.17649392016-07-18 0:00:00
1.20425812016-07-19 0:00:00
1.28599032016-07-20 0:00:00
1.24514022016-07-21 0:00:00
1.13382712016-07-22 0:00:00
1.20536622016-07-25 0:00:00
1.14044342016-07-26 0:00:00
1.13448312016-07-27 0:00:00
1.10627322016-07-28 0:00:00
1.22397052016-07-29 0:00:00
1.11428642016-08-01 0:00:00
1.16590982016-08-02 0:00:00
1.20388412016-08-03 0:00:00
1.17852362016-08-04 0:00:00
1.13724282016-08-05 0:00:00
1.1850012016-08-08 0:00:00
1.17021082016-08-09 0:00:00
1.15939242016-08-10 0:00:00
1.1863352016-08-11 0:00:00
1.24781622016-08-12 0:00:00
1.34409052016-08-15 0:00:00
1.34354632016-08-16 0:00:00
1.35271442016-08-17 0:00:00
1.36284562016-08-18 0:00:00
1.3627572016-08-19 0:00:00
1.14344742016-08-22 0:00:00
1.21421372016-08-23 0:00:00
1.22421092016-08-24 0:00:00
1.19036982016-08-25 0:00:00
1.1798722016-08-26 0:00:00
1.15347312016-08-29 0:00:00
Former Member
0 Kudos

Jothi,

I have calculated the PercentRank for sample top 10 weekagg values.. let me know are you expecting the same values in WebI..Please refer screen shot attached below.

Note: I have sorted the Week Agg values (Largest to Smallest)

Regards.

amitrathi239
Active Contributor
0 Kudos

have you tried these ranking percentage options.