Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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
MK_QSL
MVP
MVP

Create a Straight Table

Dimension

CITY

Expressions

1)SUM(TURNOVER)

2)SUM(TURNOVER)/SUM({1}TOTAL <CITY> TURNOVER)

Go to number tab to make 1st Expression as Integer and 2nd as %

Not applicable
Author

This is wrong .. this is not what i want..

CITY Sum(TURNOVER) SUM(TURNOVER)/SUM({1}TOTAL <CITY> TURNOVER)
300 100.00%
MUMBAI10035.02%
DELHI20064.98%
MK_QSL
MVP
MVP

If you select A what should be the answer? Please suggest...

Not applicable
Author

this is also wrong what i dont want

CITY Sum(TURNOVER) SUM(TURNOVER)/SUM({1}TOTAL <CITY> TURNOVER)
300 9.06%
MUMBAI10011.98%
DELHI20022.22%
Not applicable
Author

below is screen shot what i expect the answer the Cumlative % is not CITY wise cumulative%, it is actually in city wise cumulative  % of Memberwise and if i selected 'A' then it show as below.

the below first two table is showing the position on Members in DELHI and MUMBAI separately . A position is at 41.67% in DELHI and in MUMBAI 20.96%

These two table is just to show what i am calculating value which i requried to show when i just see last third.

the third table is show result when i select 'A'

image.png

MK_QSL
MVP
MVP

Like this?

Not applicable
Author

Yes Right.. but you have done using load script. which don't want ... i am trying to do by set analysis only. because my original data is huge in size and date,year,month and many more dimension also....

Not applicable
Author

Hi Jitendra,

I have loaded your given data in QlikView by using Excel.

Then Create one filter on City and create on table 1 which shows:

CITY Selected : DELHI

MEMBERSum(TURNOVER)Cumlative %tile
900100.00%
D252.78%
C508.33%
B10019.44%
A20041.67%
E22566.67%
F300100.00%

Now I have clone this table and created table 2. and in expression i have written:

sum({1<MEMBER=p(MEMBER)>}TURNOVER)/Sum({1<MEMBER=p(MEMBER)>}total TURNOVER)*100

So when you click on member,in table 1,table 2 will show citywise cumulative %.

Not applicable
Author

No.. that is not my requirment

Not applicable
Author

I think,this is what you want.

Capture.PNG