<?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: Creation of subtotals and a total line with the proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creation-of-subtotals-and-a-total-line-with-the-proc-report/m-p/832465#M329046</link>
    <description>&lt;P&gt;Please help us. Can you do some basic translating for us? What variable is&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;'Answer message' and what variable is&amp;nbsp;'successful call' and what are the variable names you want to sum?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Sep 2022 11:12:43 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-09-09T11:12:43Z</dc:date>
    <item>
      <title>Creation of subtotals and a total line with the proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-of-subtotals-and-a-total-line-with-the-proc-report/m-p/832460#M329042</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data intiale;
input numClient @@ CO_CODE $ type_appel $ nb_appels @@  revenu @@ pct_rdv @@;
datalines;
21225 A abouti 1 20 2
55555 D repondeur 1 5 1
55558 C repondeur 6 2 3
21223 A abouti 1 1 4
55554 D abouti 1 3 1
55528 C repondeur 6 4 0
21325 A abouti 1 0 2
51555 E repondeur 1 10 1
50558 C coupure 6 2 3
;
run;

PROC REPORT DATA=intiale ;
COLUMNS CO_CODE type_appel nb_appels revenu pct_rdv;
DEFINE type_appel / display;
DEFINE co_code / GROUP ;
COMPUTE AFTER; type_appel='TOTAL'; endcomp;
RUN ;   &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="fr" data-phrase-index="0" data-number-of-phrases="11"&gt;&lt;SPAN class="Q4iAWc"&gt;Hello,&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="fr" data-phrase-index="2" data-number-of-phrases="11"&gt;&lt;SPAN class="Q4iAWc"&gt;After a lot of research, I couldn't find the solution to my problem.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="fr" data-phrase-index="4" data-number-of-phrases="11"&gt;&lt;SPAN class="Q4iAWc"&gt;I would like to add at the end of my proc report two lines representing the subtotal for the 'successful call' modality and for the 'Answer message' modality which would display: 1- The sum of the number of calls&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="fr" data-phrase-index="6" data-number-of-phrases="11"&gt;&lt;SPAN class="Q4iAWc"&gt;2- The sum of the number of applications.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="fr" data-phrase-index="8" data-number-of-phrases="11"&gt;&lt;SPAN class="Q4iAWc"&gt;Can you help me please ?&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="fr" data-phrase-index="10" data-number-of-phrases="11"&gt;&lt;SPAN class="Q4iAWc"&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 10:31:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-of-subtotals-and-a-total-line-with-the-proc-report/m-p/832460#M329042</guid>
      <dc:creator>Gick</dc:creator>
      <dc:date>2022-09-09T10:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creation of subtotals and a total line with the proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-of-subtotals-and-a-total-line-with-the-proc-report/m-p/832465#M329046</link>
      <description>&lt;P&gt;Please help us. Can you do some basic translating for us? What variable is&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;'Answer message' and what variable is&amp;nbsp;'successful call' and what are the variable names you want to sum?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 11:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-of-subtotals-and-a-total-line-with-the-proc-report/m-p/832465#M329046</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-09T11:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creation of subtotals and a total line with the proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-of-subtotals-and-a-total-line-with-the-proc-report/m-p/834050#M329745</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;These are the variables : nb_appels and pct_rdv</description>
      <pubDate>Mon, 19 Sep 2022 08:55:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-of-subtotals-and-a-total-line-with-the-proc-report/m-p/834050#M329745</guid>
      <dc:creator>Gick</dc:creator>
      <dc:date>2022-09-19T08:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creation of subtotals and a total line with the proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-of-subtotals-and-a-total-line-with-the-proc-report/m-p/834054#M329746</link>
      <description>&lt;P&gt;Sorry, I asked for 3 variable names, and you only gave us two names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I asked for other information, specifically which are the category variables and which is the variable to be summed.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 11:21:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-of-subtotals-and-a-total-line-with-the-proc-report/m-p/834054#M329746</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-19T11:21:12Z</dc:date>
    </item>
  </channel>
</rss>

