<?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 to change the format of my data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-format-of-my-data/m-p/124096#M33534</link>
    <description>&lt;P&gt;Please post the query, and it will be simple for us to respond.&lt;/P&gt;</description>
    <pubDate>Sun, 29 Jun 2014 19:20:45 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2014-06-29T19:20:45Z</dc:date>
    <item>
      <title>How to change the format of my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-format-of-my-data/m-p/124095#M33533</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;we have data that i am getting report using addcols to combine the data and using transpose to get the data in the below format. if anyone wants the query that i am using, i can send it&lt;/P&gt;

&lt;P&gt;Measure                             value&lt;BR /&gt;
number of subscriptions today         10&lt;BR /&gt;
number of subscriptions Lastweek      5&lt;BR /&gt;
Delta in subscriptions %              100% &lt;BR /&gt;
Revenue today                         $ 100&lt;BR /&gt;
Revenue Lastweek                      $ 50&lt;BR /&gt;&lt;BR /&gt;
Delta in Revenue                      100%&lt;BR /&gt;
Requests today                        200&lt;BR /&gt;
Requests LastWeek                     100&lt;BR /&gt;
Delta in Requests                     100%&lt;/P&gt;

&lt;P&gt;I want the data in the below format - &lt;/P&gt;

&lt;P&gt;Measure             Today             LastWeek      Delta&lt;BR /&gt;&lt;BR /&gt;
Subscriptions       10                  5            100&lt;BR /&gt;
Revenue             $ 100              $ 50          100&lt;BR /&gt;
Requests            200                 100          100&lt;/P&gt;

&lt;P&gt;How can this be done? &lt;/P&gt;</description>
      <pubDate>Sun, 29 Jun 2014 17:06:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-format-of-my-data/m-p/124095#M33533</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2014-06-29T17:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the format of my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-format-of-my-data/m-p/124096#M33534</link>
      <description>&lt;P&gt;Please post the query, and it will be simple for us to respond.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jun 2014 19:20:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-format-of-my-data/m-p/124096#M33534</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-06-29T19:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the format of my data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-format-of-my-data/m-p/124097#M33535</link>
      <description>&lt;P&gt;As naïve postprocessing, you could do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval Today = case(match(Measure, "(?i)today")) | eval LastWeek = case(match(Measure, "(?i)lastweek")) | eval Delta = case(match(Measure, "(?i)delta")) | eval Measure = case(match(Measure, "(?i)subscriptions"), "Subscriptions", match(Measure, "(?i)revenue"), "Revenue", match(Measure, "(?i)requests"), "Requests") | stats values(Today) as Today values(LastWeek) as LastWeek values(Delta) as Delta by Measure
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, that's fairly ugly... and I agree with Lisa, there's probably a nicer way to produce the directly data in your query.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jun 2014 19:43:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-format-of-my-data/m-p/124097#M33535</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-06-29T19:43:33Z</dc:date>
    </item>
  </channel>
</rss>

