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

change color of max dimension in chart

Hi all

I have a filed that shows years and some chart that dimensions are year and expression is different.

I want to show the expression in last dimension in different color. how can i do that?

when dimension has the last year its ok like this

color1.png

but when it has not its not work

color2.png

I want that "1" in dimension 1392 would be chang

1 Solution

Accepted Solutions
15 Replies
arvind1494
Specialist
Specialist

Off auto color

then choose color by expression

expression

if(year =1392,green(),red())

then your chart will show green color for year 1392 and remaining will be red.

marjan_it
Creator III
Creator III
Author

I have a lot of chart like this with different dimension. I want something dynamic.

arvind1494
Specialist
Specialist

then

use

if(year =max(year),green(),red())

marjan_it
Creator III
Creator III
Author

It does not work .

YoussefBelloum
Champion
Champion

what type of chart you're using and where did you put the coloring expression ?

tresesco
MVP
MVP

May using total like?

if(year =max(total year),green(),red())

marjan_it
Creator III
Creator III
Author

No, with this all change all of the chart red.

marjan_it
Creator III
Creator III
Author

Chart is line chart and I put put coloring expression in background color both in expression and dimension.

tresesco
MVP
MVP

Actually, red() and green() should swap:

if(year =max(total year), red(), green())