# Putting 2 different fields to compare on the same chart

**URL:** <https://discuss.elastic.co/t/putting-2-different-fields-to-compare-on-the-same-chart/223291>\
**Category:** Kibana\
**Created:** [March 12, 2020, 9:05am UTC](https://discuss.elastic.co/t/putting-2-different-fields-to-compare-on-the-same-chart/223291 "2020-03-12T09:05:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeniseLow](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@DeniseLow](https://discuss.elastic.co/u/DeniseLow)\
**Post date:** [March 12, 2020, 9:05am UTC](https://discuss.elastic.co/t/putting-2-different-fields-to-compare-on-the-same-chart/223291/1 "2020-03-12T09:05:43Z")

</div>

hi, need help to see if 2 charts comparing results of 2 different fields can be merged into one  
I am currently comparing the machine and operator disposition performance by 2 different charts using Kibana as below Basically all parts tested by machine will also be tested again by operator whether they pass or fail on the same lane.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/4/e4cf1aeff5aec41ceb4dc58a9902eb476555bf1d.png)

Is it possible to merge into one chart as below . I am okay to not compare between lanes

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/2/926b7986d7e90bd0b6222fe1e40c4e52db8259c1.png)

THe discover page looks like this. Basically, I have filtered the type field to relabel as lane number in the above chart  
The PVS\_OPR\_DISPO is what I use to create the Operator disposition chart while the Machine\_Dispo is used to create the Machine dispo chart.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/4/b41ec73e670d5ef0319f71210324ab7f83881666.png)

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [March 12, 2020, 9:52am UTC](https://discuss.elastic.co/t/putting-2-different-fields-to-compare-on-the-same-chart/223291/2 "2020-03-12T09:52:54Z")

</div>

Hi,

It should be possible, depending on your data.  
What I would do:

1. Make a Horizontal bar chart.
2. Set that count percentage on the X-axis.
3. Split by a field that determines if it's Machine or Operator. If that doesn't exist an can't really be created, a Filter aggregation could work as well. If it's with KQL, this would be the syntax: `PVS_OPR_DISPO:*` for the first filter and `Machine_Dispo:*`for the second one.  
4 Then you can do a split series by Decision type, just like the in first charts and set it to stacked.

---

<div class="post-metadata">

**Author:** ![DeniseLow](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@DeniseLow](https://discuss.elastic.co/u/DeniseLow)\
**Post date:** [March 13, 2020, 9:39am UTC](https://discuss.elastic.co/t/putting-2-different-fields-to-compare-on-the-same-chart/223291/3 "2020-03-13T09:39:58Z")

</div>

thank you . Managed to get the below chart with your help.

 ![image.png](https://us1.discourse-cdn.com/elastic/original/3X/f/7/f7037e6158faf26107b2eed0bb90f5039c735a48.png)

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [March 13, 2020, 12:33pm UTC](https://discuss.elastic.co/t/putting-2-different-fields-to-compare-on-the-same-chart/223291/4 "2020-03-13T12:33:51Z")

</div>

That looks good. If you also want to see different lanes, adding an Input Control visualization on the same Dashboard as this visualization can let you select a specific lane and that will filter the whole dashboard to the lane you want to see.

---

<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 10, 2020, 12:33pm UTC](https://discuss.elastic.co/t/putting-2-different-fields-to-compare-on-the-same-chart/223291/5 "2020-04-10T12:33:53Z")

</div>

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