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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

nested agrrgigation

Hi Expert,

i wanted to do aggregation for the count value

if (count(sum(plan_cost)/sum(act_cost)>1 ,'success','fail') unable to do so in qlik sense..getting error nested aggregation

thanks

4 Replies
pradosh_thakur
Master II
Master II


something similar to this. not sure what you want to achieve though


if (count(aggr(sum(plan_cost)/sum(act_cost),your_dimension))>1 ,'success','fail')

Learning never stops.
Anonymous
Not applicable
Author

can it be without dimension (your_dimension))


if (count(aggr(sum(plan_cost)/sum(act_cost),your_dimension))>1 ,'success','fail')

pradosh_thakur
Master II
Master II

where you want to display this ? i mean which object ? aggr() wont work without a dimension i guess. provide few more details ..

Learning never stops.
sunny_talwar

First of all, what are counting here? Success or Failures? Because you have both in your expression, you will get a overall count of both success and failures.

second, are you doing this in a chart or a text box object?