Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Qlikview Sheet hide based on two field values

HI All,

I am trying to hide a sheet based on two values/flag.

Field1='N'

Field2='1'

If i apply condition on conditional visible expressing its not hiding the sheet,

Below is the expression I am using,

=Field1='N' and Field2='1'

Kindly suggest.

Thanks,

1 Solution

Accepted Solutions
marcus_malinow
Partner - Specialist III
Partner - Specialist III

Ok, so you'll have slightly different conditions for each sheet.

For sheet 1:

only({$<Field2={'1'}>} Field1)='Y'

For sheet 2:

only({$<Field2={'2'}>} Field1) = 'Y'

etc..etc..etc...

View solution in original post

6 Replies
marcus_malinow
Partner - Specialist III
Partner - Specialist III

I'm assuming here that in order for the sheet to display, these values should be selected.

In which case, change your expression to

Only(Field1)='N' and Only(Field2)=1

Kushal_Chawda

try below condition,

if(Field1='N' and Field2='1',0,1)

Go to Settings-> Document Properties-> Security-> uncheck show all sheets & objects

Not applicable
Author

Hi Kuch, I have tried above but still not working.

Below is my scenario,

the table data look like below,

  

Field1Field2
Y1
Y2
Y3
Y4
N5
N6

I have 6 sheets in the QVW.

e.g, I only want to show sheet 1 if Field1='Y' and Field2='1'

Similarly I wanted to hide sheet 6 if Field1='N' and Field2='6'

Thanks

Nishant

Not applicable
Author

Hi Marcus, I have tried above but still not working.

Below is my scenario,

the table data look like below,

  

Field1Field2
Y1
Y2
Y3
Y4
N5
N6

I have 6 sheets in the QVW.

e.g, I only want to show sheet 1 if Field1='Y' and Field2='1'

Similarly I wanted to hide sheet 6 if Field1='N' and Field2='6'

Thanks

Nishant

marcus_malinow
Partner - Specialist III
Partner - Specialist III

Ok, so you'll have slightly different conditions for each sheet.

For sheet 1:

only({$<Field2={'1'}>} Field1)='Y'

For sheet 2:

only({$<Field2={'2'}>} Field1) = 'Y'

etc..etc..etc...

Not applicable
Author

Thanks a lot Marcus !!!

Its working fine for me now.