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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pivot table (aggregation for the multiple dimension)

Hello,

How I can achieve the following?

table.png

Thanks

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

I found it

sum(aggr(nodistinct

 

                              sum(x/y)

 

,vari_code))

View solution in original post

4 Replies
kaushiknsolanki
MVP
MVP

Try this expression.

sum(total <vari_code>Aggr(sum(x)/sum(y),vari_code,no))

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

I found it

sum(aggr(nodistinct

 

                              sum(x/y)

 

,vari_code))

Not applicable
Author

I prefer to simplify the expression. Try:

     Sum(TOTAL <vari_code> x/y)

And use 0 as the Null symbol to show 0 instead of null default symbol.

jolivares
Specialist
Specialist

Try this....

Aggr(NODISTINCT Sum(x/y),vari_code)