<?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 break multiple values of a column into a new column name in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-break-multiple-values-of-a-column-into-a-new-column-name/m-p/213314#M43588</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search | mvexpand Swipe_Entry_Type | stats values(eval(Swipe_Entry_Type="In")) as Swipe_Entry_Type_In values(eval(Swipe_Entry_Type="Out")) as Swipe_Entry_Type_Out | table Swipe_Entry_Type_In Swipe_Entry_Type_Out 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 26 Sep 2016 15:49:58 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-09-26T15:49:58Z</dc:date>
    <item>
      <title>how to break multiple values of a column into a new column name</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-break-multiple-values-of-a-column-into-a-new-column-name/m-p/213312#M43586</link>
      <description>&lt;P&gt;How to break multiple values of a column into new column name?&lt;/P&gt;

&lt;P&gt;Swipe_Entry_Type&lt;BR /&gt;
In&lt;BR /&gt;
In&lt;BR /&gt;
In&lt;BR /&gt;
Out&lt;BR /&gt;
Out&lt;BR /&gt;
Out&lt;/P&gt;

&lt;P&gt;Swipe_Entry_Type_In&lt;BR /&gt;
In&lt;BR /&gt;
In&lt;BR /&gt;
In&lt;/P&gt;

&lt;P&gt;Swipe_Entry_Type_Out&lt;BR /&gt;
Out&lt;BR /&gt;
Out&lt;BR /&gt;
Out&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:09:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-break-multiple-values-of-a-column-into-a-new-column-name/m-p/213312#M43586</guid>
      <dc:creator>kdoma</dc:creator>
      <dc:date>2020-09-29T11:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to break multiple values of a column into a new column name</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-break-multiple-values-of-a-column-into-a-new-column-name/m-p/213313#M43587</link>
      <description>&lt;P&gt;Is Swipe_Entry_Type a multivalued field OR regular fields (single value per row). Share the query which is getting you this.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:09:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-break-multiple-values-of-a-column-into-a-new-column-name/m-p/213313#M43587</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T11:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to break multiple values of a column into a new column name</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-break-multiple-values-of-a-column-into-a-new-column-name/m-p/213314#M43588</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search | mvexpand Swipe_Entry_Type | stats values(eval(Swipe_Entry_Type="In")) as Swipe_Entry_Type_In values(eval(Swipe_Entry_Type="Out")) as Swipe_Entry_Type_Out | table Swipe_Entry_Type_In Swipe_Entry_Type_Out 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Sep 2016 15:49:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-break-multiple-values-of-a-column-into-a-new-column-name/m-p/213314#M43588</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-26T15:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to break multiple values of a column into a new column name</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-break-multiple-values-of-a-column-into-a-new-column-name/m-p/213315#M43589</link>
      <description>&lt;P&gt;My Input:&lt;/P&gt;

&lt;P&gt;Swipe_Entry_Type,Swipe_Time,Department,Student,Name&lt;BR /&gt;
In,2015-07-28 09:00:01 AM,CSE,CB049201,Sumanth&lt;BR /&gt;
In,2015-07-28 09:00:01 AM,CSE,CB049202,Ramya&lt;BR /&gt;
Out,2015-07-28 05:08:01 PM,CSE,CB049201,Sumanth&lt;BR /&gt;
Out,2015-07-28 05:08:01 PM,CSE,CB049202,Ramya&lt;/P&gt;

&lt;P&gt;output should be&lt;BR /&gt;
Name       Swipe_Entry_In Swipe_Entry_Out    Time_Entry_In Time_entry_Out Department Student&lt;BR /&gt;
Sumanth  In                         Out                           Time                 Tine                       CSE               CB049201 &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:09:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-break-multiple-values-of-a-column-into-a-new-column-name/m-p/213315#M43589</guid>
      <dc:creator>kdoma</dc:creator>
      <dc:date>2020-09-29T11:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to break multiple values of a column into a new column name</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-break-multiple-values-of-a-column-into-a-new-column-name/m-p/213316#M43590</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving fields Swipe_Entry_Type,Swipe_Time,Department,Student,Name 
| eval Swipe_Entry_In=if(Swipe_Entry_Type="In",Swipe_Entry_Type,null()) 
| eval Swipe_Entry_Out=if(Swipe_Entry_Type="Out",Swipe_Entry_Type,null()) 
| stats values(Swipe_Entry_In) as Swipe_Entry_In values(Swipe_Entry_Out) as Swipe_Entry_Out by Department,Student,Name
| table Name Swipe_Entry_In Swipe_Entry_Out Department Student
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Sep 2016 16:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-break-multiple-values-of-a-column-into-a-new-column-name/m-p/213316#M43590</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-26T16:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to break multiple values of a column into a new column name</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-break-multiple-values-of-a-column-into-a-new-column-name/m-p/213317#M43591</link>
      <description>&lt;P&gt;I want to convert Swipe_Time into Swipe_Time_In and Swipe_Time_Out based on the values&lt;/P&gt;

&lt;P&gt;Swipe_Entry_Type,Swipe_Time,Department,Student,Name&lt;BR /&gt;
In,2015-07-28 09:00:01 AM,CSE,CB049201,Sumanth&lt;BR /&gt;
In,2015-07-28 09:00:01 AM,CSE,CB049202,Ramya&lt;BR /&gt;
Out,2015-07-28 05:08:01 PM,CSE,CB049201,Sumanth&lt;BR /&gt;
Out,2015-07-28 05:08:01 PM,CSE,CB049202,Ramya&lt;/P&gt;

&lt;P&gt;if it is AM then new column as Swipe_Time_In and if it is PM then new column as Swipe_Time_Out&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:09:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-break-multiple-values-of-a-column-into-a-new-column-name/m-p/213317#M43591</guid>
      <dc:creator>kdoma</dc:creator>
      <dc:date>2020-09-29T11:09:43Z</dc:date>
    </item>
  </channel>
</rss>

