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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Color change for bar graph

Hi All,

I have attached the screen shots because i cannot copy the QVW file.

Dimension : =if(IsNum([Turnaround Time Network Days]), IF([Turnaround Time Network Days]>15, '16 + ', [Turnaround Time Network Days]),'Missing Dates')

Fact : Count([Turnaround Time RAG])

Colors of the bars should be GREEN AMBER and RED based on condition.


Condition : if ([Turnaround Time Network Days])>7, Red()

                     if ([Turnaround Time Network Days])<=3, Green()

                     if ([Turnaround Time Network Days])<=7, Amber()

I got the colors but the problem is if [Turnaround Time Network Days]>15 i have grouped into '16+' i want this bar to be in RED(). I am not able to do it. Please help me with this.

Check the screen shots.

Thanks & Regards,

Keerthi

1 Solution

Accepted Solutions
Not applicable
Author

Please have a look on this attached qvw.

View solution in original post

27 Replies
sanketkhunte
Creator II
Creator II

Sorry.. I am not getting your exact requirement. Can you put it into other words ?

Thanks
Sanket

Not applicable
Author

I am getting the colors for bar graph. But when the dimension is '16+' the color should be red() but i am not getting.

Please check the screen shot chart, where the color of '16+' dimension is black. I want it to be in red()

Hope this helps in understanding requirement.

Regards,

keerthi

sujeetsingh
Master III
Master III

plz give a sample

Not applicable
Author

Hi Keerthi,

Try this in condition:

if ([Turnaround Time Network Days])<=3, Green(),

if ([Turnaround Time Network Days])<=7, Amber(), Red()))

Not applicable
Author

there are missing dates as dimension i dont want that to be in red. I am attaching the QVW.

Not applicable
Author

Hi All ,

I have attached thw QVW. Please click on the button to enable the chart.

I want 0 to 3 in green color, 3 to 7 in amber() and 8 to 16+ in red. remaining missing dates in Black.

Thanks & Reagrds,

keerthi

Not applicable
Author

I have attached the sample

sanketkhunte
Creator II
Creator II

Keerthi,

I could see below result.. if you require this let me know i will provide you expression

test.PNG.png

MayilVahanan

Hi

Try like this

Expression -> click the '+' sign -> background color

IF([Turnaround Time Network Days] < 3, Green(),

if([Turnaround Time Network Days] < 7, Yellow(),  // instead of yellow, use RGB for amber

if([Turnaround Time Network Days] < 16, red(), Black())))

Edit:

Result is  like below

Outputp.bmp

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.