<?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: How can I reorder this table so the column B data represents the month prior? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-reorder-this-table-so-the-column-B-data-represents-the/m-p/313431#M93816</link>
    <description>&lt;P&gt;Rather than &lt;CODE&gt;values()&lt;/CODE&gt;, I'd generally use &lt;CODE&gt;last()&lt;/CODE&gt; -- or even better, &lt;CODE&gt;latest()&lt;/CODE&gt;, if there is a &lt;CODE&gt;_time&lt;/CODE&gt; field --but they are functionally equivalent in this case.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2017 12:31:30 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-10-16T12:31:30Z</dc:date>
    <item>
      <title>How can I reorder this table so the column B data represents the month prior?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-reorder-this-table-so-the-column-B-data-represents-the/m-p/313429#M93814</link>
      <description>&lt;P&gt;I have the following table:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Month                 Value
September             12
October               78
November              88
December              132
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to display the value of October in September, November in October and so on. The final output should look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Month                 Value
September             78
October               88
November              132
December              Value of January
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can this be achieved? Please help. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 10:51:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-reorder-this-table-so-the-column-B-data-represents-the/m-p/313429#M93814</guid>
      <dc:creator>ASISH_9</dc:creator>
      <dc:date>2017-10-16T10:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I reorder this table so the column B data represents the month prior?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-reorder-this-table-so-the-column-B-data-represents-the/m-p/313430#M93815</link>
      <description>&lt;P&gt;try adding this to the end (assuming Value keeps growing):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|sort 0 Value|streamstats window=1 current=f values(Month) as prevMonth|rename prevMonth as Month|where isnotnull(Month)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if Value doesn't keep growing and it is already sorted how you need it, just remove the sort command.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 11:47:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-reorder-this-table-so-the-column-B-data-represents-the/m-p/313430#M93815</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-10-16T11:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I reorder this table so the column B data represents the month prior?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-reorder-this-table-so-the-column-B-data-represents-the/m-p/313431#M93816</link>
      <description>&lt;P&gt;Rather than &lt;CODE&gt;values()&lt;/CODE&gt;, I'd generally use &lt;CODE&gt;last()&lt;/CODE&gt; -- or even better, &lt;CODE&gt;latest()&lt;/CODE&gt;, if there is a &lt;CODE&gt;_time&lt;/CODE&gt; field --but they are functionally equivalent in this case.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 12:31:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-reorder-this-table-so-the-column-B-data-represents-the/m-p/313431#M93816</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-10-16T12:31:30Z</dc:date>
    </item>
  </channel>
</rss>

