# How to merge cells in grafana table

**URL:** <https://community.grafana.com/t/how-to-merge-cells-in-grafana-table/32215>\
**Category:** Dashboards\
**Tags:** transformations, table-panel\
**Created:** [June 16, 2020, 8:17pm UTC](https://community.grafana.com/t/how-to-merge-cells-in-grafana-table/32215 "2020-06-16T20:17:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bibostator](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@bibostator](https://community.grafana.com/u/bibostator)\
**Post date:** [June 16, 2020, 8:17pm UTC](https://community.grafana.com/t/how-to-merge-cells-in-grafana-table/32215/1 "2020-06-16T20:17:41Z")

</div>

My Mysql datasorce request generates table like this:

 ![image](https://us1.discourse-cdn.com/grafana/original/2X/c/c825b750b4d7d61c3ae0ed5a0f48b7167ac166a9.png)

how could I create view like this merging similar cells?

 ![image](https://us1.discourse-cdn.com/grafana/original/2X/3/3581e5872d4796a9080fc8ca90825da0508d28fd.png)

---

<div class="post-metadata">

**Author:** ![eidermauricio1](https://avatars.discourse-cdn.com/v4/letter/e/b77776/32.png) [@eidermauricio1](https://community.grafana.com/u/eidermauricio1)\
**Post date:** [September 20, 2022, 12:53am UTC](https://community.grafana.com/t/how-to-merge-cells-in-grafana-table/32215/2 "2022-09-20T00:53:19Z")

</div>

Hi @bibostator!

It will be nice to have this feature, did you find any way for merging cells?

---

<div class="post-metadata">

**Author:** ![usman.ahmad](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/usman.ahmad/32/29706_2.png) [@usman.ahmad](https://community.grafana.com/u/usman.ahmad)\
**Post date:** [September 26, 2022, 2:06pm UTC](https://community.grafana.com/t/how-to-merge-cells-in-grafana-table/32215/3 "2022-09-26T14:06:12Z")

</div>

Hi @eidermauricio1,

Welcome to the :grafana: community support forums !!

As the original post is almost 2 years old. So the user may (or may not) be active.

For your question, It should be possible to use the [Transformation](https://grafana.com/docs/grafana/v9.0/panels/transform-data/#add-field-from-calculation) function.

For e.g. “Grouping to Matrix” or something similar e.g. “Group By”. You need to play around to get the desired data.

If not then maybe provide the sample data here so that the community members can have a look into it.

---

<div class="post-metadata">

**Author:** ![lindsaybc](https://avatars.discourse-cdn.com/v4/letter/l/bc8723/32.png) [@lindsaybc](https://community.grafana.com/u/lindsaybc)\
**Post date:** [June 5, 2023, 8:55pm UTC](https://community.grafana.com/t/how-to-merge-cells-in-grafana-table/32215/4 "2023-06-05T20:55:27Z")

</div>

Did you ever find a way to accomplish this? Neither of the recommended transformations appeared to be relevant to me, and I’m still looking for a solution to the same question you posted. Thanks

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [June 5, 2023, 10:07pm UTC](https://community.grafana.com/t/how-to-merge-cells-in-grafana-table/32215/5 "2023-06-05T22:07:44Z")

</div>

Welcome @lindsaybc

Maybe you can leverage dynamic [text] plugin ([Dynamic Text plugin for Grafana | Grafana Labs](https://grafana.com/grafana/plugins/marcusolsson-dynamictext-panel/)) with some html to get what you want?

> **[How to Combine or Merge Cells in an HTML Table](https://www.computerhope.com/issues/ch001655.htm)**
>
> Steps on how to combine or merge two or more HTML table cells together.
