<?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: Split column function - adds revenue? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Split-column-function-adds-revenue/m-p/363833#M23873</link>
    <description>&lt;P&gt;Maybe you should be looking at REPORTING tasks where the variable Period&amp;nbsp;has a grouping column role.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2017 14:36:23 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-06-02T14:36:23Z</dc:date>
    <item>
      <title>Split column function - adds revenue?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Split-column-function-adds-revenue/m-p/363708#M23854</link>
      <description>&lt;P&gt;Hi, I am a new user in SAS and i have encountered a problem that I need help to solve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue when using the split column function in SAS EG.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Data-set with the following example columns:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User_ID &amp;nbsp;Segment &amp;nbsp;Product &amp;nbsp;Period &amp;nbsp; &amp;nbsp; &amp;nbsp;Revenue&lt;/P&gt;&lt;P&gt;12345 &amp;nbsp; &amp;nbsp; Retail &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Shoes &amp;nbsp; &amp;nbsp;2016-02 &amp;nbsp; 500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to use the split function in order to get the period spltted into several new columns for each month of the year, instead rows. Somehow, when I perform the split column task, it adds about 20% to the total revenue. Before making the split I have used the sum function for the revenue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please tell me what I am doing wrong here? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 08:14:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Split-column-function-adds-revenue/m-p/363708#M23854</guid>
      <dc:creator>VictorNilsson</dc:creator>
      <dc:date>2017-06-02T08:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Split column function - adds revenue?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Split-column-function-adds-revenue/m-p/363712#M23855</link>
      <description>&lt;P&gt;Is period a date variable? &amp;nbsp;If so you wouldn't split it (which is for character strings) but rather extract the various parts using year() or month() functions. &amp;nbsp;E.g.:&lt;/P&gt;
&lt;PRE&gt;data want;
  set have;
  yr=year(period);
  mnth=month(period);
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Jun 2017 08:20:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Split-column-function-adds-revenue/m-p/363712#M23855</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-02T08:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Split column function - adds revenue?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Split-column-function-adds-revenue/m-p/363715#M23857</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;&amp;nbsp;Period is formated as charachter string and revenue in number format. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I assumed that it would be better to use the "Transpose function"? But as i understood it, the transpose function is preferably used in the opposite way, whenever you would like to transpose a column into a row? It feels like i'm swimming in the deep water over here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; haha. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 08:51:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Split-column-function-adds-revenue/m-p/363715#M23857</guid>
      <dc:creator>VictorNilsson</dc:creator>
      <dc:date>2017-06-02T08:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Split column function - adds revenue?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Split-column-function-adds-revenue/m-p/363731#M23864</link>
      <description>&lt;P&gt;All I can think is that with the extra variables its grouping the data differently. &amp;nbsp;Sorry, I don't use EG so can't be further help as I only use code. &amp;nbsp;Transpose can be used either way, normalised to transposed and vice versa. &amp;nbsp;If you have multiple variables or different types then arrays can be more effective.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 09:28:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Split-column-function-adds-revenue/m-p/363731#M23864</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-02T09:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Split column function - adds revenue?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Split-column-function-adds-revenue/m-p/363833#M23873</link>
      <description>&lt;P&gt;Maybe you should be looking at REPORTING tasks where the variable Period&amp;nbsp;has a grouping column role.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 14:36:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Split-column-function-adds-revenue/m-p/363833#M23873</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-02T14:36:23Z</dc:date>
    </item>
  </channel>
</rss>

