Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Pragya
Creator
Creator

Color Qlik map with condition

Hi All, 

I am trying to create a incidence map in Qlik. 

Steps I took are, I chose Map from Chart. Added area layer. Added area dimension [show.Area] from the KML file. 

In location tab, I added 

 - If (Count(distinct people)/sum (Population)*100000 > 0, [show.Area] )

I want to color the map on the condition that incidence should be > 0 and less than 2000. The formula i wrote is

In color, I chose color by measure. Then I added 

If ((Count(distinct people)/sum (Population) *100000 > 0)
and (Count(distinct people)/sum (Population) *100000 < 2001 ),Count(distinct people)/sum (Population) *100000)

This formula works fine in the table chart but does not color the map. Could someone suggest what is wrong in the above formula?

Thanks beforehand. 

Labels (1)
  • Chart

2 Replies
vikasmahajan

hi,

Did  you try with color with expression

 

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Pragya
Creator
Creator
Author

Yes i did. The map is grey. 

When i write 

If (Count(distinct people)/sum (Population) *100000 > 0 ,Count(distinct people)/sum (Population) *100000) , map colors fine. 

When i write 

If ((Count(distinct people)/sum (Population) *100000 > 0)
and (Count(distinct people)/sum (Population) *100000 < 2001 ),Count(distinct people)/sum (Population) *100000) , map goes grey