Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Is it possible to have a fixed color for the Total bar in a chart

Hi All,

I have a bar chart that has a cycle group and an expression. The "Show Total"  option has been enabled (in the presentation tab) and a bar shows the Total. However, when I change the dimension using the cycle group, the color of the Total bar changes. However, I want the Total bar to always display the same Color. Is there some way I could do this?

Thanks,

Neeraj

11 Replies
Not applicable
Author

Try

If(IsNull([Dimension]), RGB(255,0,0)) on the background color expression

Where [Dimension] is your bar chart dimension.

Of course, this only works well if there are no empty dimensions possible.

tduarte
Partner - Creator II
Partner - Creator II

Thanks. That didn't worked for me but this worked:

if(not(isnull(Dimension)),color(1))

Multicolored and Repeat Last Color options ticked on Colors tab.