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: 
Not applicable

Another expression in case of drill down level

I want to report a different expression in the same column with drill down fucntionality.

For ex. Product drill down contains :

- productgroup

- sub-productgroup

- product = SKU

So for the productgroup and sub-productgroup and want to report the WEIGHT. When I'm going to the product SKU level , I want to report in the same column PIECES !

Can anyone give me a hint.

THX
Marc Catteeuw

Inside Comlmunications

www.insidecomm.com

4 Replies
sparur
Specialist II
Specialist II

Hello marc.

you can create if statement in your expression:

IF(getcurrentfield( myGroup ) = 'productgroup', sum(WEIGHT), sum(PIECES))

Not applicable
Author

OK Thx. Is working perfectly.

Another additional question /

What can I do if I'm not working with drill down function, but with pivot table with different dimensions. When I'm on the dimension "Product - SKU" I should also report pieces. The other dimensions must be reported in weight.

Marc

sparur
Specialist II
Specialist II

You can use

dimensionality ( )

and

secondarydimensionality ( )

functions for create IF statement:

for example:

if (dimensionality() = 3, sum(PIECES), sum(Weighr))

but I would prefer create 2 different pivot tables with different expressions.

Not applicable
Author

OK THX A LOT.

CLOSED.

Marc