
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Coloring a map
Hello,
I have a map of Europe with the percentage of pollution in each country.
I would like to color the map going from light yellow for the country with the least pollution, and a 'dark' yellow for the country with the most pollution.
I have tried this but it doesn't work :
colormix1(RANK(Num(Sum({<Continent={'Europe'}>}[nbre_usines])/
sum(aggr({<Continent={'Europe'}>}[xxx]),country)
, '##,##%'),0)
,white(),RGB(255,205,0))
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you all for your answers.
I followed @steeefan's answer, and I used the colors by measure.
I created a Master Item Measure where I chose the colors that I want (cf. image)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you have the countries on the map as an Area layer, coloring from light to dark is a basic functionality of the map object:
For the measure, select the one giving the pollution values, then choose the desired color scheme.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes but I can't choose the color I want, I'm stuck with the color scheme given by QlikSense.
Is there an option to choose the color I want?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately, I do not believe this to be possible out of the box with the Qlik Sense map object. These workarounds might however work for you:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @clarachac ,
The issue with Colormix1 function is that the expression used for the colour grading should lie between 0-1, It seems you have used rank() as your colouring expresession. Try to remove rank & then use the expression, it seems your formula will evaluate into '#0%' values laying between 0-1. Let me know if it worked.
Regards,
Rohan.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can always create your own theme with the required colour palletes & use that theme in your dashboard.
Regards,
Rohan.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you all for your answers.
I followed @steeefan's answer, and I used the colors by measure.
I created a Master Item Measure where I chose the colors that I want (cf. image)
