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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
jacobcreek
Contributor
Contributor

Creating Dimensions based on existing dimension and then colouring bars in a bar chat based off of i

I have an existing dimension called sports that consists of sports: a,b,c,d,e,f.

the measure on the bar chart is called 'perc'. I would like to colour the bars of the bar chart by a new created dimension. e.g. i want the bars for a,b,c to be one colour, bar d to be another, and bars e and f to be another (3 colours in all). How do i go about doing this? and is it possible to display the dimension on the bar graph itself? i.e. say the new created dimension has values 1 (a,b,c), 2(d) and 3(e,f).

1 Solution

Accepted Solutions
Channa
Specialist III
Specialist III

choose presentation Color

IF(Match(sport='a','b'),red(),if(match(sport='e','f'),green()))

 

try 

Channa

View solution in original post

1 Reply
Channa
Specialist III
Specialist III

choose presentation Color

IF(Match(sport='a','b'),red(),if(match(sport='e','f'),green()))

 

try 

Channa