Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Conditionally Display Chart

Here is a good one.  I want to conditionally display a chart.  Here is my scenario.

When the user has more than one year selected on my year selection I want to display the chart which will show the number of calls performed vs year.  If the user has only one year selected I want that chart to hide an only display the chart which is by month instead.

Ideas?

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

instead using two Charts I would use one Chart and define two dimensions with conditions

e.g.

Dimension Year with condition Getselectedcount(year)>1

Dimension Month with condition Getselectedcount(year)=1

Expression in both cases is same (number of calls)

View solution in original post

2 Replies
stigchel
Partner - Master
Partner - Master

In the layout tab of an object you can set a display condition, in this case you can use

GetSelectedCount(Year)>1 and GetSelectedCount(Year)=1 respectively

Anonymous
Not applicable
Author

instead using two Charts I would use one Chart and define two dimensions with conditions

e.g.

Dimension Year with condition Getselectedcount(year)>1

Dimension Month with condition Getselectedcount(year)=1

Expression in both cases is same (number of calls)