<?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: Generate Matrix from Table Data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Generate-Matrix-from-Table-Data/m-p/310676#M93176</link>
    <description>&lt;P&gt;try adding this to your query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|xyseries col1 col2 value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i used this runanywhere command for testing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults|eval data="col1=xA,col2=yA,value=1.0 col1=xA,col2=yB,value=1.5 col1=xB,col2=yA,value=2.0 col1=xB,col2=yB,value=2.5"|makemv data|mvexpand data|rename data as _raw|kv|table col1 col2 value|xyseries col1 col2 value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Xyseries"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Xyseries&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2018 12:51:47 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2018-01-19T12:51:47Z</dc:date>
    <item>
      <title>Generate Matrix from Table Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-Matrix-from-Table-Data/m-p/310673#M93173</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am currently working with a table that looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;col1 | col2 | value
xA  | yA | 1.0
xA | yB | 1.5
xB | yA | 2.0
xB | yB | 2.5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From this table, I would like to create a matrix, like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  /  | yA | yB
xA | 1.0 | 1.5
xB | 2.0 | 2.5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried to use the &lt;EM&gt;transpose&lt;/EM&gt; command, but I have been rather unsuccessful so far. Is this possible with Splunk? &lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 13:12:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-Matrix-from-Table-Data/m-p/310673#M93173</guid>
      <dc:creator>jean_boulanger</dc:creator>
      <dc:date>2018-01-18T13:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Matrix from Table Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-Matrix-from-Table-Data/m-p/310674#M93174</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Untable"&gt;untable&lt;/A&gt; might help&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 23:14:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-Matrix-from-Table-Data/m-p/310674#M93174</guid>
      <dc:creator>davpx</dc:creator>
      <dc:date>2018-01-18T23:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Matrix from Table Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-Matrix-from-Table-Data/m-p/310675#M93175</link>
      <description>&lt;P&gt;Hi, Jean.&lt;/P&gt;

&lt;P&gt;Xyseries command implements exact what you need: &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Xyseries"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Xyseries&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 08:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-Matrix-from-Table-Data/m-p/310675#M93175</guid>
      <dc:creator>nryabykh</dc:creator>
      <dc:date>2018-01-19T08:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Matrix from Table Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-Matrix-from-Table-Data/m-p/310676#M93176</link>
      <description>&lt;P&gt;try adding this to your query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|xyseries col1 col2 value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i used this runanywhere command for testing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults|eval data="col1=xA,col2=yA,value=1.0 col1=xA,col2=yB,value=1.5 col1=xB,col2=yA,value=2.0 col1=xB,col2=yB,value=2.5"|makemv data|mvexpand data|rename data as _raw|kv|table col1 col2 value|xyseries col1 col2 value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Xyseries"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Xyseries&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 12:51:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-Matrix-from-Table-Data/m-p/310676#M93176</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2018-01-19T12:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Matrix from Table Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-Matrix-from-Table-Data/m-p/310677#M93177</link>
      <description>&lt;P&gt;This worked like a charm, thank you&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 13:35:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-Matrix-from-Table-Data/m-p/310677#M93177</guid>
      <dc:creator>jean_boulanger</dc:creator>
      <dc:date>2018-01-19T13:35:28Z</dc:date>
    </item>
  </channel>
</rss>

