<?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 add one column to the end of the table. in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-add-one-column-to-the-end-of-the-table/m-p/288771#M39244</link>
    <description>&lt;P&gt;I divided my initial request into two and then apply append to them.&lt;/P&gt;

&lt;P&gt;D C&lt;BR /&gt;
1 3&lt;BR /&gt;
4 6&lt;/P&gt;

&lt;P&gt;append&lt;/P&gt;

&lt;P&gt;D C&lt;BR /&gt;
2 3&lt;BR /&gt;
5 6&lt;/P&gt;</description>
    <pubDate>Sat, 08 Jul 2017 00:03:33 GMT</pubDate>
    <dc:creator>pdanilchenko</dc:creator>
    <dc:date>2017-07-08T00:03:33Z</dc:date>
    <item>
      <title>How can I add one column to the end of the table.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-add-one-column-to-the-end-of-the-table/m-p/288767#M39240</link>
      <description>&lt;P&gt;For example, I have the following  table with 3 columns and 2 rows:&lt;BR /&gt;
A B C&lt;BR /&gt;
1 2 3&lt;BR /&gt;
4 5 6&lt;/P&gt;

&lt;P&gt;I want to transform this table and receive the following:&lt;BR /&gt;
D C&lt;BR /&gt;
1 3&lt;BR /&gt;
4 6&lt;BR /&gt;
2 3&lt;BR /&gt;
5 6&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 16:27:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-add-one-column-to-the-end-of-the-table/m-p/288767#M39240</guid>
      <dc:creator>pdanilchenko</dc:creator>
      <dc:date>2017-07-04T16:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add one column to the end of the table.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-add-one-column-to-the-end-of-the-table/m-p/288768#M39241</link>
      <description>&lt;P&gt;@pdanilchenko, it will be helpful if you can give us a glimpse of your final transforming query which generate table with columns A B and C. Because there might be a feasibility of coming down to table with columns D and C directly.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 17:02:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-add-one-column-to-the-end-of-the-table/m-p/288768#M39241</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-04T17:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add one column to the end of the table.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-add-one-column-to-the-end-of-the-table/m-p/288769#M39242</link>
      <description>&lt;P&gt;Following is a run anywhere search for your problem: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval A=1,B=2,C=3
| append [| makeresults
| eval A=4,B=5,C=6]
| fields - _time
| eval D = A.",".B
| fields - A B
| makemv delim="," D
| mvexpand D
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Query until fields _time is used to generate mock data as per question.&lt;BR /&gt;
Similar approach with mvzip&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval D = mvzip(A,B)
| fields - A B
| makemv delim="," D 
| mvexpand D
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Jul 2017 17:07:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-add-one-column-to-the-end-of-the-table/m-p/288769#M39242</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-04T17:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add one column to the end of the table.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-add-one-column-to-the-end-of-the-table/m-p/288770#M39243</link>
      <description>&lt;P&gt;@pdanilchenko, were you able to test the suggested query?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 17:11:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-add-one-column-to-the-end-of-the-table/m-p/288770#M39243</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-07T17:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add one column to the end of the table.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-add-one-column-to-the-end-of-the-table/m-p/288771#M39244</link>
      <description>&lt;P&gt;I divided my initial request into two and then apply append to them.&lt;/P&gt;

&lt;P&gt;D C&lt;BR /&gt;
1 3&lt;BR /&gt;
4 6&lt;/P&gt;

&lt;P&gt;append&lt;/P&gt;

&lt;P&gt;D C&lt;BR /&gt;
2 3&lt;BR /&gt;
5 6&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jul 2017 00:03:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-add-one-column-to-the-end-of-the-table/m-p/288771#M39244</guid>
      <dc:creator>pdanilchenko</dc:creator>
      <dc:date>2017-07-08T00:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add one column to the end of the table.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-add-one-column-to-the-end-of-the-table/m-p/288772#M39245</link>
      <description>&lt;P&gt;Ok sure. That is why context of the problem is required for us as well to assist. You should still try to see whether there is a feasibility of achieving the same result without append for which we would need to see your existing query. If not please convert your comment to answer and accept the same.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jul 2017 00:55:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-add-one-column-to-the-end-of-the-table/m-p/288772#M39245</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-08T00:55:25Z</dc:date>
    </item>
  </channel>
</rss>

