# How to add buckets in horizontal bars chart in lens?

**URL:** <https://discuss.elastic.co/t/how-to-add-buckets-in-horizontal-bars-chart-in-lens/330667>\
**Category:** Kibana\
**Tags:** dashboard\
**Created:** [April 24, 2023, 2:28pm UTC](https://discuss.elastic.co/t/how-to-add-buckets-in-horizontal-bars-chart-in-lens/330667 "2023-04-24T14:28:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yves\_Frerot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yves_frerot/32/120149_2.png) [@Yves\_Frerot](https://discuss.elastic.co/u/Yves_Frerot)\
**Post date:** [April 24, 2023, 2:28pm UTC](https://discuss.elastic.co/t/how-to-add-buckets-in-horizontal-bars-chart-in-lens/330667/1 "2023-04-24T14:28:24Z")

</div>

I have a chart with a formula as metric. I succeed in a lens horizontal bar graph. But I want to do it for all values of a field with 4 values. I understand the option that consists in repeating the same graph with 4 filters.  
But in Visualization, I found the buckets, that alow me to split the graph .. but I didn't find the option of formula metric.  
Any help ??

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [April 26, 2023, 2:47pm UTC](https://discuss.elastic.co/t/how-to-add-buckets-in-horizontal-bars-chart-in-lens/330667/2 "2023-04-26T14:47:07Z")

</div>

Hi @Yves_Frerot. I'd like to get some clarification. Can you maybe share some screenshots showing the chart you currently have and explain how you would like to show the chart?

Thanks.

---

<div class="post-metadata">

**Author:** ![Yves\_Frerot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yves_frerot/32/120149_2.png) [@Yves\_Frerot](https://discuss.elastic.co/u/Yves_Frerot)\
**Post date:** [May 12, 2023, 7:41am UTC](https://discuss.elastic.co/t/how-to-add-buckets-in-horizontal-bars-chart-in-lens/330667/3 "2023-05-12T07:41:14Z")

</div>

I finnaly understood how to reach the goal. this question is not anymore valid

---

<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:** [June 9, 2023, 7:42am UTC](https://discuss.elastic.co/t/how-to-add-buckets-in-horizontal-bars-chart-in-lens/330667/4 "2023-06-09T07:42:15Z")

</div>

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