<?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 - Sum in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-Tabulate-Sum/m-p/41487#M5639</link>
    <description>That worked! Thank you.&lt;BR /&gt;
&lt;BR /&gt;
Once I add the totals to the bottom, how do I specify which I want summed verses a just showing a percentage?&lt;BR /&gt;
 &lt;BR /&gt;
For example: The tran_amt needs to be summed, but the APR and offer_term do not(they are percentages). The all step I am using now sums all 3 which leaves me with large % totals. &lt;BR /&gt;
&lt;BR /&gt;
Any way to not have all 3 sum?</description>
    <pubDate>Mon, 08 Jun 2009 15:15:29 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-06-08T15:15:29Z</dc:date>
    <item>
      <title>PROC Tabulate - Sum</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-Tabulate-Sum/m-p/41484#M5636</link>
      <description>I have the following code for proc tabulate:&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.ExcelXP  style=sasweb2 file='c:\PC_SAS\Balance_Generation_Final.xls'&lt;BR /&gt;
options( default_column_width='12, 12, 12, 12, 12'&lt;BR /&gt;
sheet_interval='none' sheet_name='Total Summary' frozen_rowheaders='yes' rules='yes');&lt;BR /&gt;
proc tabulate data=bal_gen_calc order=data;&lt;BR /&gt;
where _type_ in (0,29); title;&lt;BR /&gt;
     class      campaign_type term rate dte;&lt;BR /&gt;
     classlev  Dte;&lt;BR /&gt;
     var         tran_amt apr offer_term;&lt;BR /&gt;
    table       Campaign_Type,&lt;BR /&gt;
           term  *rate  *(tran_amt*f=dollar15.  apr*f=percent10.2 offer_term)*  SUM='', &lt;BR /&gt;
           Dte  / box={label=_PAGE_ s=[background=white]};&lt;BR /&gt;
    label tran_amt='Balances';&lt;BR /&gt;
run;quit;&lt;BR /&gt;
&lt;BR /&gt;
I would like to see the  grand totals at the bottom of the table for tran_amt,apr,offer_term. Any ideas on how to do that? APR is a percentage.</description>
      <pubDate>Fri, 05 Jun 2009 16:08:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-Tabulate-Sum/m-p/41484#M5636</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-05T16:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate - Sum</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-Tabulate-Sum/m-p/41485#M5637</link>
      <description>please could you provide a small sample file like the file&lt;BR /&gt;
  data=bal_gen_calc</description>
      <pubDate>Fri, 05 Jun 2009 19:03:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-Tabulate-Sum/m-p/41485#M5637</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-06-05T19:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate - Sum</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-Tabulate-Sum/m-p/41486#M5638</link>
      <description>Hi,&lt;BR /&gt;
Generally, grand totals in PROC TABULATE come through the use of the ALL universal class variable. So I might expect to see something like this in your TABLE statement:&lt;BR /&gt;
[pre]&lt;BR /&gt;
table Campaign_Type,&lt;BR /&gt;
      term *rate *(tran_amt*f=dollar15. apr*f=percent10.2 offer_term)* SUM='' all*(tran_amt*f=dollar15. apr*f=percent10.2 offer_term)* SUM='', &lt;BR /&gt;
      Dte all&lt;BR /&gt;
   / box={label=_PAGE_ s=[background=white]};&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
  You could even have Campaign_Type ALL, in your TABLE statement, but you said you wanted the grand totals at the bottom of each table, not at the bottom of each page dimension.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 05 Jun 2009 21:30:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-Tabulate-Sum/m-p/41486#M5638</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-06-05T21:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate - Sum</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-Tabulate-Sum/m-p/41487#M5639</link>
      <description>That worked! Thank you.&lt;BR /&gt;
&lt;BR /&gt;
Once I add the totals to the bottom, how do I specify which I want summed verses a just showing a percentage?&lt;BR /&gt;
 &lt;BR /&gt;
For example: The tran_amt needs to be summed, but the APR and offer_term do not(they are percentages). The all step I am using now sums all 3 which leaves me with large % totals. &lt;BR /&gt;
&lt;BR /&gt;
Any way to not have all 3 sum?</description>
      <pubDate>Mon, 08 Jun 2009 15:15:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-Tabulate-Sum/m-p/41487#M5639</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-08T15:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate - Sum</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-Tabulate-Sum/m-p/41488#M5640</link>
      <description>Hi:&lt;BR /&gt;
  Take apr and offer_term out of the all*() parentheses and just leave tran_amt inside the parentheses.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 08 Jun 2009 16:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-Tabulate-Sum/m-p/41488#M5640</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-06-08T16:57:03Z</dc:date>
    </item>
  </channel>
</rss>

