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: 
vish123
Creator III
Creator III

How to show conditional chart using Qlik container based on user selection and event count

Hi Team,

I have one below requirement.

I have two charts named "Upcoming Events" , "Event Names" and used a container to showcase these chart based on a condition.

Condition 1:

if user selects any value from a filter and event count >1  then only i should show "Event Names " Chart. 

Condition 2: 

if user selects any value from a filter and event count =1 then only i show "Upcoming Events" chart.

But the issue is first by default count events > 1 so , "Events Names" showing up by default in a container. But I want this to show up only when user selects value from a filters and event count >1 .. By default i want "Upcoming Events" to show up. 

 

Please suggest.

Labels (1)
1 Solution

Accepted Solutions
Or
MVP
MVP

If you're trying to work based on a selection in a specific field, you can check

GetFieldSelections(FieldName)>0

If you're trying to check selections on *any* field, you can check

NOT IsNull(GetCurrentSelections())

View solution in original post

2 Replies
Or
MVP
MVP

If you're trying to work based on a selection in a specific field, you can check

GetFieldSelections(FieldName)>0

If you're trying to check selections on *any* field, you can check

NOT IsNull(GetCurrentSelections())

vish123
Creator III
Creator III
Author

Hi Or,

Thanks for your help. It worked for me.. 🙂