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: 
ahmedhali
Contributor II
Contributor II

Count cells in chart depending on color

Hi

I have a question regarding charts. Is it possible to count chart cells depending on whether they are green or red? For example in the chart below the expression would say there is 2 green on the second row and 3 on the first.

test bild.png

Thx in advance!

1 Solution

Accepted Solutions
ahmedhali
Contributor II
Contributor II
Author

Hi

I solved this by taking the expression that makes the coloring and changed the true and false statement from color to 1 and 0. Then I proceeded to add them together. For example

if(sum(column(1)+column(2))>=column(3),1,0)

+

if(sum(column(4)+column(5))>=column(6),1,0)


Maybe not the best solution but it got the job done. Hope this will be relevant for anybody


/Ahmed

View solution in original post

1 Reply
ahmedhali
Contributor II
Contributor II
Author

Hi

I solved this by taking the expression that makes the coloring and changed the true and false statement from color to 1 and 0. Then I proceeded to add them together. For example

if(sum(column(1)+column(2))>=column(3),1,0)

+

if(sum(column(4)+column(5))>=column(6),1,0)


Maybe not the best solution but it got the job done. Hope this will be relevant for anybody


/Ahmed