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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do I choose total?

I am a Chinese,My English is very poor?

Product CodeInventory QtySales AmtSales QtySales PriceInventory Value
Product-A100100001000101000
Product-B2008000010008016000
Product-C3009000010009027000
Total60018000030006044000


product code ?inventory qty?sales amt?sales qty is dimensions
sales price is expression? sales amt / sales qty
inventory value is expression?inventory qty * sales price

i use Pivot chart.
total line have a problem
total sales price = total sales amt / total sales qty is OK.
total inventory value = total inventory qty * total sales price = 36000
BUT total inventory value is 1000+ 16000 + 27000 = 44000

There should be two kinds of totals.

A: use total line (eg.total sales price = total sales amt / total sales qty )

B: sum colume(eg.total inventory value is 1000+ 16000 + 27000 = 44000)

How do I choose?

qlikview is choose A.

My English is very poor, Do you understand my expression ?



2 Replies
Not applicable
Author

The difference between the two expressions is that in first one you are adding the values first and then multiplying them, where as in second one you multiply and calculate the sum of the inventory value,

The second one is correct because it will give you sum of inventory value.

Also in the Pivot table you can select the Show Partial Sum from the Presentation tab.

Not applicable
Author

Thanks for your promptly reply.

in this case
A: use total line (eg.total sales price = total sales amt / total sales qty )
adding the values first and then multiplying them

B: sum column(eg.total inventory value is 1000+ 16000 + 27000 = 44000)
multiply and calculate the sum of the inventory value,

select the Show Partial Sum from the Presentation tab
The result is A