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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Colors in Bar graphs

Hello all,

I have a bar graph with values above 0 and below 0

I like the bars below 0 will be in red and the values abovewill be in green

My expression is a calculated

(sum(A) /above( sum( A))) -1

The graphis attached.

Thank inadvance.

T.

1 Solution

Accepted Solutions
deepakk
Partner - Specialist III
Partner - Specialist III

hi,

Go to Expression. Expand the plus sign next to expression.

In the background color add this code.

If (column(1) < 0 ,red() , green()).

You can aslo specify the rgb colors as rgb(100,102,123).

Please view the attachment for the further assitance.

Deepak

View solution in original post

4 Replies
deepakk
Partner - Specialist III
Partner - Specialist III

hi,

Go to Expression. Expand the plus sign next to expression.

In the background color add this code.

If (column(1) < 0 ,red() , green()).

You can aslo specify the rgb colors as rgb(100,102,123).

Please view the attachment for the further assitance.

Deepak

jagan
Partner - Champion III
Partner - Champion III

Hi,

In expression background color give the following expression

If((sum(A) /above( sum( A))) -1 >0 , RGB(0,255,0), RGB(255, 0,0))

Hope this helps you.

Regards,

Jagan.

Anonymous
Not applicable
Author

Hi

     Hope the attached file will be helpful for your requirement

Regards

Ashok

Not applicable
Author

thanks a lot

it was very hulpfull and quick.

Cheres,

T