Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dimension values color

Hello,

I have a pivot table with two dimensions: "Months" as rows, and "Year" as columns (2012, 2013, 2014). i need the "Year" dimension values, 2013, 2013, 2014 to appear in 3 different backgrounds colors (green, red, blue). Please see below (except that here a changes the text color as opposed to the background color).

Any Ideas?

Thanks

201220132014
Jan$100 $120 $310
Feb$200 $130 $400
Mar$300 $140 $490
Apr$400 $150 $580
May$500 $160 $670
Jun$600 $170 $760
Jul$700 $180 $850
Aug$800 $190 $940
Sep$900 $200 $1,030
Oct$1,000 $210 $1,120
Nov$1,100 $220 $1,210
Dec$1,200 $230 $1,300
1 Solution

Accepted Solutions
Nicole-Smith

On your Year dimension, click on the plus sign next to to it, then in Background Color, you can type in an expression like the following:

pick(match(Year, 2012, 2013, 2014), rgb(0,255,0), rgb(255,0,0), rgb(0,0,255))

View solution in original post

2 Replies
Nicole-Smith

On your Year dimension, click on the plus sign next to to it, then in Background Color, you can type in an expression like the following:

pick(match(Year, 2012, 2013, 2014), rgb(0,255,0), rgb(255,0,0), rgb(0,0,255))

Not applicable
Author

Danny,

In the Expression tab, click on your Expression (there is a +)

You will see different properties.

You can enter the expression for the background. Basically: if(year=2010, red(), if(year=2011, blue()))

You can use also color(), rgb() ....

Fabrice