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: 
marcel_olmo
Partner Ambassador
Partner Ambassador

Is there any way to know if a level of a pivot table is expanded or not?

I'm trying to figure ot if that is possible or not.

I have a pivot table like this one :

Pivot.png

And I'd like to do something like this :

- If level3 is expanded Q3 would be Q1 + Q2.

-If level2 is expanded Q3 would be Q1 * Q2

-If level 1 is expanded Q3 would be (Q1 + Q2 ) / 2.

Is there a way to do that without using macros?

Many thanks in advance!!

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

In a pivot table Dimensionality says the expansion level in which you are, add an expression that shows dimensionality() and look at the result, I've often used it to change expression depending on the level of expansion ... let me know

View solution in original post

4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Use function "Dimensionality()'

marcel_olmo
Partner Ambassador
Partner Ambassador
Author

Thanks Alexandros for your answer,

but Dimensionality() only says in which level you are, not if the level is expanded or not.

alexandros17
Partner - Champion III
Partner - Champion III

In a pivot table Dimensionality says the expansion level in which you are, add an expression that shows dimensionality() and look at the result, I've often used it to change expression depending on the level of expansion ... let me know

marcel_olmo
Partner Ambassador
Partner Ambassador
Author

Thanks alexandros, it solved what I want.

Regards, Marcel.