Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

CITY/MEMBER Dimension wise Cumulative %tile Calculation

Dear All,

i have table with CITY and MEMBER Dimension as below:

MEMBER CITY TURNOVER
AMUMBAI100
ADELHI200
BDELHI100
BMUMBAI300
BPUNE500
CDELHI50
CMUMBAI250
CPUNE600
DDELHI25
DMUMBAI50
DPUNE200
EMUMBAI25
EPUNE125
EDELHI225
FMUMBAI110
FPUNE150
FDELHI300

i have make table which show Memberwise Turnover along with Cumulative %tile ( i have used relative option with full accumulation)

CITY Selected : DELHI

MEMBER Sum(TURNOVER) Cumlative %tile
900 100.00%
D252.78%
C508.33%
B10019.44%
A20041.67%
E22566.67%
F300100.00%


In the Above table you can see Member 'A' have '41.67%'  on DELHI City.

Now below is my requirement.

suppose select a Member 'A' then i want  to see CITY wise Turnover of a MEMBER like below:

CITY Sum(TURNOVER)
300
MUMBAI100
DELHI200

In the above table i want to added a more column name 'Cumulative' which show the Member's Cumulative position which we seen on above table i.e. 41.67% . the output will as below:

CITY Sum(TURNOVER) Cumlative
300 0.00%
MUMBAI100<what ever value as based of MUMBAI>
DELHI20041.67%

I am also attaching the sample QVW for ready reference.

Kindly help.

Thanks & Regards,

Jitendra K Vishwakarma

22 Replies
Not applicable
Author

Kindly Ignore previous image.

I think,this is what you want.

Capture.PNG

Not applicable
Author

That is also wrong what i dont want

below is image what i want .. first two table(DELHI and MUMBAI) is reference what calculation needs to be done for MEMBERS  and the last third table is were and how i want to show when i selecte MEMBER 'A'.

Not applicable
Author

Hi,

i am able to get RANK() base SUM can we use some more that what rank() is of the MEMBER get SUM to his RANK()

1) Calculating RANK. : min(Aggr(rank(sum({<MEMBER>} TURNOVER)),CITY,MEMBER))

2) top 2 RANK wise SUM :sum({1}aggr(if(rank(sum({<MEMBER>} TURNOVER))<=2,sum({<MEMBER>} TURNOVER)), CITY,MEMBER))

i try to use this way but did not work( Merge the both)

sum({1}aggr(if(rank(sum({<MEMBER>} TURNOVER))<= min(Aggr(rank(sum({<MEMBER>} TURNOVER)),CITY,MEMBER)),sum({<MEMBER>} TURNOVER)), CITY,MEMBER))