Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
pgrs4219
Contributor III
Contributor III

conditionally hide and show column?

Hi Qlik Community,

I have a requirement like a straight table and a list box called 'Country Selection' ,if i select country 'USA' the column '1','2','3' in the straight table should be hide and if i select 'India ' or 'UK' or 'China' column '4' should hide . am attached the document please find it and and please reply me here .

Thank you

Labels (1)
2 Replies
sunny_talwar
MVP
MVP

Check out the attached:

=Aggr(If([Country Selection] = 'usa', Only({<[FieldA Selection] = {4}>}[FieldA Selection]),

If(Match([Country Selection], 'india', 'uk', 'china'), Only({<[FieldA Selection] -= {4}>}[FieldA Selection]), [FieldA Selection])), [FieldA Selection])

swuehl
Champion III
Champion III

Or maybe with a simple if() statement like this?

=If(

    [FieldA Selection]<=3 and Match([Country Selection], 'india', 'uk', 'china')

      or

    [FieldA Selection]=4 and [Country Selection]='usa'

,[FieldA Selection])