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: 
Not applicable

Total Column color in Bar Chart

Hi,

I have a Bar Chart with "Show Total" checkbox selected for my dimension.

Total info is correctly displayed but bar color is the same of the rest of columns .. How can I set a specific color for this Total column?

"Total color"  from Colors Tab is not being used ..

Thanks,

T

5 Replies
Not applicable
Author

I've found this way to do it

if(Dimensionality()=0,color(2)) in Background color Expression column

Although this does not clarify me why "Total Color" from Colors tab is not being automatically applied ..

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

Have you tried Multi Color from Colors tab in chart properties?

If not give it a go and let us know if this work.

Regards,

Gabriel.

tduarte
Partner - Creator II
Partner - Creator II

Hi, also trying to set a fixed color for the Total bar in QV10..

Already tried if(Dimensionality()=0, LightRed()) on the Expression -> Background Color but it doesn't work.

Really simple on a table but not working on the chart.

Any ideas?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try something like:

if(match(MyDim, concat(distinct MyDim ,',')),color(1), color(2))

Replace MyDim with the name of the dimension you use in your bar chart


talk is cheap, supply exceeds demand
tduarte
Partner - Creator II
Partner - Creator II

Nice one, it works!

Thanks.