Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

looking for the appropriate function

Hi guys,

I am stuck a little bit.

I have to create the following function (Sum(package size*sold))/Number

So, I have loads of differenct product with different package sizes Eg:

ProductPackage sizeSold
Chocolate bar512
Chocolate bar1028
Chocolate bar2027
Chocolate bar3011
Chocolate bar4014

Is there a function which calculates the package size*sold for each product?

Cheers, Joe

2 Replies
sunny_talwar

This should work the way you have it

Sum([package size]*sold)

vishsaggi
Champion III
Champion III

use your formula in a pivot table with Product as dim and expr as your sum(). Are you looking for %ge by product. What is Number in your expr? You mean total sum of your Packagesize*sold? If yes may be you can use like

= Sum(PackageSize * Sold)/Sum(TOTAL PackageSize * Sold)