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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Pivot Table Total

I have following pivot table in my Doc.

Screenshot_1.png

I want to add Grad total (BRAN+CITY) with Prd_code total also shown under the above table and output report should look llike the one given below

Screenshot_2.png

Is this possible if so pls advise me to how to do it. I have attached my sample QV doc

1 Solution

Accepted Solutions
sunny_talwar

Another method

Capture.PNG

Add this to the script

Dim:

LOAD * Inline [

Dim

1

2

];

Dimensions

=Pick(Dim, DEPT, 'Total')

PRE_CODE

RISK_YEAR

Expression

COUNT(DISTINCT POLICY_NO)

View solution in original post

4 Replies
mayankraoka
Specialist
Specialist

Hi Upali,

Is this you are looking for?

PFA app

Another way is do inline load:

lOAD * INLINE [  

   Dept,Dept1

    BRAN, BRAN,

    CITY, CITY

    BRAN, Total

    CITY, Total

];

With appropriate ID and use Dept1 as field.

Regards,

Mayank

upaliwije
Creator II
Creator II
Author

Hi Mayank

What I am looking for not Grand Total row but Prd_code wise grand total as shown in my 2nd screen shot

mayankraoka
Specialist
Specialist

Hi Upali,

Please check updated qvw this is what you want?

Image1.JPG

'

Regards,

Mayank

sunny_talwar

Another method

Capture.PNG

Add this to the script

Dim:

LOAD * Inline [

Dim

1

2

];

Dimensions

=Pick(Dim, DEPT, 'Total')

PRE_CODE

RISK_YEAR

Expression

COUNT(DISTINCT POLICY_NO)