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

How to add extra calculated rows?

hi, i have a 2-D (State and Group) pivot table showing count, as below:

State     Group     g1     g2     g3     Total

Total          100     200     300     600

s1          90     190     285     565

s2          10     10     15     35

now i want to add one row at bottom to calculate percentage of State s2 out of Total per Group, like below:

State     Group     g1     g2     g3     Total

Total          100     200     300     600

s1          90     190     285     565

s2          10     10     15     35

s2 %          10%     5%     5%     

is this possible and can anyone tell how to do it?

or any other alternatives?

thanks,

little

16 Replies
Not applicable
Author

thank you all,

but my data is flat, as below:

IdentifierGroupState
2g1s1
3g1s2
4g2s1
5g2s2
6g1s1
7g1s2
8g2s1
9g2s2
10g1s1
11g1s1

then in my veiw, i create below 2-D cross table:

StateGroupg1g2Total
s1 426
s2 224
Total 6410

and what i want to add is to this 2-D cross table:

StateGroupg1g2Total
s1 426
s2 224
Total 6410
s2 % 33%50%40%
jagan
Luminary Alumni
Luminary Alumni

Hi,

Did you checked the attachment?

Regards,

Jagan.

Not applicable
Author

yes Jagan. seems like your example is only with 1 dimension, but mine is 2-D cross table.

jagan
Luminary Alumni
Luminary Alumni

Hi,

Can you attach sample file that you are working?  It helps in solving the problem.

Regards,

Jagan.

Not applicable
Author

PFA.

Thanks,

Sean

jagan
Luminary Alumni
Luminary Alumni

Hi,

If you 2 states then above attached file is the best option, otherwise you need to create another chart to display percentage alone.

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

hi , littleyoung how did u get your respond about s2%?