<?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 Re: Splunk Chart dynamic column header sorting in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Chart-dynamic-column-header-sorting/m-p/674697#M230950</link>
    <description>&lt;P&gt;Thank you mate for the help,&amp;nbsp; Below corrected one helped with faster results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;|chart latest(Count) as Count by ProcessDate,Name
|sort 0 - ProcessDate
| transpose 0 column_name=Name header_field=ProcDate&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jan 2024 16:53:33 GMT</pubDate>
    <dc:creator>avadhutha</dc:creator>
    <dc:date>2024-01-18T16:53:33Z</dc:date>
    <item>
      <title>Splunk Chart dynamic column header sorting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Chart-dynamic-column-header-sorting/m-p/674687#M230942</link>
      <description>&lt;P&gt;I have a chart formed like below and it's dynamic columns are created based on processes date. By default now the column header sort is happing from lower to higher value but I am looking in a format where headers of processDates are higher to lower.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Query:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;|chart latest(Count) as Count by Name ,ProcessDate&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Current Output:&lt;/U&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;Name&amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;STRONG&gt;20240101&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;STRONG&gt;20240102&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;STRONG&gt;20240103&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;xyz&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;NA&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;NA&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;NA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;123&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;NA&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;NANA&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;NA&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Expecting output:&lt;/U&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;Name&amp;nbsp; &amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;STRONG&gt;20240103&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;STRONG&gt;20240102&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;STRONG&gt;20240101&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;xyz&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;NA&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;NA&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;NA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;123&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;NA&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;NANA&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;NA&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 15:08:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Chart-dynamic-column-header-sorting/m-p/674687#M230942</guid>
      <dc:creator>avadhutha</dc:creator>
      <dc:date>2024-01-18T15:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Chart dynamic column header sorting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Chart-dynamic-column-header-sorting/m-p/674690#M230944</link>
      <description>&lt;P&gt;Try&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;| chart latest(Count) as Count by Name, ProcessDate&lt;BR /&gt;&lt;/SPAN&gt;| sort ProcessDate desc&lt;/PRE&gt;&lt;P&gt;Found a very similar request under this previously answered question.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-display-column-results-in-descending-order/m-p/405619" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/How-to-display-column-results-in-descending-order/m-p/405619&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 15:31:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Chart-dynamic-column-header-sorting/m-p/674690#M230944</guid>
      <dc:creator>dural_yyz</dc:creator>
      <dc:date>2024-01-18T15:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Chart dynamic column header sorting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Chart-dynamic-column-header-sorting/m-p/674691#M230945</link>
      <description>&lt;P&gt;No, it is not working&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 15:39:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Chart-dynamic-column-header-sorting/m-p/674691#M230945</guid>
      <dc:creator>avadhutha</dc:creator>
      <dc:date>2024-01-18T15:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Chart dynamic column header sorting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Chart-dynamic-column-header-sorting/m-p/674692#M230946</link>
      <description>&lt;LI-CODE lang="markup"&gt;| transpose 0 column_name=Date header_field=Name
| sort 0 -Date
| transpose 0 column_name=Name header_field=Date&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 Jan 2024 15:39:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Chart-dynamic-column-header-sorting/m-p/674692#M230946</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-01-18T15:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Chart dynamic column header sorting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Chart-dynamic-column-header-sorting/m-p/674697#M230950</link>
      <description>&lt;P&gt;Thank you mate for the help,&amp;nbsp; Below corrected one helped with faster results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;|chart latest(Count) as Count by ProcessDate,Name
|sort 0 - ProcessDate
| transpose 0 column_name=Name header_field=ProcDate&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 16:53:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Chart-dynamic-column-header-sorting/m-p/674697#M230950</guid>
      <dc:creator>avadhutha</dc:creator>
      <dc:date>2024-01-18T16:53:33Z</dc:date>
    </item>
  </channel>
</rss>

