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

Doing Sum according to one Parameter

Hello Everyone,

I have a table with this kind of data:

QuantityParameter
8X1
9X2
2

X1

8X3
8X3

This is just a few entries but my table is really huge.

I would like to SUM all the quantities for each DISTINCT parameter and then to do Average Min and Max from this Sum.
for example in this situation I want my formula to calculate that :

X1= 10 , X2= 9, X3=16

Then I want a formula that would calculate the average : (10 + 9 + 16 ) / 3

The min would give: 9

And Max: 16

Do you know any way of doing it?
Thank you very much

1 Solution

Accepted Solutions
marcus_sommer

I'm not sure if I understand your question right, but try:

avg(aggr(sum(Quantity), Parameter))

min(aggr(sum(Quantity), Parameter))

max(aggr(sum(Quantity), Parameter))

- Marcus

View solution in original post

1 Reply
marcus_sommer

I'm not sure if I understand your question right, but try:

avg(aggr(sum(Quantity), Parameter))

min(aggr(sum(Quantity), Parameter))

max(aggr(sum(Quantity), Parameter))

- Marcus