<?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: Create a Pivot table using BASE SAS in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Create-a-Pivot-table-using-BASE-SAS/m-p/558189#M10086</link>
    <description>&lt;P&gt;Also can we do some calculation like if i need to find productivity of the region by the below mentioned formula&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Productiivity = Total_margin/ctc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry to bother you again, can we do this in this query.&lt;/P&gt;</description>
    <pubDate>Mon, 13 May 2019 05:17:22 GMT</pubDate>
    <dc:creator>praveen_ratna</dc:creator>
    <dc:date>2019-05-13T05:17:22Z</dc:date>
    <item>
      <title>Create a Pivot table using BASE SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-Pivot-table-using-BASE-SAS/m-p/558002#M10055</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I have a data based with Payroll id , region name, margin and ctc&amp;nbsp; , i want to group the data by region name and show the sum of margin and ctc. I have used the below mentioned code but it is not working. Can anyone help me out on the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=PRACTISE.ACTUALPROD19NEW;&lt;BR /&gt;by REGION_NAME;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=PRACTISE.ACTUALPRODAPR19NEW&lt;BR /&gt;n='Number of observations for the PAYROLL_ID:'&lt;BR /&gt;'Number of observations for the data set:';&lt;BR /&gt;LABEL REGION_NAME='REGION NAME'&lt;BR /&gt;TOTAL_MARGIN='MARGIN'&lt;BR /&gt;CTC='CTC'&lt;BR /&gt;PAYROLL_ID='PAYROLL ID';&lt;BR /&gt;VAR REGION_NAME TOTAL_MARGIN CTC;&lt;BR /&gt;SUM TOTAL_MARGIN CTC;&lt;BR /&gt;BY REGION_NAME ;&lt;BR /&gt;FORMAT TOTAL_MARGIN 10.2;&lt;BR /&gt;run;&lt;BR /&gt;options byline;&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2019 05:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-Pivot-table-using-BASE-SAS/m-p/558002#M10055</guid>
      <dc:creator>praveen_ratna</dc:creator>
      <dc:date>2019-05-11T05:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Pivot table using BASE SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-Pivot-table-using-BASE-SAS/m-p/558014#M10056</link>
      <description>&lt;P&gt;please try the proc sql&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as select REGION_NAME, sum(REGION_NAME TOTAL_MARGIN) as REGION_NAME TOTAL_MARGIN, 
sum(CTC) as CTC from PRACTISE.ACTUALPROD19NEW group by REGION_NAME;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 11 May 2019 07:15:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-Pivot-table-using-BASE-SAS/m-p/558014#M10056</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-05-11T07:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Pivot table using BASE SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-Pivot-table-using-BASE-SAS/m-p/558019#M10057</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/273731"&gt;@praveen_ratna&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;I have a data based with Payroll id , region name, margin and ctc&amp;nbsp; , i want to group the data by region name and show the sum of margin and ctc. I have used the below mentioned code but it is not working. Can anyone help me out on the same.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What exactly is not working?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide a portion of your data using these instructions: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2019 10:38:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-Pivot-table-using-BASE-SAS/m-p/558019#M10057</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-11T10:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Pivot table using BASE SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-Pivot-table-using-BASE-SAS/m-p/558056#M10063</link>
      <description>&lt;P&gt;I assume by "pivot" table you mean the creation of some summary statistics?&lt;/P&gt;
&lt;P&gt;Use PROC MEANS (aka PROC SUMMARY).&lt;/P&gt;
&lt;DIV class="lia-message-heading lia-component-message-header"&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-left"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;
&lt;DIV class="lia-message-subject"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="messagebodydisplay_0" class="lia-message-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;I have a data based with Payroll id , region name, margin and ctc&amp;nbsp; , i want to group the data by region name and show the sum of margin and ctc. I have used the below mentioned code but it is not working. Can anyone help me out on the same.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means N MIN MAX SUM data=have ;
  class  region;
  var margin ctc;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 11 May 2019 16:31:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-Pivot-table-using-BASE-SAS/m-p/558056#M10063</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-11T16:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Pivot table using BASE SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-Pivot-table-using-BASE-SAS/m-p/558062#M10065</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; For other suggestions, PROC TABULATE can also do crosstabular reports, sort of like a "static" pivot table. If you need a real pivot table, then investigate the ODS TAGSETS.TABLEEDITOR destination, which will create an Excel pivot table from a SAS data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2019 17:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-Pivot-table-using-BASE-SAS/m-p/558062#M10065</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-05-11T17:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Pivot table using BASE SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-Pivot-table-using-BASE-SAS/m-p/558187#M10085</link>
      <description>&lt;P&gt;Thank you dear your response has worked for me, I want to know one more thing that can we sum the experience bucket with in the region.&lt;/P&gt;&lt;P&gt;Like we have four experience bucket mainly&amp;nbsp; 0-6 mths, 6-12 mths , 12-24 mths and &amp;gt; 24 mths and i want to count the no of employees in each exp bucket in each region.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table PRACTISE.PRODSUMMARY as select REGION_NAME, COUNT(PAYROLL_ID), sum(TOTAL_MARGIN) as TOTAL_MARGIN,&lt;BR /&gt;sum(CTC) as CTC from PRACTISE.ACTUALPRODAPR19NEW group by REGION_NAME;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 04:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-Pivot-table-using-BASE-SAS/m-p/558187#M10085</guid>
      <dc:creator>praveen_ratna</dc:creator>
      <dc:date>2019-05-13T04:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Pivot table using BASE SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-a-Pivot-table-using-BASE-SAS/m-p/558189#M10086</link>
      <description>&lt;P&gt;Also can we do some calculation like if i need to find productivity of the region by the below mentioned formula&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Productiivity = Total_margin/ctc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry to bother you again, can we do this in this query.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 05:17:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-a-Pivot-table-using-BASE-SAS/m-p/558189#M10086</guid>
      <dc:creator>praveen_ratna</dc:creator>
      <dc:date>2019-05-13T05:17:22Z</dc:date>
    </item>
  </channel>
</rss>

