# Transpose the values of the table in the Dashboard

**URL:** <https://community.dynatrace.com/t/transpose-the-values-of-the-table-in-the-dashboard/51608>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, dashboards\
**Created:** [May 13, 2025, 11:09am UTC](https://community.dynatrace.com/t/transpose-the-values-of-the-table-in-the-dashboard/51608 "2025-05-13T11:09:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arunkumarbnp](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Arunkumarbnp](https://community.dynatrace.com/u/Arunkumarbnp)\
**Post date:** [May 13, 2025, 11:09am UTC](https://community.dynatrace.com/t/transpose-the-values-of-the-table-in-the-dashboard/51608/1 "2025-05-13T11:09:33Z")

</div>

is it possible to transpose the values of the table in the dashboard?

---

<div class="post-metadata">

**Author:** ![marco\_irmer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marco_irmer/32/3038_2.png) [@marco\_irmer](https://community.dynatrace.com/u/marco_irmer)\
**Post date:** [May 13, 2025, 9:17pm UTC](https://community.dynatrace.com/t/transpose-the-values-of-the-table-in-the-dashboard/51608/2 "2025-05-13T21:17:08Z")

</div>

Behind the scenes, each table row is a separate ‘record’. In order to transpose, you’d have to likely perform some specific transformations in DQL. Happy to try and help you with that if you want to share your current DQL.

---

<div class="post-metadata">

**Author:** ![Arunkumarbnp](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Arunkumarbnp](https://community.dynatrace.com/u/Arunkumarbnp)\
**Post date:** [May 14, 2025, 10:32am UTC](https://community.dynatrace.com/t/transpose-the-values-of-the-table-in-the-dashboard/51608/3 "2025-05-14T10:32:08Z")

</div>

[@marco\_irmer](https://community.dynatrace.com/user/19769)&nbsp;thanks for your reply

I’m using browser monitoring metrics to be added as a table for a browser monitoring.

 ![Arunkumarbnp_0-1747218676010.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/9/a97d6fdbcaa0f863a8fb223961dd64348d45ba72.png)

Table output is

 ![Arunkumarbnp_1-1747218718289.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/a51495cb7734cd06c971ec9edc3bc77a20ae90df.png)

---

<div class="post-metadata">

**Author:** ![kumaravel](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kumaravel/32/41704_2.png) [@kumaravel](https://community.dynatrace.com/u/kumaravel)\
**Post date:** [May 15, 2025, 1:24pm UTC](https://community.dynatrace.com/t/transpose-the-values-of-the-table-in-the-dashboard/51608/4 "2025-05-15T13:24:28Z")

</div>

Hello,

I also had a similar usecase to transpose the table to have a better comparison for 2 records and was able to achieve it with some workaround.

**Default working in DQL** -

Below is a sample code of the table visualisation

```markup
data record(content="{\"host\":\"host1\",\"cpu\":\"67\",\"memory\":\"80%\"}"),
 record(content="{\"host\":\"host2\",\"cpu\":\"33\",\"memory\":\"44%\"}")
 | parse content,"json:jsonContent"
 | fields host = jsonContent[host], cpu = jsonContent[cpu], memory = jsonContent[memory]

```

 ![kumaravel_0-1747314906137.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/6bc9e2a7e7ea68e2e24b641b7e2b5c11ae0310b0.png)

For example, I have taken cpu and memory fields but I had around 10 fields of comparison and wanted to transpose the table to have a better view of the data.

**Workaround in DQL:**

```markup
data record(content="{\"host\":\"host1\",\"cpu\":\"67\",\"memory\":\"80%\"}")
 | parse content,"json:host1Content"
 | fields host1Content, state = "true"
 | fieldsAdd temp = lookup([
    data record(content="{\"host\":\"host2\",\"cpu\":\"33\",\"memory\":\"44%\"}")
    | parse content,"json:contentJson"
    | fields contentJson, state = "true"
    ],
    sourceField:state,
    lookupField:state)
| fields host1Content, host2Content = temp[contentJson]
| fields array= array(
concat("cpu::",host1Content[cpu],"::",host2Content[cpu]),
concat("memory::",host1Content[memory],"::",host2Content[memory])
)
| expand array
| parse array,"LD:Host'::'LD:Host1'::'LD:Host2"
| fields Host, Host1, Host2

```

 ![kumaravel_1-1747315274049.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5d93e961957c4870a08c3498ac5e068e11e918e3.png)

NOTE:&nbsp;The above workaround example works with only 2 records, so the dql fetch should be limited to return 1 record in the sample

I hope it can be used for your requirement as well

---

<div class="post-metadata">

**Author:** ![Arunkumarbnp](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Arunkumarbnp](https://community.dynatrace.com/u/Arunkumarbnp)\
**Post date:** [May 16, 2025, 5:30am UTC](https://community.dynatrace.com/t/transpose-the-values-of-the-table-in-the-dashboard/51608/5 "2025-05-16T05:30:07Z")

</div>

[@kumaravel](https://community.dynatrace.com/user/87037)&nbsp;Thanks for your reply.

How can it be done on dashboard classic

---

<div class="post-metadata">

**Author:** ![kumaravel](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kumaravel/32/41704_2.png) [@kumaravel](https://community.dynatrace.com/u/kumaravel)\
**Post date:** [May 16, 2025, 8:45am UTC](https://community.dynatrace.com/t/transpose-the-values-of-the-table-in-the-dashboard/51608/6 "2025-05-16T08:45:11Z")

</div>

I have not tried this use case in classic dashboard. Will share if I find a solution.
