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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
praijmakers
Contributor
Contributor

aggr for a sum / sum expression

Hello Everybody,

Please take a look at this example table:

GroupSubGroupValue1Value2

base expression =

sum(Value1)/sum(Value2

Aggr(NoDistinct sum(Value1)/

sum(Value2), Group)

I want
AA121224
AA242224
BB16233,67
BB212343,67

So what i want is the sum of the results for the base expression per group. But the base expression is a sum() devided by sum() expression so the aggr of that leads to an average. This is a simplified example. The base expression can not be changed.

I tried using an expression label reference like: aggr( sum( [base expression] ), Group) but label references in aggr do not work.

Your help would be much appreciated.

Regards,

Peter

1 Reply
vishsaggi
Champion III
Champion III

Try this?

= Sum(TOTAL <Group> Value1/Value2)