<?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: summarize proc report as sum and averages in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/summarize-proc-report-as-sum-and-averages/m-p/521972#M4323</link>
    <description>&lt;P&gt;If ind that if you first do the math (average or totals or percentages) in PROC SUMMARY, then PROC REPORT works very nicely and easily.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Dec 2018 16:45:05 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-12-17T16:45:05Z</dc:date>
    <item>
      <title>summarize proc report as sum and averages</title>
      <link>https://communities.sas.com/t5/New-SAS-User/summarize-proc-report-as-sum-and-averages/m-p/521965#M4319</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a report that i've ran using Proc Report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to summarize the data which i have done using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rbreak after / dol skip summarize;&lt;/P&gt;&lt;P&gt;compute after;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column='TOTAL';&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now this sums everything however, i have some columns that are average %s.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to sum the columns with numbers but average the columns with the average percentages, or atleast blank them out, as at the moment the sum is showing 5000%+ which just looks well, dirty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 16:21:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/summarize-proc-report-as-sum-and-averages/m-p/521965#M4319</guid>
      <dc:creator>MattehWoo</dc:creator>
      <dc:date>2018-12-17T16:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: summarize proc report as sum and averages</title>
      <link>https://communities.sas.com/t5/New-SAS-User/summarize-proc-report-as-sum-and-averages/m-p/521968#M4321</link>
      <description>&lt;P&gt;Incomplete code without data may lead to incomplete answers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could at least show your entire current code. Best would be to include some example data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Averaging rates, such as percentages, is seldom appropriate.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 16:36:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/summarize-proc-report-as-sum-and-averages/m-p/521968#M4321</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-12-17T16:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: summarize proc report as sum and averages</title>
      <link>https://communities.sas.com/t5/New-SAS-User/summarize-proc-report-as-sum-and-averages/m-p/521969#M4322</link>
      <description>Hi:&lt;BR /&gt;  Many things are possible with PROC REPORT. Here's a paper on BREAK processing &lt;A href="https://support.sas.com/resources/papers/proceedings17/SAS0431-2017.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings17/SAS0431-2017.pdf&lt;/A&gt; that may show you some techniques. And while this is a silly example &lt;A href="http://support.sas.com/kb/38/776.html" target="_blank"&gt;http://support.sas.com/kb/38/776.html&lt;/A&gt; that changes age, height and weight variables to have a dollar format, it does show how you can use CALL DEFINE to change a format. &lt;BR /&gt;&lt;BR /&gt;One reason you might be getting inflated percent numbers in the thousands is that if you are using the PERCENT format (which we can't see because you're not showing all your code) be aware that the PERCENT format does an automatic multiply by 100.&lt;BR /&gt;&lt;BR /&gt;  Your code snippet is interesting, but not helpful. You don't show any data. Or what ODS destination you're interested in DOL and SKIP are LISTING only options that will be ignored by ODS HTML, ODS RTF, ODS PDF and ODS EXCEL.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Dec 2018 16:37:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/summarize-proc-report-as-sum-and-averages/m-p/521969#M4322</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-12-17T16:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: summarize proc report as sum and averages</title>
      <link>https://communities.sas.com/t5/New-SAS-User/summarize-proc-report-as-sum-and-averages/m-p/521972#M4323</link>
      <description>&lt;P&gt;If ind that if you first do the math (average or totals or percentages) in PROC SUMMARY, then PROC REPORT works very nicely and easily.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 16:45:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/summarize-proc-report-as-sum-and-averages/m-p/521972#M4323</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-12-17T16:45:05Z</dc:date>
    </item>
  </channel>
</rss>

