Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to create a bar chart to show the completion status in Green color if it is Yes and Red if it is No? Please help me

Greetings all,

Capture.PNG

For the above table i want a stacked bar chart with color green if comp_status is yes and red it is no. Can someone help me with that please?

1 Solution

Accepted Solutions
trdandamudi
Master II
Master II

Hope the attachment will help:

View solution in original post

6 Replies
Anil_Babu_Samineni

You can use BG color like from expression expand.

If(comp_status='yes', Green(), If(comp_status='no', Red()))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

Hello Anil,

Thank you for the reply. I would like to know what expression should i mention in the expression tab of the chart. I took comp_status as Dimension

trdandamudi
Master II
Master II

Hope the attachment will help:

Anil_Babu_Samineni

That's based on your business. In your table you have 3 columns. Which is your dimension and measure that you have to decide. But, Try Count(subject) or Sum(cycle)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

Thank you very much

trdandamudi
Master II
Master II

You are welcome.