<?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 Calculate field with Tabulate in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Calculate-field-with-Tabulate/m-p/137050#M3995</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to use the tabulate procedure to calculate a value other than one of the default statistics? I would like to calculate the change from the base year.&amp;nbsp; Ideally I would like to calculate some values after the all line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way to do this is to create a second table and prefill the second table with summary data from the data layer, however the solution is not a clean as calculating inside of SAS.&lt;/P&gt;&lt;P&gt;I would like to create something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Year&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;1&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Total&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;4347&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;4470&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;4481&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;% Growth Over Prior Year&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;2.80%&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;0.20%&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Cumulative Growth Since base year&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;2.80%&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;3.10%&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Dec 2014 21:32:00 GMT</pubDate>
    <dc:creator>DavidPhillips2</dc:creator>
    <dc:date>2014-12-04T21:32:00Z</dc:date>
    <item>
      <title>Calculate field with Tabulate</title>
      <link>https://communities.sas.com/t5/Developers/Calculate-field-with-Tabulate/m-p/137050#M3995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to use the tabulate procedure to calculate a value other than one of the default statistics? I would like to calculate the change from the base year.&amp;nbsp; Ideally I would like to calculate some values after the all line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way to do this is to create a second table and prefill the second table with summary data from the data layer, however the solution is not a clean as calculating inside of SAS.&lt;/P&gt;&lt;P&gt;I would like to create something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Year&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;1&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Total&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;4347&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;4470&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;4481&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;% Growth Over Prior Year&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;2.80%&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;0.20%&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Cumulative Growth Since base year&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;2.80%&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;3.10%&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 21:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Calculate-field-with-Tabulate/m-p/137050#M3995</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2014-12-04T21:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate field with Tabulate</title>
      <link>https://communities.sas.com/t5/Developers/Calculate-field-with-Tabulate/m-p/137051#M3996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc report?&amp;nbsp; &lt;A href="http://support.sas.com/documentation/cdl/en/proc/67327/HTML/default/viewer.htm#n1dz7jdasx5t56n1rmlx346dyk6n.htm" title="http://support.sas.com/documentation/cdl/en/proc/67327/HTML/default/viewer.htm#n1dz7jdasx5t56n1rmlx346dyk6n.htm"&gt;Base SAS(R) 9.4 Procedures Guide, Third Edition&lt;/A&gt; is his a compute block&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 21:46:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Calculate-field-with-Tabulate/m-p/137051#M3996</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-12-04T21:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate field with Tabulate</title>
      <link>https://communities.sas.com/t5/Developers/Calculate-field-with-Tabulate/m-p/137052#M3997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would strongly prefer to stay with tabulate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 22:10:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Calculate-field-with-Tabulate/m-p/137052#M3997</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2014-12-04T22:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate field with Tabulate</title>
      <link>https://communities.sas.com/t5/Developers/Calculate-field-with-Tabulate/m-p/137053#M3998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not currently a feature in Proc Tabulate.&lt;/P&gt;&lt;P&gt;I often pre-summarize data and use tabulate to display the values but depending on what you are doing that approach might be more work than Proc Report.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 22:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Calculate-field-with-Tabulate/m-p/137053#M3998</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-12-04T22:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate field with Tabulate</title>
      <link>https://communities.sas.com/t5/Developers/Calculate-field-with-Tabulate/m-p/137054#M3999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; TABULATE does not allow you to compute your own (extra) summary lines at the bottom of the report. ALL is what produces the summary line that you show as TOTAL and the other 2 lines would not normally be possible with TABULATE unless you faked out the data and made your own "extra" observations. PROC REPORT is more flexible and more powerful in allowing you to customize and add extra break lines to the report. As Jaap explained, it is the perfect job for a COMPUTE block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Dec 2014 21:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Calculate-field-with-Tabulate/m-p/137054#M3999</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-12-06T21:25:08Z</dc:date>
    </item>
  </channel>
</rss>

