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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikviewaf
Creator
Creator

color graph

i have a dimension calculated in this way:

 

=if(isnull(Invoice_DocNumber),'Not Invoiced',

round((MonthEnd(Invoice_Date_Num)-MonthEnd(SurgeryDate))/30)
)

 

this is used in a bar graph. 

How i can change the bar color when the value is "Not Invoiced" ?

 

i tried If(isnull(Invoice_DocNumber),rgb(255,255,255),rgb(30,60,32)) but is not working

 

any idea ?
Thank you!

Labels (1)
2 Replies
Frank_Hartmann
Master II
Master II

Maybe like this:

=if(if(isnull(Invoice_DocNumber),'Not Invoiced',round((MonthEnd(Invoice_Date_Num)-MonthEnd(SurgeryDate))/30))='Not Invoiced',rgb(255,255,255),rgb(30,60,32))
Brett_Bleess
Former Employee
Former Employee

If  Frank's post did not do the trick, have a look at the following Design Blog post, might help:

https://community.qlik.com/t5/Qlik-Design-Blog/How-to-custom-color-a-stacked-bar-chart/ba-p/1465653

Here is the base link to the Design Blog area in case you want to further search on your own:

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.