# Kibana: map heat map score to set of numbers?

**URL:** <https://discuss.elastic.co/t/kibana-map-heat-map-score-to-set-of-numbers/327621>\
**Category:** Kibana\
**Tags:** visualisation\
**Created:** [March 14, 2023, 4:48am UTC](https://discuss.elastic.co/t/kibana-map-heat-map-score-to-set-of-numbers/327621 "2023-03-14T04:48:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smchamberlin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smchamberlin/32/118329_2.png) [@smchamberlin](https://discuss.elastic.co/u/smchamberlin)\
**Post date:** [March 14, 2023, 4:48am UTC](https://discuss.elastic.co/t/kibana-map-heat-map-score-to-set-of-numbers/327621/1 "2023-03-14T04:48:37Z")

</div>

Is there a way, using the formula for the heat map score, to map a count of the items into a limited domain of numbers?

like:  
if there are \< X number of these items, assign a 0  
if there are between 1 and 5 of these items, assign 1  
if there are 5+ or more of thees items, assign 2

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 11, 2023, 4:48am UTC](https://discuss.elastic.co/t/kibana-map-heat-map-score-to-set-of-numbers/327621/2 "2023-04-11T04:48:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [April 18, 2023, 1:31pm UTC](https://discuss.elastic.co/t/kibana-map-heat-map-score-to-set-of-numbers/327621/3 "2023-04-18T13:31:06Z")

</div>

Hi @smchamberlin

welcome to the Kibana community.  
Yes, you can use conditionals for that:

```auto
ifelse( count() < 1, 0, ifelse( count() < 5, 1, 2))

```
