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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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

Labels (1)
1 Reply
vishsaggi
Champion III
Champion III

Try this?

= Sum(TOTAL <Group> Value1/Value2)