<?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: Proc Tabulate PctSum demominator error in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-PctSum-demominator-error/m-p/289341#M59627</link>
    <description>&lt;P&gt;Here's the change I would try.&amp;nbsp; You now have this line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;* demandafterdisc=' ' * f=dollar12. * sum=' ' demandafterdisc=' '*pctsum&amp;lt;status all&amp;gt;),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;* &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt;demandafterdisc=' ' * f=dollar12. * sum=' ' pctsum&amp;lt;status all&amp;gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As it stands now, the space before the second DEMANDAFTERDISC= means that the only classification variable being used is YRMON.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This recommendation untested, as you might imagine.&amp;nbsp; So let's see what happens.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2016 19:13:50 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2016-08-03T19:13:50Z</dc:date>
    <item>
      <title>Proc Tabulate PctSum demominator error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-PctSum-demominator-error/m-p/289334#M59626</link>
      <description>&lt;P&gt;&amp;nbsp;I am having trouble calculating the % of total for the 2nd level in my nesting. &amp;nbsp;I get the error "PctSum base is not in table. A PctSum crossing has no denominator"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc tabulate data=c2 missing;&lt;BR /&gt;class yrmon status item_status_at_order daysonsale;&lt;BR /&gt;var demandafterdisc;&lt;BR /&gt;table yrmon='' * ((status='' all=' ')&lt;BR /&gt;* demandafterdisc=' ' * f=dollar12. * sum=' ' demandafterdisc=' '*pctsum&amp;lt;status all&amp;gt;),&lt;BR /&gt;item_status_at_order=' ' all='Total' daysonsale=' ' all='Total';&lt;BR /&gt;format daysonsale sale. item_status_at_order $cmat.;&lt;BR /&gt;title1 ' ';&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 19:03:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-PctSum-demominator-error/m-p/289334#M59626</guid>
      <dc:creator>TMiles</dc:creator>
      <dc:date>2016-08-03T19:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate PctSum demominator error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-PctSum-demominator-error/m-p/289341#M59627</link>
      <description>&lt;P&gt;Here's the change I would try.&amp;nbsp; You now have this line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;* demandafterdisc=' ' * f=dollar12. * sum=' ' demandafterdisc=' '*pctsum&amp;lt;status all&amp;gt;),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;* &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt;demandafterdisc=' ' * f=dollar12. * sum=' ' pctsum&amp;lt;status all&amp;gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As it stands now, the space before the second DEMANDAFTERDISC= means that the only classification variable being used is YRMON.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This recommendation untested, as you might imagine.&amp;nbsp; So let's see what happens.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 19:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-PctSum-demominator-error/m-p/289341#M59627</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-08-03T19:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate PctSum demominator error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-PctSum-demominator-error/m-p/289343#M59628</link>
      <description>&lt;P&gt;new error &amp;nbsp; - &amp;nbsp;maybe i'll just move the table without the % to EXCEL and calc...&lt;/P&gt;&lt;P&gt;ERROR: Statistic other than N was requested without analysis variable in the following nesting : yrmon * status * PctSum * item_status_at_order.&lt;BR /&gt;ERROR: Statistic other than N was requested without analysis variable in the following nesting : yrmon * status * PctSum * All.&lt;BR /&gt;ERROR: Statistic other than N was requested without analysis variable in the following nesting : yrmon * status * PctSum * daysonsale.&lt;BR /&gt;ERROR: Statistic other than N was requested without analysis variable in the following nesting : yrmon * status * PctSum * All.&lt;BR /&gt;ERROR: Statistic other than N was requested without analysis variable in the following nesting : yrmon * All * PctSum * item_status_at_order.&lt;BR /&gt;ERROR: Statistic other than N was requested without analysis variable in the following nesting : yrmon * All * PctSum * All.&lt;BR /&gt;ERROR: Statistic other than N was requested without analysis variable in the following nesting : yrmon * All * PctSum * daysonsale.&lt;BR /&gt;ERROR: Statistic other than N was requested without analysis variable in the following nesting : yrmon * All * PctSum * All.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 19:16:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-PctSum-demominator-error/m-p/289343#M59628</guid>
      <dc:creator>TMiles</dc:creator>
      <dc:date>2016-08-03T19:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate PctSum demominator error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-PctSum-demominator-error/m-p/289353#M59630</link>
      <description>&lt;P&gt;May want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;* &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt;demandafterdisc=' ' * f=dollar12. * &lt;STRONG&gt;&lt;FONT color="#008000"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt;sum=' ' pctsum&amp;lt;status all&amp;gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;) &lt;/FONT&gt;&lt;FONT color="#ff0000"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;),&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 19:50:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-PctSum-demominator-error/m-p/289353#M59630</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-03T19:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate PctSum demominator error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-PctSum-demominator-error/m-p/289360#M59632</link>
      <description>I was able to figure it after many tries -see below:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc tabulate data=c2 missing;&lt;BR /&gt;class yrmon status item_status_at_order daysonsale;&lt;BR /&gt;var demandafterdisc;&lt;BR /&gt;table (yrmon='' * (status='' all=' ')&lt;BR /&gt;* demandafterdisc=' ' * (sum='Sales'*f=dollar12. pctsum&amp;lt;status all&amp;gt;='% of Total'*f=comma6.2)),&lt;BR /&gt;item_status_at_order=' ' all='Total' daysonsale=' ' all='Total';&lt;BR /&gt;format daysonsale sale. item_status_at_order $cmat.;&lt;BR /&gt;title1 ' ';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Aug 2016 20:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Tabulate-PctSum-demominator-error/m-p/289360#M59632</guid>
      <dc:creator>TMiles</dc:creator>
      <dc:date>2016-08-03T20:29:32Z</dc:date>
    </item>
  </channel>
</rss>

