<?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 Proc report share of total in across group in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-share-of-total-in-across-group/m-p/413757#M19866</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;working with proc report I am trying to get something like&amp;nbsp; share MSRP sum&amp;nbsp; across orgin and grouped by make and type in&amp;nbsp; total MSRP sum grouped by make and type.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i already have is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.cars;
column make type MSRP origin, (MSRP share) ;
define make / group;
define type / group;
define MSRP / analysis sum;
define origin / across order=data;
define MSRP/ analysis sum;
define share / computed ;
compute after type;
tot = MSRP.sum; 
endcomp;
compute after origin; 
share = MSRP.sum / tot;
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It`s not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be grateful if anyone could help me solve this problem.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2017 18:01:10 GMT</pubDate>
    <dc:creator>Matt3</dc:creator>
    <dc:date>2017-11-15T18:01:10Z</dc:date>
    <item>
      <title>Proc report share of total in across group</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-share-of-total-in-across-group/m-p/413757#M19866</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;working with proc report I am trying to get something like&amp;nbsp; share MSRP sum&amp;nbsp; across orgin and grouped by make and type in&amp;nbsp; total MSRP sum grouped by make and type.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i already have is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.cars;
column make type MSRP origin, (MSRP share) ;
define make / group;
define type / group;
define MSRP / analysis sum;
define origin / across order=data;
define MSRP/ analysis sum;
define share / computed ;
compute after type;
tot = MSRP.sum; 
endcomp;
compute after origin; 
share = MSRP.sum / tot;
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It`s not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be grateful if anyone could help me solve this problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 18:01:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-share-of-total-in-across-group/m-p/413757#M19866</guid>
      <dc:creator>Matt3</dc:creator>
      <dc:date>2017-11-15T18:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report share of total in across group</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-share-of-total-in-across-group/m-p/413766#M19867</link>
      <description>Hi:&lt;BR /&gt;  When you use a COMPUTE block on an item that is UNDER an ACROSS variable, then you must use absolute column numbers, as described on page 9-11 of this paper: &lt;A href="https://www.sas.com/content/dam/SAS/support/en/technical-papers/SAS388-2014.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/technical-papers/SAS388-2014.pdf&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Wed, 15 Nov 2017 18:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-share-of-total-in-across-group/m-p/413766#M19867</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-11-15T18:26:38Z</dc:date>
    </item>
  </channel>
</rss>

