Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Hiding the Expression in Pivot table

Hi,

I want to hide some of the expressions based on the level of expand dimensions.

when everything is collapsed i need to show only some of the expressions and when its expanded to next level i need to show all the expressions.

i tried with dimensionality function, but its not helping me.

could anyone help me to resolve this problem,

thanks in advance.

3 Replies
Gysbert_Wassenaar

What you want is not possible with a pivot table. There's no way to know (other than using your eyes) to know what is expanded or collapsed.


talk is cheap, supply exceeds demand
Not applicable
Author

Hi Wassenaar,

Thanks for your reply.

I think its possible to find the level of expanded using dimensionality() or secondarydimensionality function.

I dont know how yo use that functions in conditional location. i can able to use dimensionality in expression tab. its working fine.  but in conditional, its not working.

yevgeniy
Creator
Creator

Hi Gopinathan,

May be i do not  understand you question .

But, conditional is work:

if(Dimensionality()<3,

Sum ({$<PYD= {2} , Date2 = {'<=$(vVitorg)'}>}[Sales])-Sum ({$<PYD= {2} , Date2 = {'<=$(vVitorg)'}>}[Sales]),

if(Dimensionality()<5,

    Sum ({$<PYD= {1} , Date2 = {'<=$(vVitorg)'}>}[Sales(чеки)])-Sum ({$<PYD= {1} , Date2 = {'<=$(vVitorg)'}>}[Sales]),

        Sum ({$<PYD= {1} >}[Sales]) - Sum ({$<PYD= {1} >}[Sales]))