<?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 re-arrange  the column values to corresponding rows in table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-re-arrange-the-column-values-to-corresponding-rows-in/m-p/382395#M169627</link>
    <description>&lt;P&gt;hello,&lt;/P&gt;

&lt;P&gt;If the values of the table are frozen, I think you can go through this solution :&lt;/P&gt;

&lt;P&gt;| eval Approved=if((Approved=="NULL" OR isnull(Approved)),0,Approved)| eval "Email values"=if((Email=="NULL" OR isnull(Email)),0,Email) | eval "PDF values"=if(("PDF values"=="NULL" OR isnull("PDF values")),0,"PDF values")   |eval Area=if(SNO=="3" AND Area=="CA","PR",Area)|dedup Area |table SNO,Area,Approved,"PDF values","Email values"&lt;/P&gt;</description>
    <pubDate>Tue, 08 May 2018 12:59:34 GMT</pubDate>
    <dc:creator>consultanteIman</dc:creator>
    <dc:date>2018-05-08T12:59:34Z</dc:date>
    <item>
      <title>how to re-arrange  the column values to corresponding rows in table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-re-arrange-the-column-values-to-corresponding-rows-in/m-p/382391#M169623</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;i have created the table &amp;amp; table is in below format...&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4906i3738A7C40C264A31/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;i need to display the table like below format..&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4907i4EB972F7A87839D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Can some please provide us the solution, how to achieve in this scenario...&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
gmvs&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 10:25:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-re-arrange-the-column-values-to-corresponding-rows-in/m-p/382391#M169623</guid>
      <dc:creator>satish_tblocks</dc:creator>
      <dc:date>2018-05-04T10:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to re-arrange  the column values to corresponding rows in table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-re-arrange-the-column-values-to-corresponding-rows-in/m-p/382392#M169624</link>
      <description>&lt;P&gt;What is the logic behind this transformation? I get the replacing NULL and empty fields by 0, but you're also moving some stuff around, based on what logic? You seem to completely ignore the first column?&lt;/P&gt;

&lt;P&gt;So something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Approved=if(Approved=="&amp;lt;NULL&amp;gt;" OR Approved=="",0,Approved)
| eval "PDF Values"=if('PDF Values'=="&amp;lt;NULL&amp;gt;" OR 'PDF Values'=="",0,'PDF Values')
| eval "Email Vales"=if('Email Vales'=="&amp;lt;NULL&amp;gt;" OR 'Email Vales'=="",0,'Email Vales')
| stats sum(Approved) as Approved sum("PDF Values") as "PDF Values" sum("Email Vales") as "Email Vales" by Area
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Only thing is that will remove the first column. But since you seem to ignore that anyway, perhaps that is OK?&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 12:17:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-re-arrange-the-column-values-to-corresponding-rows-in/m-p/382392#M169624</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-05-04T12:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to re-arrange  the column values to corresponding rows in table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-re-arrange-the-column-values-to-corresponding-rows-in/m-p/382393#M169625</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;please ignore the  NULL values, i need to move the "All 3 field values of Approved, PDF Values, Email Vales"  to corresponding Area level only like,&lt;/P&gt;

&lt;P&gt;Area CA=11 for Approved in first row &amp;amp; &lt;BR /&gt;
Area DE=19 for Email Values in second row &amp;amp;&lt;BR /&gt;
Area NJ=43 for Approved in sixth row......etc,  (like in given table format) want to move the each corresponding "Area" values... &lt;/P&gt;

&lt;P&gt;please provide us the solution...&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
gmvs &lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 13:37:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-re-arrange-the-column-values-to-corresponding-rows-in/m-p/382393#M169625</guid>
      <dc:creator>satish_tblocks</dc:creator>
      <dc:date>2018-05-04T13:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to re-arrange  the column values to corresponding rows in table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-re-arrange-the-column-values-to-corresponding-rows-in/m-p/382394#M169626</link>
      <description>&lt;P&gt;Yeah, so you're summarizing by Area basically? (and cleaning up null/empty to be 0). Have you tried my solution? Because I think it does just that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 06:37:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-re-arrange-the-column-values-to-corresponding-rows-in/m-p/382394#M169626</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-05-07T06:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to re-arrange  the column values to corresponding rows in table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-re-arrange-the-column-values-to-corresponding-rows-in/m-p/382395#M169627</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;

&lt;P&gt;If the values of the table are frozen, I think you can go through this solution :&lt;/P&gt;

&lt;P&gt;| eval Approved=if((Approved=="NULL" OR isnull(Approved)),0,Approved)| eval "Email values"=if((Email=="NULL" OR isnull(Email)),0,Email) | eval "PDF values"=if(("PDF values"=="NULL" OR isnull("PDF values")),0,"PDF values")   |eval Area=if(SNO=="3" AND Area=="CA","PR",Area)|dedup Area |table SNO,Area,Approved,"PDF values","Email values"&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 12:59:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-re-arrange-the-column-values-to-corresponding-rows-in/m-p/382395#M169627</guid>
      <dc:creator>consultanteIman</dc:creator>
      <dc:date>2018-05-08T12:59:34Z</dc:date>
    </item>
  </channel>
</rss>

