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: 
JaimeG
Contributor II
Contributor II

How to Add total and distribution field in pivot table?

Hi

I have a pivot table that shows the cases sold by month and by channel.

JaimeG_0-1605648435484.png

The formula I use to measure the pivot table is:

JaimeG_1-1605648492019.png

I want to add a total line at the end as well as the distribution of each channel over the total.

The table I want to obtain would be similar to the one in the following image:

JaimeG_3-1605648709237.png

1 Solution

Accepted Solutions
MayilVahanan

Hi @JaimeG 

Try like below

Island:

Load * Inline [

Dim

1

2

3

4

];

Create Dimension

CODE

Pick(Dim, CANAL_VENTA, 'TOTAL', '% venta par ecommerce', '% venta brokers')

Expression will be

Pick(Dim, ur expression, urtotalexpression, urpercentageexp, urventabrokersexp)

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

Hi @JaimeG 

Try like below

Island:

Load * Inline [

Dim

1

2

3

4

];

Create Dimension

CODE

Pick(Dim, CANAL_VENTA, 'TOTAL', '% venta par ecommerce', '% venta brokers')

Expression will be

Pick(Dim, ur expression, urtotalexpression, urpercentageexp, urventabrokersexp)

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
JaimeG
Contributor II
Contributor II
Author

Thanks for the help Mayil Vahanan R