<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Rename column name dynamically using variable in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Rename-column-name-dynamically-using-variable/m-p/283868#M2455</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Is there a way to rename a field dynamically ? I am creating a comparison dashboard, and need to show the column like column_prod, column_cap. But the environment is a variable and chosen by user. I am not able to rename the column using a variable. Any help is really appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Aug 2025 18:08:17 GMT</pubDate>
    <dc:creator>susmita_k</dc:creator>
    <dc:date>2025-08-14T18:08:17Z</dc:date>
    <item>
      <title>Rename column name dynamically using variable</title>
      <link>https://community.dynatrace.com/t5/DQL/Rename-column-name-dynamically-using-variable/m-p/283868#M2455</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Is there a way to rename a field dynamically ? I am creating a comparison dashboard, and need to show the column like column_prod, column_cap. But the environment is a variable and chosen by user. I am not able to rename the column using a variable. Any help is really appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 18:08:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Rename-column-name-dynamically-using-variable/m-p/283868#M2455</guid>
      <dc:creator>susmita_k</dc:creator>
      <dc:date>2025-08-14T18:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rename column name dynamically using variable</title>
      <link>https://community.dynatrace.com/t5/DQL/Rename-column-name-dynamically-using-variable/m-p/283932#M2457</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67050"&gt;@susmita_k&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I think it is technically possible to use a variable in a dashboard, and this variable can be used to rename the field, something like this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-08-15 at 3.20.30 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29613iB784AB19C6D7DA88/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-08-15 at 3.20.30 PM.png" alt="Screenshot 2025-08-15 at 3.20.30 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Used sample dql is&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  data record( a= "test", b= 3),
     record( a= "test1", b= 7),
     record( a= "test", b= 13),
     record( a= "test2", b= 10),
     record( a= "test3", b= 31),
     record( a= "test2", b= 45)
  | filter a==$Variable1
  | summarize  `$Variable1`=sum(b)&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/analyze-explore-automate/dashboards-and-notebooks/dashboards-new/components/dashboard-component-variable" target="_blank"&gt;https://docs.dynatrace.com/docs/analyze-explore-automate/dashboards-and-notebooks/dashboards-new/components/dashboard-component-variable&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m not certain about your requirement, but maybe you can think in this direction or provide the exact requirement along with a sample query so we can look into it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Aug 2025 20:21:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Rename-column-name-dynamically-using-variable/m-p/283932#M2457</guid>
      <dc:creator>Akhil-Jayendran</dc:creator>
      <dc:date>2025-08-15T20:21:54Z</dc:date>
    </item>
  </channel>
</rss>

