Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

color by expression in maps

Hi, Community.

Am having a problem color coding my maps. Here's a sample table:

areacodemagnitudeproportion
100120.2
100225.25
100315.15
100410.1
100530.3

I would like the the map to color polygons whose values are less than the average of proportion red and those equal and greater than the average proportion green. This expression in color by expression does not work.

   

     If (proportion < Avg(proportion), Red(), Green())

It just shows all the polygons in green.

My map and this table are linked by areacode.

Hope you could help me make this work.

Thanks!

1 Solution

Accepted Solutions
Not applicable
Author

Try this,

If (proportion < Avg( Total proportion), Red(), Green())

View solution in original post

5 Replies
Not applicable
Author

Try this,

If (proportion < Avg( Total proportion), Red(), Green())

robert_mika
Master III
Master III

2015-07-01_111113.jpg

Not applicable
Author

Thank you so much! It worked.

I assume the same goes with Min and Max?

Not applicable
Author

Thanks so much, Robert. Yes, this worked. But I could only mark one post as the correct answer.

Many thanks for your response.

Not applicable
Author

Yes, it is.