Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Percentage in Column

I have following pivot table where I want to calculate the percentage as given below  in the last column

but when I write the following expression desired result is not shown in the % marked in red

My expression is COUNT(NOS)/COUNT(TOTAL NOS)

Pls help me rectify my expression

PAID_YEAR201120112011
AGENT_GROUPAGENT_PAYEEPAID_AMOUNTNOS%Expected %
AGENTAMW13,908,2663320.41%2%
AGENTCARMART_LANKA4,525,290270.03%0%
AGENTCOLONIAL MOTORS191,82720.00%0%
AGENTABANS294,06570.01%0%
AGENTDAVID PEIRIS575,574120.01%0%
AGENTTotal19,495,0223800.47%2%
OTHERSOTHERS656,896,1421996224.58%98%
OTHERSTotal656,896,1421996224.58%98%
Total676,391,1642029725.00%100%
13 Replies
upaliwije
Creator II
Creator II
Author

My NOS format are like as follows

CLNU1A11000023
CLNU1H11000009
CLNU1A11000079
CLNU1A10000699
CLNU1C10000286
CLK81A10000030
CLNU1A11000038

So my expression is count(nos)

antoniotiman
Master III
Master III

Hi Upali,

try

Count(NOS)/RangeSum(Top(Column(N),1,NoOfRows()))

where N=number of column NOS

Regards,

Antonio

pgalvezt
Specialist
Specialist

Is this what you want?

upaliwije
Creator II
Creator II
Author

Thanks all