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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to show percentages in pivot for each column value?

Hi,

I have pivot chart data as below in qvw.

                                                                                       

FlagMONTHGrand TotalOct 2013Nov 2013Dec 2013Jan 2014Feb 2014Mar 2014Apr 2014May 2014Jun 2014
ALLOW 117685330321736364928
NOT ALLOW 78353430291528313916
ENTER 842159326556
AUDIT 3221481331355
CONVERSION 3732169428598

I need the pivot chart data should show the percentages also. so, need output as below

                                                                                                     

FlagMONTHGrand TotalOct 2013Nov 2013Dec 2013Jan 2014Feb 2014Mar 2014Apr 2014May 2014Jun 2014
ALLOW 117685330321736364928
NOT ALLOW 78353430291528313916
NOT ALLOW/ALLOW 66.00%62.50%64.15%100.00%90.63%88.24%77.78%86.11%79.59%57.14%
ENTER 842159326556
ENTER/ALLOW 7.14%25.00%28.30%30.00%9.38%11.76%16.67%13.89%10.20%21.43%
AUDIT 3221481331355
AUDIT/ALLOW 27.38%12.50%7.55%26.67%3.13%17.65%8.33%36.11%10.20%17.86%
CONVERSION 3732169428598
CONVERSION/ALLOW31.72%25.00%186.67%30.00%12.50%11.76%22.22%13.97%18.37%

28.57%

can anyone suggest me how to calculate the percentages to show at the bottom of each value.

Thanks.

13 Replies
Not applicable
Author

the expression I have used is Count(ID).

actually the requirement is to calculate count of IDs in each month. so, I have used this.

is there anything wrong I used?

antoniotiman
Master III
Master III

Do You have link between ID and MonthYear ?

Digvijay_Singh

This is certainly helpful to learn complex functions, Since I have personal edition, I tried to replicate the expression. Can you pl help me to know what mistake I did in replicating it. Showing exceeding memory in chart. Sharing QVW herewith.

antoniotiman
Master III
Master III

This is my script

CrossTable(MONTH, Value)
LOAD Flag,
[Oct 2013],
[Nov 2013],
[Dec 2013],
[Jan 2014],
[Feb 2014],
[Mar 2014],
[Apr 2014],
[May 2014],
[Jun 2014]
FROM
"https://community.qlik.com/message/838385"
(html, codepage is 1252, embedded labels, table is @1);

See Dimension and Expression in Post.

Regards