# Dynamic Metrics in Bar chart

**URL:** <https://discuss.elastic.co/t/dynamic-metrics-in-bar-chart/189599>\
**Category:** Kibana\
**Created:** [July 9, 2019, 4:35pm UTC](https://discuss.elastic.co/t/dynamic-metrics-in-bar-chart/189599 "2019-07-09T16:35:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sivabose06](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Sivabose06](https://discuss.elastic.co/u/Sivabose06)\
**Post date:** [July 9, 2019, 4:35pm UTC](https://discuss.elastic.co/t/dynamic-metrics-in-bar-chart/189599/1 "2019-07-09T16:35:12Z")

</div>

Hi All,

I'm new to Kibana. I just want to create a bar chart with dynamic metrics.

I mean, if I have a filter with values a,b and c, if a is selected the bar chart will need to show count(a), if b is selected, count(b) and similarly for c.

Please let me know if it is possible in Kibana.

Thanks,  
Siva.

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [July 9, 2019, 7:08pm UTC](https://discuss.elastic.co/t/dynamic-metrics-in-bar-chart/189599/2 "2019-07-09T19:08:16Z")

</div>

Hello Siva,

It sounds like you might want to do one of the following:

- Create visualization for a, set it up the way you want, then duplicate it for b and c
- Create a dashboard of visualizations, and [filter by field](https://www.elastic.co/guide/en/kibana/current/field-filter.html)
- Use our fairly new [interactive inputs](https://www.elastic.co/blog/interactive-inputs-on-kibana-dashboards)

I think the last one sounds the most like what you're describing. Hopefully that should get you headed in the right direction!

Regards,  
Aaron

---

<div class="post-metadata">

**Author:** ![Sivabose06](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Sivabose06](https://discuss.elastic.co/u/Sivabose06)\
**Post date:** [July 10, 2019, 9:25am UTC](https://discuss.elastic.co/t/dynamic-metrics-in-bar-chart/189599/3 "2019-07-10T09:25:17Z")

</div>

Thanks for your reply, Aaron. You're saying that we could achieve this by 3 bar charts.

But, is it possible using a single bar chart? I mean, 1 bar chart with three metrics or expression or measure, which should be changing dynamically based upon the filter selection.

---

<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:** [August 7, 2019, 9:25am UTC](https://discuss.elastic.co/t/dynamic-metrics-in-bar-chart/189599/4 "2019-08-07T09:25:21Z")

</div>

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