<?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: Transforming tables without hacky chart(first) usage in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Transforming-tables-without-hacky-chart-first-usage/m-p/339282#M100603</link>
    <description>&lt;P&gt;Thank you! Exactly what I was looking for!&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2017 19:38:09 GMT</pubDate>
    <dc:creator>doweaver</dc:creator>
    <dc:date>2017-06-07T19:38:09Z</dc:date>
    <item>
      <title>Transforming tables without hacky chart(first) usage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforming-tables-without-hacky-chart-first-usage/m-p/339280#M100601</link>
      <description>&lt;P&gt;I have some data I'm trying to rearrange into an appropriate table for visualization. It starts out like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  Group Subgroup    Value
    1   A   100
    1   B   300
    2   A   500
    2   B   700
    3   A   1000
    3   B   2000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to transform it to look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    1   2   3
A   100 500 1000
B   300 700 2000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(Where the column headers are the group, and the rows are the subgroups)&lt;/P&gt;

&lt;P&gt;I can accomplish this by calling:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;chart first(Value) BY Subgroup, Group
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...but that doesn't seem like the right approach. i'm calling an aggregation method when I'm not actually DOING any aggregating, just transforming. Is there a better way to handle this?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 18:47:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforming-tables-without-hacky-chart-first-usage/m-p/339280#M100601</guid>
      <dc:creator>doweaver</dc:creator>
      <dc:date>2017-06-07T18:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming tables without hacky chart(first) usage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforming-tables-without-hacky-chart-first-usage/m-p/339281#M100602</link>
      <description>&lt;P&gt;try adding this instead of the chart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|xyseries Subgroup Group Value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it worked for me with this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | makeresults |eval data="group=1 subgroup=a value=100, group=1 subgroup=b value=300,group=2 subgroup=a value=500,group=2 subgroup=b value=700"|makemv data delim=","|mvexpand data|eval _raw=data|kv|table group subgroup value|xyseries subgroup group value
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Jun 2017 19:23:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforming-tables-without-hacky-chart-first-usage/m-p/339281#M100602</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-06-07T19:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Transforming tables without hacky chart(first) usage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforming-tables-without-hacky-chart-first-usage/m-p/339282#M100603</link>
      <description>&lt;P&gt;Thank you! Exactly what I was looking for!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 19:38:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforming-tables-without-hacky-chart-first-usage/m-p/339282#M100603</guid>
      <dc:creator>doweaver</dc:creator>
      <dc:date>2017-06-07T19:38:09Z</dc:date>
    </item>
  </channel>
</rss>

