<?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 average under bottomline total possible?? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-average-under-bottomline-total-possible/m-p/562385#M157535</link>
    <description>&lt;P&gt;Please post code in a code box.&lt;/P&gt;
&lt;P&gt;Please post code that actually runs if it should (your Proc tabulate statement has multiple missing elements especially DATA=)&lt;/P&gt;
&lt;P&gt;If the question relates to calculations please do not include lots of style overrides and such. It makes it harder to reduce the to the basic question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With Tabulate you are basically requesting statistics for either a row group or column. If you have statistics in the column, as SUM in this case&amp;nbsp;, you cannot cross&amp;nbsp;the SUM statistic&amp;nbsp;with a MEAN for a single row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want to use Proc Report as you could use a "compute after".&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 18:40:38 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-05-29T18:40:38Z</dc:date>
    <item>
      <title>proc tabulate average under bottomline total possible??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-average-under-bottomline-total-possible/m-p/562319#M157517</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; cars(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;keep&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= make type msrp cnt);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sashelp.cars;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; make in ('Acura','BMW');&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cnt=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;tabulate&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; =cars &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;order&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10.&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;S&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=[cellwidth=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;80&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;];&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Class&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; make type;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Var&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; msrp cnt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; make='' all={label='Grand Total' &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;S&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=[background = lightblue cellwidth=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;80&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;]} *[&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;STYLE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=[Font_Weight=BOLD]],&lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/*row*/&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;type*(cnt=''*sum='Count of Units' &lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/*column*/&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/*msrp=''*sum='MSRP$' *f=dollar16.2 /*msrp='' *colpctSum='% of MSRP'*f=number8.2*/&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ) &lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/*column*/&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;all={ label='Total' &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;S&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=[background = lightblue]} *[&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;STYLE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=[Font_Weight=BOLD]] &lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/*row total*/&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;*(cnt =' '*sum='Total Exceptions Units' msrp =' '*sum='Total MSRP Dollars$' *f=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;dollar16.2&lt;/FONT&gt; &lt;FONT color="#008000" face="Courier New" size="3"&gt;/*row total detail*/&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cnt=''*colpctn='Total % in Units' *f=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;number8.2&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; msrp=''*colpctSum='Total % in Dollars' *f=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;number8.2&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/*row total detail*/&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;/ &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;box&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;='Car Summary';&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;keylabel&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;n&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;='';&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Is it possible to enter a statistic that captures the mean avg under the bottomline grand total?&amp;nbsp; So for example for SUV the mean avg would be 1.5&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 15:28:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-average-under-bottomline-total-possible/m-p/562319#M157517</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2019-05-29T15:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate average under bottomline total possible??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-average-under-bottomline-total-possible/m-p/562385#M157535</link>
      <description>&lt;P&gt;Please post code in a code box.&lt;/P&gt;
&lt;P&gt;Please post code that actually runs if it should (your Proc tabulate statement has multiple missing elements especially DATA=)&lt;/P&gt;
&lt;P&gt;If the question relates to calculations please do not include lots of style overrides and such. It makes it harder to reduce the to the basic question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With Tabulate you are basically requesting statistics for either a row group or column. If you have statistics in the column, as SUM in this case&amp;nbsp;, you cannot cross&amp;nbsp;the SUM statistic&amp;nbsp;with a MEAN for a single row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want to use Proc Report as you could use a "compute after".&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 18:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-tabulate-average-under-bottomline-total-possible/m-p/562385#M157535</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-29T18:40:38Z</dc:date>
    </item>
  </channel>
</rss>

