Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

How to make Bar with -ve value color change to RED ?

Hi All,

I have a chart which have +ve and -ve value , I like to make -ve value bar color change to RED.

Can some one advise me.

Paul

1 Solution

Accepted Solutions
paulyeo11
Master
Master
Author

Hi Chanty

Thank you for your expression below :-

If(SOURCE>0,red())

I try and found not work , suddenly i recall i have did it in QV , and i copy the script from background color expression below and it work fine :-

if(

money(

Sum({$<year = {$(=Max(year)-0)}, month = {"<=$(=Max({<year={$(=Max(year))}, sales = {'*'}>} month))"}>}profit_amt/1000)

, $(vMoneyFormatK))

-

money(

Sum({$<year = {$(=Max(year)-0)}, month = {"<=$(=Max({<year={$(=Max(year))}, sales = {'*'}>} month))"}>}Exp/1000)

, $(vMoneyFormatK))

>0, Green(), Red())

View solution in original post

4 Replies
paulyeo11
Master
Master
Author

Enclosed my QS Doc

Chanty4u
MVP
MVP

chk attached

paulyeo11
Master
Master
Author

Hi Chanty

Thank you for your expression below :-

If(SOURCE>0,red())

I try and found not work , suddenly i recall i have did it in QV , and i copy the script from background color expression below and it work fine :-

if(

money(

Sum({$<year = {$(=Max(year)-0)}, month = {"<=$(=Max({<year={$(=Max(year))}, sales = {'*'}>} month))"}>}profit_amt/1000)

, $(vMoneyFormatK))

-

money(

Sum({$<year = {$(=Max(year)-0)}, month = {"<=$(=Max({<year={$(=Max(year))}, sales = {'*'}>} month))"}>}Exp/1000)

, $(vMoneyFormatK))

>0, Green(), Red())

Chanty4u
MVP
MVP

yeah/.......i saw ur selected in ur filter as Source  so i hve given  that expression