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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can we use nested aggr

I have written an aggr(sum(distinct salary),SKILL_NAME,EMP_ID,YEAR,MONTH) ). Now I want to do

an aggregation of the sum we got in the above aggregation, based on SKILL_NAME AND EMP_ID. To make it clear, lets assume the sum we got in first aggr as SUM1.

So I want aggr(sum(sum1),SKILL_NAME,EMP_ID). How can we do this.

Thanks in advance.

Regards

Santhosh.

Labels (1)
2 Replies
juleshartley
Specialist
Specialist

It seems that the main reason that  you are doing this is so that you have a distinct monthly sales figure by Emp_ID and skill... so perhaps worth creating a monthly sales table in your data model?

tresB
Champion III
Champion III

Yes you can.

Aggr(Sum(aggr(sum(distinct salary),SKILL_NAME,EMP_ID,YEAR,MONTH) ) ),SKILL_NAME,EMP_ID)  - I guess, it's a valid one. Have you tried? Isn't it working?