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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
tedalien
Contributor III
Contributor III

Advanced Aggregation

Hi dear Gurus,

I hope is ok I ask a question. I am trying to solve a problem and I think the best option would be the Aggr function.

In principle I am trying to achieve getting the sums of an higher level of aggregation (Level Dim1+Dim2) to be displayed in each raws of the subsequent level.

Dm1 and Dim3 are limited in number of unique elements, but the Dim2 can be many.

Dim1Dim2Dim3Value SplitI need
AAAAAA5.66.9
AAAAAB1.36.9
AAABBA1.82.3
AAABBB0.52.3
AAACCO1.51.5
BBBBBA316.6
BBBBBB12.116.6
BBBBBO1.516.6

I tried with:

sum(Total(aggr(aggr(sum(Value Split),dim1,dim2),dim3)) and this works as long as there is one Dim2 selected, when I release the selection the Total is calculated on all Dim1 and Dim2 elements.

I tried some variation but so far no success.

Can you suggest if this is the way (best) or if there is antoher?

In case this is the way, can you help me fixing the set analysis?

Many many Thanks!!

Alen

10 Replies
tedalien
Contributor III
Contributor III
Author

Jagan and ALL,

Indeed it does when I load the data as INLINE.

I was misunderstanding your instructions and thought you where suggesting the <dim1,dim2> to be applied to the set analysis not to the TOTAL.

I got itnow and applied to my application with a more complex form seems also working.

More test ti be dine but THANK YOU!

It has been enlightening!

Regards,

Alen