Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to have an if condition in Layout >Conditional for an item?

Hi,

I am trying to display a chart for just some users, but the chart already have a condition.

The actual condition is:

=vTab='CaseDashboard'

But I need that also check the user:

=If ((vTab='CaseDashboard',if( OSUser()= 'username')))

How can I do this?

3 Replies
sunny_talwar

May be like this

=vTab='CaseDashboard' and OSUser() = 'username'

or this for multiple users

=vTab='CaseDashboard' and Match(OSUser(), 'user1', 'user2',....)

Anonymous
Not applicable
Author

Thank you for the quick answer, I have tried this:

=If (vTab='CaseDashboard',
if( OSUser()= 'username',vTab='CaseDashboard'),vTab='None')

and looks like working, I need to perform further tests. Otherwise, I will use your solution.

Thanks,

sunny_talwar

Sure, sounds good