Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Totals not showing in the pivot table

Hello -

I have a pivot table with sales, % of sales and I use % of sales * Price to calculate the Price $ field. The calculated field doesn't show the totals in the pivot table. I am not sure how to show the totals. Also, if I collapse the lowest level, the totals are not showing.

here are the details:

Product Line IDrefT12% of SalesPrice %([Price %])*AdjBaseAdjBase
2300AMERICAS GROWTHDELFIELDUSCHAINSNON STRATEGIC ACCOUNTS4,308,86654%0%04,596,858
2300AMERICAS GROWTHDELFIELDUSDEALERSNON STRATEGIC ACCOUNTS28,261,95729%1%301,50930,150,902
2300AMERICAS GROWTHDELFIELDUSDISTRIBUTORSNON STRATEGIC ACCOUNTS3,0510%1%333,255
2300AMERICAS GROWTHDELFIELDUSFACTORY AUTHORIZED SERVICERSNON STRATEGIC ACCOUNTS33,76967%0%036,026
2300AMERICAS GROWTHDELFIELDUSINACTIVENON STRATEGIC ACCOUNTS6,8368%0%07,293
2300AMERICAS GROWTHDELFIELDUSOTHERNON STRATEGIC ACCOUNTS431,93113%0%0460,800
2300Total33,046,41030%--35,255,134

The total line doesn't show totals for column ([Price %])*AdjBase which is a calculated field.

I am attaching my sample.

What I am missing from my formula?

Thanks for all the help.

5 Replies
SunilChauhan
Champion II
Champion II

see the attched file.

you need to apply some function like sum,only inside the expression

see the attached file

Sunil Chauhan
Not applicable
Author

I tried that but the total doesn't add up because you are adding up % column first so rather than just adding up the column with calculation, it first adds up 1% which is not correct. Is there any other way to get the correct total?

The total for the column should be 301,542 not double the amount

Thanks

Product Line IDrefT12% of SalesPrice %([Price %])*AdjBaseAdjBase
2300AMERICAS GROWTHDELFIELDUSCHAINSNON STRATEGIC ACCOUNTS4,308,86654%0%04,596,858
2300AMERICAS GROWTHDELFIELDUSDEALERSNON STRATEGIC ACCOUNTS28,261,95729%1%301,50930,150,902
2300AMERICAS GROWTHDELFIELDUSDISTRIBUTORSNON STRATEGIC ACCOUNTS3,0510%1%333,255
2300AMERICAS GROWTHDELFIELDUSFACTORY AUTHORIZED SERVICERSNON STRATEGIC ACCOUNTS33,76967%0%036,026
2300AMERICAS GROWTHDELFIELDUSINACTIVENON STRATEGIC ACCOUNTS6,8368%0%07,293
2300AMERICAS GROWTHDELFIELDUSOTHERNON STRATEGIC ACCOUNTS431,93113%0%0460,800
2300Total33,046,41030%-301,54235,255,134
jolivares
Specialist
Specialist

First you have to understand that QV works grouping data, so it means that always you have to group all your data in order to present in a table.

In your sample you are  mixing data grouped and ungrouped.  Try to make all the calculations directly in the table and see what happens.

In case you need more help post a new example with all the formulas.

Not applicable
Author

Juan -

What do you mean by ' Try to make all the calculations directly in the table and see what happens'? I am not sure how I can do that. Please let me know.

Thanks

jolivares
Specialist
Specialist

Try to calculate the price% and so on...