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

show total column once in pivot table

I am trying to reproduce this table in QV, but I am having some issues when creating Pivot table. I can not reproduce one column to represent total resale $$. The total column is diplayed six times for each one of the six customers. Is there a way to show total once. Does any one have any other suggesting to reproduce this information is usuable format that can easily be incorporated into end user presentations?

Customer
Total Resale ($M)XVVYYBBCCTT
Total past 12-mos:$11.00186.2%199.9%140.7%159.9%49.6%292.8%
2009June$7.7318.5%21.0%14.6%12.2%3.9%29.8%
July$7.4617.3%18.2%15.8%16.2%4.4%28.2%
Aug$7.3117.8%16.1%14.8%16.0%4.4%30.8%
Sep$9.3017.7%19.4%13.3%13.0%3.8%32.7%
Oct$445.000.3%0.3%0.3%0.4%0.1%0.5%
Nov$8.0618.5%19.0%12.6%15.2%5.2%29.6%
Dec$9.4718.4%22.0%11.7%12.9%4.6%30.4%
2010Jan$9.8218.0%22.3%11.8%16.6%5.3%26.0%
Feb$55.003.7%4.0%2.4%3.1%0.9%5.7%
Mar$12.3219.6%20.4%13.8%14.0%5.1%27.2%
Apr$66.002.8%2.9%2.6%3.2%0.9%4.6%
May$55.003.6%3.9%3.0%3.6%1.1%5.2%
June
July
Aug
Sep
Oct
Nov
Dec


8 Replies
martin59
Specialist II
Specialist II

Hi,

You have to check this "show partial sum" in presentation tab on the right dimension to have your result.

karensmith
Contributor II
Contributor II
Author

Thank you martin...I have used that feature, but I get a total for every customer... I just want to show the grand total once and that is it.

What do you think? Am I doing something wrong?

Market_NameXXWWYYYYBBBBCCCCTTTT
FYYearFYMonthNameSum (POSVALUE)MarketShareSum (POSVALUE)MarketShareSum (POSVALUE)MarketShareSum (POSVALUE)MarketShareSum (POSVALUE)MarketShareSum (POSVALUE)MarketShare
Total$3,855,765.5417.2%$4,018,052.3217.9%$3,353,230.4714.9%$4,122,097.2118.4%$1,230,092.125.5%$5,883,076.2526.2%
2010Total$3,855,765.5417.2%$4,018,052.3217.9%$3,353,230.4714.9%$4,122,097.2118.4%$1,230,092.125.5%$5,883,076.2526.2%
2010Apr$1,851,312.088.2%$1,885,775.068.4%$1,708,099.627.6%$2,137,385.849.5%$598,372.422.7%$3,032,457.7813.5%
2010May$2,004,453.468.9%$2,132,277.269.5%$1,645,130.857.3%$1,984,711.378.8%$631,719.702.8%$2,850,618.4712.7%
martin59
Specialist II
Specialist II

if you try this feature on the market_name dimension ?

karensmith
Contributor II
Contributor II
Author

