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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

cell value of a column by total value of that column.

Hi all,

i want to calculate the following in a pivot table:

cell value/(total of column value)

i have attached a pic regarding the explanation of the same.

Thanks for the help,

Regards,

Utsav

1 Solution

Accepted Solutions
er_mohit
Master II
Master II

hii.

you have to use plan as dimension in pivot table and then in pivot table properties go to

presentation --> in plan field click on partial sum then you get answers...

hope this will help you.

rest of expressions written by vishwaranjan are right.

View solution in original post

5 Replies
Not applicable
Author

plansum([col 1])sum([col 2])(([col 1])/Sum(TOTAL [col 1]))
A15528.30%
D10818.87%
G12922.64%
J16230.19%
Total5324-

hope this will help you

in this pivot table.. use the expresion i.e

in 4th coloum.

use just use the expression to get in %

and in properties of pivot table select no. and choose fixed to decimal with 2 and click on check box of % to  this field not others...

Not applicable
Author

Hi vishwaranjan,

in the [col 1] you specified i have used set analysis as follows:

(sum({$<TableFlag={Contract},[Month (#)]={$(=Max(Month))},Year={$(=num(Max(Year)))}>}WRP_IRDA)/1000000)

I did the same as you suggested but i am not getting the answer. i get null values. i.e "-" in my calculated expression column.

Regards,

Utsav

Not applicable
Author

see the attached files

step 1-  open pivot table

step 2-- add dimension  ie plan

step 3--  click on presentation select plan  and the tick mark on partial sum

step 4-- click on expression (1) add expression sum([col 1])

                ( 2) add 2nd expression (([col 1])/Sum(TOTAL [col 1]))

step 5-- then go to number properties of pivot select 2nd expression name the clik on fixed to 2 decimal and then select value in percent

Not applicable
Author

Hey thanks again

but the issue i am facing is id i use the label of pivot table in that expression i dont get an answer.

i.e

(([col 1])/Sum(TOTAL [col 1]))

in this if i rename [col 1] as abc in pivot tabel ans use:

((abc)/Sum(Total abc)

it will not give any answer.

er_mohit
Master II
Master II

hii.

you have to use plan as dimension in pivot table and then in pivot table properties go to

presentation --> in plan field click on partial sum then you get answers...

hope this will help you.

rest of expressions written by vishwaranjan are right.