# Dynamic range and Histogram function

**URL:** https://discuss.elastic.co/t/dynamic-range-and-histogram-function/287931
**Category:** Kibana
**Tags:** lens
**Created:** [October 28, 2021, 2:18pm UTC](https://discuss.elastic.co/t/dynamic-range-and-histogram-function/287931 "2021-10-28T14:18:38Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![kibanauser4](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@kibanauser4](https://discuss.elastic.co/u/kibanauser4)
#### Post date: [October 28, 2021, 2:18pm UTC](https://discuss.elastic.co/t/dynamic-range-and-histogram-function/287931/1 "2021-10-28T14:18:38Z")

</div>

Hi, I'm new to Kibana and this is my first time creating visualizations in Kibana so I need a little help. My dataset is pretty simple and I do not have a timestamp field. One of the fields is "price" and I wanted to create a histogram to have a dynamic range for the prices but when I go to "Break down by" the only functions I get are Date histogram, Filters and Top values. Aren't I supposed to have another function called just Histogram (that I have seen in a tutorial) or am I doing something wrong?

Thank you in advance.

---

<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: [October 28, 2021, 3:01pm UTC](https://discuss.elastic.co/t/dynamic-range-and-histogram-function/287931/2 "2021-10-28T15:01:10Z")

</div>

Hi @kibanauser4 ,

welcome to the Kibana community.  
The `Interval` function for `Break down by` has been introduced in Lens since the version 7.10: [Kibana 7.10.0 | Kibana Guide [7.10] | Elastic](https://www.elastic.co/guide/en/kibana/7.10/release-notes-7.10.0.html#enhancement-v7.10.0)

What version of the stack are you using?

---

<div class="post-metadata">

### Author: ![kibanauser4](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@kibanauser4](https://discuss.elastic.co/u/kibanauser4)
#### Post date: [October 28, 2021, 3:14pm UTC](https://discuss.elastic.co/t/dynamic-range-and-histogram-function/287931/3 "2021-10-28T15:14:25Z")

</div>

I am using v 7.15.1

---

<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: [October 28, 2021, 3:20pm UTC](https://discuss.elastic.co/t/dynamic-range-and-histogram-function/287931/4 "2021-10-28T15:20:55Z")

</div>

Can you post a screenshot of the Break down panel?

This is how it should look:

 ![Screenshot 2021-10-28 at 17.20.34](https://us1.discourse-cdn.com/elastic/original/3X/f/c/fc9287aaf8da60fb065138a1cf8c1195e0863f63.png)

---

<div class="post-metadata">

### Author: ![kibanauser4](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@kibanauser4](https://discuss.elastic.co/u/kibanauser4)
#### Post date: [October 28, 2021, 3:24pm UTC](https://discuss.elastic.co/t/dynamic-range-and-histogram-function/287931/5 "2021-10-28T15:24:04Z")

</div>

Oh god, I think I have made a big mistake. I just realized that all of the fields (except the date ones) are saved as string. Even the integer ones such as price for example. Maybe that's the reason why it's not showing me the Intervals function?

---

<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: [October 28, 2021, 3:36pm UTC](https://discuss.elastic.co/t/dynamic-range-and-histogram-function/287931/6 "2021-10-28T15:36:49Z")

</div>

Yes. Lens looks at all field (available and empty) types and shows only useful functions for them.  
If you have 0 fields compatible for Intervals it won't show the function at all.

---

<div class="post-metadata">

### Author: ![kibanauser4](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@kibanauser4](https://discuss.elastic.co/u/kibanauser4)
#### Post date: [October 28, 2021, 3:39pm UTC](https://discuss.elastic.co/t/dynamic-range-and-histogram-function/287931/7 "2021-10-28T15:39:41Z")

</div>

I see. Thank you!

---

<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: [November 25, 2021, 3:39pm UTC](https://discuss.elastic.co/t/dynamic-range-and-histogram-function/287931/8 "2021-11-25T15:39:57Z")

</div>

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