Market_NameTotalTotalxxxxWWyyYY
FYYearFYMonthNameSum (POSVALUE)MarketShareSum (POSVALUE)MarketShareSum (POSVALUE)MarketShareSum (POSVALUE)MarketShare
Total$126,362,313.56100.0%NO TOTAL18.0%NO TOTAL19.7%NO TOTAL13.8%
2009Total$103,899,999.6582.2%NO TOTAL15.0%NO TOTAL16.5%NO TOTAL11.2%
2009Apr$6,533,086.295.2%NO TOTAL1.1%NO TOTAL1.2%NO TOTAL0.8%
2009May$6,624,286.465.2%NO TOTAL0.9%NO TOTAL1.1%NO TOTAL0.8%
2009Jun$7,725,196.496.1%NO TOTAL1.1%NO TOTAL1.3%NO TOTAL0.9%
2009Jul$7,458,072.345.9%NO TOTAL1.0%NO TOTAL1.1%NO TOTAL0.9%
2009Aug$7,308,736.395.8%NO TOTAL1.0%NO TOTAL0.9%NO TOTAL0.9%
2009Sep$9,301,650.957.4%NO TOTAL1.3%NO TOTAL1.4%NO TOTAL1.0%
2009Oct$8,420,752.666.7%NO TOTAL1.1%NO TOTAL1.1%NO TOTAL0.9%
2009Nov$8,060,705.696.4%NO TOTAL1.2%NO TOTAL1.2%NO TOTAL0.8%
2009Dec$9,467,968.227.5%NO TOTAL1.4%NO TOTAL1.7%NO TOTAL0.9%
2009Jan$9,824,093.247.8%NO TOTAL1.4%NO TOTAL1.7%NO TOTAL0.9%
2009Feb$10,851,751.148.6%NO TOTAL1.6%NO TOTAL1.7%NO TOTAL1.0%
2009Mar$12,323,699.789.8%NO TOTAL1.9%NO TOTAL2.0%NO TOTAL1.3%
2010Total$22,462,313.9117.8%NO TOTAL3.1%NO TOTAL3.2%NO TOTAL2.7%
2010Apr$11,213,402.808.9%NO TOTAL1.5%NO TOTAL1.5%NO TOTAL1.4%
2010May$11,248,911.118.9%NO TOTAL1.6%NO TOTAL1.7%NO TOTAL1.3%
Not show this columnNot show this column
This data is confidentialThis data is confidential
Not applicable

I got a tip:

Try to calculate a dimension that shows the Total Resale; you should do this with an AGGR expression.

Something like: "=AGGR(SUM(PosValue), Year,Month)" or "=AGGR(SUM(PosValue), MarketPlace)" depends what you are showing on that column.

This will let you emulate the first table that you shown us.

Hope it helps!

karensmith
Contributor II
Contributor II
Author

I used Jermias suggestion to create an aggr dimension..,made a big difference. Retail sales is now showing grand total.

'retail sales'=num(AGGR(SUM(POSVALUE),FYYear,FYMonthName),'$#,##0;($#,##0)')



FYYearFiscal_YearMonthNumretail salesMarket_Namexxyyccwwttss
2009200901$6,533,08620.6%23.2%15.0%12.3%4.1%24.8%
2009200902$6,624,28616.8%21.9%15.3%16.5%4.0%25.6%
2009200903$7,725,19618.5%21.0%14.7%12.2%3.9%29.8%
2009200904$7,458,07217.3%18.2%15.8%16.2%4.4%28.1%
2009200905$7,308,73617.8%16.2%14.8%16.0%4.4%30.8%
2009200906$9,301,65117.8%19.3%13.3%13.0%3.8%32.7%


Now I am trying to figure out a way to toal each expression colum and then total retail sales....How would I total a dimension? Is that even possible?

Total past 12-mos:$11.00186.2%199.9%140.7%159.9%49.6%292.8%


karensmith
Contributor II
Contributor II
Author

FYYearFiscal_YearMonthNumretail salesMarket_NameXXYYWWTTCCDD
Total18.0%19.7%13.8%15.6%4.7%28.1%
2009200901$6,533,08620.6%23.2%15.0%12.3%4.1%24.8%
2009200902$6,624,28616.8%21.9%15.3%16.5%4.0%25.6%
2009200903$7,725,19618.5%21.0%14.7%12.2%3.9%29.8%
2009200904$7,458,07217.3%18.2%15.8%16.2%4.4%28.1%

This is my latest view. One last total needed 'retailsales'.

karensmith
Contributor II
Contributor II
Author

This is very frustrating...How Pivot tables in QV are so limited to calculating columns, i.e rolling total, *** totals.

I did create a dimension "retail sales" to calc total, but values can't create cumulative total becuase it is a calculated dimension. I just need one column that will display running total for Year/month sales.

Any other recommendations will be greatly appreciated!