Color highlight
QlikView's natural behavior is to zoom in on the data once a selection is made. However, there is a great downside to doing this: you lose some context because the rest of the elements disappear. One of the most popular ways to overcome this phenomenon is to mix color functions with our good old friend—Set Analysis.
Example: NBA standings.
Relevant features: Set Analysis and color highlight.
To create this visualization, you can do the following:
Create a classic bar chart using
Team
as the dimension andsum(Wins)
as the expression.This trick is based on two parts. First, we must work with the colors so that only the possible teams are highlighted. Then, we must ensure that even though the user selects just a couple of teams, the chart always displays all of them.
Let's move on to the color. Go to the Expressions tab and click on the Expression Expansion icon.
Locate the Color Background parameter and add the following formula:
=if(match(Team, concat(DISTINCT Team, ',')),RGB(130...