<?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: Tabulate Statistics in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Tabulate-Statistics/m-p/26566#M6080</link>
    <description>Hi:&lt;BR /&gt;
  TABULATE will not automatically calculate "new" columns, such as your difference or variance. PROC REPORT has a compute block which does allow REPORT (on the other hand) to calculate new report items that are not in the original input dataset. So your choices are:&lt;BR /&gt;
1) precalculate the variance in a dataset (which may mean you need to restructure your dataset in order to  calculate the variance and then pass the new dataset to TABULATE &lt;BR /&gt;
or &lt;BR /&gt;
2) switch to PROC REPORT and investigate ACROSS usage for report items and using a COMPUTE block to calculate new report items.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Tue, 25 May 2010 11:35:11 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-05-25T11:35:11Z</dc:date>
    <item>
      <title>Tabulate Statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Tabulate-Statistics/m-p/26565#M6079</link>
      <description>i have created a tabulate with two dfferent dates' data as values (example below):&lt;BR /&gt;
sumary data:&lt;BR /&gt;
DPD  Date           _freq_&lt;BR /&gt;
1       20/05/2010     500&lt;BR /&gt;
30     20/05/2010     500&lt;BR /&gt;
60     20/05/2010     500&lt;BR /&gt;
1       21/05/2010     400&lt;BR /&gt;
30     21/05/2010     400&lt;BR /&gt;
60     21/05/2010     400&lt;BR /&gt;
&lt;BR /&gt;
tabulate result&lt;BR /&gt;
DPD   20/05/2010   21/05/2010&lt;BR /&gt;
1                   500             400&lt;BR /&gt;
30                 500             400&lt;BR /&gt;
60                 500             400&lt;BR /&gt;
&lt;BR /&gt;
code&lt;BR /&gt;
PROC TABULATE DATA= jackie.oview_201 format=comma13.;&lt;BR /&gt;
CLASS DPD DATE ;&lt;BR /&gt;
VAR _freq_;&lt;BR /&gt;
TABLE DPD,Date*_freq_;&lt;BR /&gt;
TITLE 'Late Stage Overview Number';&lt;BR /&gt;
label _freq_ =Number;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
how do i get a variance between the two figures if it is a result of the tabulate?&lt;BR /&gt;
Desired Result:&lt;BR /&gt;
DPD   20/05/2010   21/05/2010   Variance &lt;BR /&gt;
1                   500             400           100&lt;BR /&gt;
30                 500             400           100    &lt;BR /&gt;
60                 500             400           100&lt;BR /&gt;
&lt;BR /&gt;
also, i want my ods output in excel to reflect the data with a white background&lt;BR /&gt;
(i already have the headings under control).</description>
      <pubDate>Mon, 24 May 2010 11:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Tabulate-Statistics/m-p/26565#M6079</guid>
      <dc:creator>Jackie_Stanbank</dc:creator>
      <dc:date>2010-05-24T11:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate Statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Tabulate-Statistics/m-p/26566#M6080</link>
      <description>Hi:&lt;BR /&gt;
  TABULATE will not automatically calculate "new" columns, such as your difference or variance. PROC REPORT has a compute block which does allow REPORT (on the other hand) to calculate new report items that are not in the original input dataset. So your choices are:&lt;BR /&gt;
1) precalculate the variance in a dataset (which may mean you need to restructure your dataset in order to  calculate the variance and then pass the new dataset to TABULATE &lt;BR /&gt;
or &lt;BR /&gt;
2) switch to PROC REPORT and investigate ACROSS usage for report items and using a COMPUTE block to calculate new report items.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 25 May 2010 11:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Tabulate-Statistics/m-p/26566#M6080</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-05-25T11:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate Statistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Tabulate-Statistics/m-p/26567#M6081</link>
      <description>Jackie&lt;BR /&gt;
in the "ODS and Base Reporting" SAS discussion forum at &lt;A href="http://support.sas.com/forums/forum.jspa?forumID=6" target="_blank"&gt;http://support.sas.com/forums/forum.jspa?forumID=6&lt;/A&gt; you'll find discussions describing how to have sas write formulas (rather than data) into excel, where that variance could be calculated. It is a feature that can be defined for the tagattr within a style element for the ods destination tagsets.excelxp.&lt;BR /&gt;
 Here &lt;A href="http://support.sas.com/forums/click.jspa?searchID=152829&amp;amp;messageID=10116" target="_blank"&gt;http://support.sas.com/forums/click.jspa?searchID=152829&amp;amp;messageID=10116&lt;/A&gt; is a message posted by Cynthia that calculates variance between two columns in excel &lt;BR /&gt;
hope you'll give it a try&lt;BR /&gt;
 &lt;BR /&gt;
peterC</description>
      <pubDate>Mon, 31 May 2010 09:15:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Tabulate-Statistics/m-p/26567#M6081</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-05-31T09:15:13Z</dc:date>
    </item>
  </channel>
</rss>

