<?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 Report summary statisistics in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-summary-statisistics/m-p/422393#M68045</link>
    <description>&lt;P&gt;PROC TABULATE may be what you're looking for.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2017 17:36:42 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-12-19T17:36:42Z</dc:date>
    <item>
      <title>Proc Report summary statisistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-summary-statisistics/m-p/422250#M68025</link>
      <description>&lt;P&gt;I am trying to create a report using proc report where in I have grouped by a variable named probability and inside the groupped variable is another variable Account_name which&amp;nbsp;is a character variable. I want to the frequency of this variable for each group of probability&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg-&lt;/P&gt;&lt;P&gt;probability Accounts&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;0.9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;/P&gt;&lt;P&gt;0.8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6&lt;/P&gt;&lt;P&gt;and so on, but i am not able to do that because it displays all the account_Names inside each probability rather than the freuency/count of the column&lt;/P&gt;&lt;P&gt;what i am getting is&lt;/P&gt;&lt;P&gt;probability&amp;nbsp; accounts&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LG&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; max&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LF&lt;/P&gt;&lt;P&gt;0.9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GH&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PL&lt;/P&gt;&lt;P&gt;and so on&lt;/P&gt;&lt;P&gt;following is the code I used-&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data= c1.o;
columns probability____  Account_Name Total_Media_Value Forecasted_Budget;
define probability____ / group order descending 'Probability';
define Account_Name/ n 'Accounts';
define Total_Media_Value /sum 'Total_Budget';
define Forecasted_Budget/ computed 'Forecasted Budget';
compute Forecasted_Budget;
Forecasted_Budget= (Total_Media_Value.sum)*(probability____);
endcomp;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in the define Account_Name line i have used display and analysis as well but no use&amp;nbsp;&lt;/P&gt;&lt;P&gt;i get the error&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: Account_Name is an ANALYSIS variable but not numeric.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 11:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-summary-statisistics/m-p/422250#M68025</guid>
      <dc:creator>riya275</dc:creator>
      <dc:date>2017-12-19T11:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report summary statisistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-summary-statisistics/m-p/422261#M68026</link>
      <description>&lt;P&gt;Do a proc freq or means before getting to the proc report.&amp;nbsp; Report is a reporting procedure, not a freq/means procedure (even though it can do some basic stuff).&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 13:04:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-summary-statisistics/m-p/422261#M68026</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-12-19T13:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report summary statisistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-summary-statisistics/m-p/422348#M68037</link>
      <description>&lt;P&gt;Is the issue that the column is of character format?Because for numerical columns it can calculate a lot of statistics even percentiles.And how do i combine the freq table with the report table?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 16:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-summary-statisistics/m-p/422348#M68037</guid>
      <dc:creator>riya275</dc:creator>
      <dc:date>2017-12-19T16:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report summary statisistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-summary-statisistics/m-p/422393#M68045</link>
      <description>&lt;P&gt;PROC TABULATE may be what you're looking for.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 17:36:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-summary-statisistics/m-p/422393#M68045</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-12-19T17:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report summary statisistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-summary-statisistics/m-p/422398#M68046</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Do a proc freq or means before getting to the proc report.&amp;nbsp; Report is a reporting procedure, not a freq/means procedure (even though it can do some basic stuff).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I agree with this. Getting the data computed properly before you run PROC REPORT will make your life sooooooo much simpler.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 17:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-summary-statisistics/m-p/422398#M68046</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-12-19T17:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report summary statisistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-summary-statisistics/m-p/422448#M68047</link>
      <description>&lt;P&gt;issue is proc freq wont work if done before. How do you suggest that would solve the problem?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 19:18:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-summary-statisistics/m-p/422448#M68047</guid>
      <dc:creator>riya275</dc:creator>
      <dc:date>2017-12-19T19:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report summary statisistics</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-summary-statisistics/m-p/422474#M68048</link>
      <description>&lt;P&gt;PROC SUMMARY will give you frequencies in a dataset, it can sum the Total_Media_Value, and so on. If you need to compute percentages from those frequencies this is also done easily in a SAS data step. I find it much easier to do manipulations in a SAS data step than getting the math correct&amp;nbsp;in PROC REPORT.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 20:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-summary-statisistics/m-p/422474#M68048</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-12-19T20:30:32Z</dc:date>
    </item>
  </channel>
</rss>

