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

how to set color condition in bar chart

i want to show condition in bar chart like if avergae is 100% dn it should be green otherwise if between 95 to 100 5 dn orange below that red.

10 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Go to Expression,

     Cleck + next to the expression.

     Here Background Color

     Add expression as

     if(Column(1) > 0.95 and column(1) < 1, orange(),red());

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

its not working

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Kindly post your Application.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

i want to show something like dis

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Have a look at the attached application.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
sudeepkm
Specialist III
Specialist III

is your expression like avg(SalesAmount) or something like that. Please share more detail on the application

Not applicable
Author

i have multiple excel and i have combined them and showed dm in a single graph and have used 8 expression in this  and my exp are like totaltime /breakdowntime to show the availablity of the system so i want if if system is available less then 98% then it should be orange less dn 95% dn red otherwise green

sudeepkm
Specialist III
Specialist III

you have 8 expression in a BAR chart and as per your dimension values those 8 will be repeated for each dimension values.

If your avg calculation is done by totaltime /breakdowntime

then as Kaushik mentioned you need to go to each expression background and

add the logic as

if( totaltime /breakdowntime>0 and totaltime /breakdowntime <.95,red(),

if( totaltime /breakdowntime >=.95 and totaltime /breakdowntime <.98,orange [use the RGB for Orange],green()))

Not applicable
Author

Hi kaushik,

       Where u wrote that if condition i didn't find any where in application can u please help me

      What is the   Cleck + next to the expression.?

Thanks