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: 
buzzy996
Master II
Master II

Expression for Calculated Dim!!!

hi,

i have 4 level4 in Selections(Level1,Level2,Level3,Level4)

i need like this--->if i selected  Level1 from Selections need to display Level2 objects as X-Axis else

                                            Level2 from Selections need to display Level3 objects as X-Axis  else

                                            Level3 from Selections need to display Level4 objects as X-Axis. else Level1.

Could you pls let meknow any one,how to write  Expression for Calculated Dim?

thx

6 Replies
Anonymous
Not applicable

Hi,

Please provide some sample data of your model and description of it.

buzzy996
Master II
Master II
Author

PFA,

Thanking you for ur quick reply .

Not applicable

Hi,

U can use the drill down using the all Levels.

Is it resolve ur issue?

Regards

Manesh.

buzzy996
Master II
Master II
Author

not yet,by drill down all levels can not possible to chnage x-axis!

any help?

Not applicable

try to use

=If(GetSelectedCount(Level4),Level1,If(GetSelectedCount(Level3),Level4,If(GetSelectedCount(Level2),Level3,If(GetSelectedCount(Level1),Level2,Level1))))

as a dimension

ericcosmai
Contributor III
Contributor III

Hi.

Follow what I got and the attached app...

=

If(GetSelectedCount(Level1)=0,
    if(GetSelectedCount(Level2)=0,
        if(GetSelectedCount(Level3)=0,
            Level1
        ,
            Level4
        )
    ,
        Level3
    )
,
    Level2
)

I hope it helps.

Regards.