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

issue with pie chart background color

hi

i have written condition like below

if(so_state='Active',Green(),

if(so_state='Cancelled',yellow(),

if(so_state='On Hold',blue(),

if(so_state='Closed',red(),white())))

here i haven't mentioned  the black color even though chart showing black color by default like below image .please help out on this.

Thanks

siddu

1 Solution

Accepted Solutions
sunny_talwar

The pie chart area that is getting selected at black, is that on-hold section? Can you make sure you have all the casing right for on hold and no dash or anything like that... Also check for white space before or after.

View solution in original post

5 Replies
sunny_talwar

The pie chart area that is getting selected at black, is that on-hold section? Can you make sure you have all the casing right for on hold and no dash or anything like that... Also check for white space before or after.

maxgro
MVP
MVP

add a   ) at the end

if(so_state='Active',Green(),

if(so_state='Cancelled',yellow(),

if(so_state='On Hold',blue(),

if(so_state='Closed',red(),white()

))))

agni_gold
Specialist III
Specialist III

Whatever condition will not full fill , it will take default color , so you can change default color as different or make your condition more.

Not applicable
Author

when i am applying

=IF(GetCurrentSelections(state)>0,color(FieldIndex('state',state)),color(FieldIndex('state',state)))

it's works fine but when i am reloading the application the colors of the changing by default

Not applicable
Author

yes i.e is on-hold section .i have checked every thing is fine @sunny