# Merge columns whith same name in table panel

**URL:** <https://community.grafana.com/t/merge-columns-whith-same-name-in-table-panel/39033>\
**Category:** Prometheus\
**Created:** [November 9, 2020, 11:34am UTC](https://community.grafana.com/t/merge-columns-whith-same-name-in-table-panel/39033 "2020-11-09T11:34:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcoboffi1](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@marcoboffi1](https://community.grafana.com/u/marcoboffi1)\
**Post date:** [November 9, 2020, 11:34am UTC](https://community.grafana.com/t/merge-columns-whith-same-name-in-table-panel/39033/1 "2020-11-09T11:34:56Z")

</div>

Hi all,  
I have two set of Prometheus metrics related two different event types but with the same meaning (event start\_time, event stop\_time, event status[ok/ko] ). Label of event name is different (eventA, eventB).

I made a table panel merging the two set of metrics and renamed them with the same labels but columns remain different for the two set of metrics (see image in attachment).  
In previuos version of Grafana (6.x), it seemed to me that colums with the same name were merged together.

How can i obtain correct view?

 ![table](https://us1.discourse-cdn.com/grafana/original/2X/1/15251096b91a751b6d1c32772ea1a11a83163766.png)

---

<div class="post-metadata">

**Author:** ![marcoboffi1](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@marcoboffi1](https://community.grafana.com/u/marcoboffi1)\
**Post date:** [November 10, 2020, 10:20am UTC](https://community.grafana.com/t/merge-columns-whith-same-name-in-table-panel/39033/2 "2020-11-10T10:20:19Z")

</div>

I used ‘Add field from calculation’ → ‘Reduce Row’ → Last (not null) value to add a _new Starttime_ field.  
This workaround works also for other metrics (stoptime , success) but it’s not possible with labels

 ![table](https://us1.discourse-cdn.com/grafana/original/2X/f/fec4b07184567480fcf7c510b4ffe16ee82e2f40.png)

---

<div class="post-metadata">

**Author:** ![marcoboffi1](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@marcoboffi1](https://community.grafana.com/u/marcoboffi1)\
**Post date:** [November 10, 2020, 11:14am UTC](https://community.grafana.com/t/merge-columns-whith-same-name-in-table-panel/39033/3 "2020-11-10T11:14:18Z")

</div>

I gave up,  
I used _label\_replace_ function in one query so I change label name
