<?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: How to put &amp;quot;Total&amp;quot; in a column of stabsummary in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/316169#M21305</link>
    <description>Hello Kurt, thank you so much I I had not the time tout do what you say to&lt;BR /&gt;me but it's ok for the PROC SQL . can you tell me how can I do this for&lt;BR /&gt;proc report ?&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
    <pubDate>Fri, 02 Dec 2016 09:08:22 GMT</pubDate>
    <dc:creator>peter2</dc:creator>
    <dc:date>2016-12-02T09:08:22Z</dc:date>
    <item>
      <title>How to put "Total" in a column of stabsummary</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315137#M21260</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I make a request of stabsummary and in the column of "SGE", the value "total" is missing. I have no value and i want t o put "Total".&lt;/P&gt;&lt;P&gt;I try to put the put format you can see in the code but it's KO.&lt;/P&gt;&lt;P&gt;Can you help me please?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;&lt;BR /&gt;PROC SQL;
   CREATE TABLE WORK.QUERY_FOR_STABSUMMARYTABLESQUERY(label="QUERY_FOR_STABSUMMARYTABLESQUERY_TESTSGE") AS 
   SELECT t1.SGE, 
          t1.COUNT_of_SGE_Sum FORMAT=NLNUM6. AS 'Volume traité en cumulé 'n, 
          t1.'COUNT_of_Cause Métier_Sum'n FORMAT=NLNUM6. AS 'Volume d''Autre cause en cumulé'n, 
          /* Taux dAutre Cause cumulé */
            (t1.'COUNT_of_Cause Métier_Sum'n/t1.COUNT_of_SGE_Sum) FORMAT=NLPCTI6. AS 'Taux dAutre Cause cumulé'n, 
          t1.'COUNT_of_Cause Commune1_Sum'n AS 'Volume traité en mensuel'n, 
          t1.'COUNT_of_Cause Commune_Sum'n AS 'Volume Autre Cause mensuel'n, 
          /* Taux mensuel */
            (t1.'COUNT_of_Cause Commune_Sum'n/t1.'COUNT_of_Cause Commune1_Sum'n) FORMAT=NLPCTI6. AS 'Taux mensuel'n
      FROM WORK.STABSUMMARYTABLESQUERY_TESTSGE t1;
	  proc format;
	  value mymissing " "="TOTAL"
	  run
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 10:21:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315137#M21260</guid>
      <dc:creator>peter2</dc:creator>
      <dc:date>2016-11-29T10:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to put "Total" in a column of stabsummary</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315152#M21266</link>
      <description>&lt;P&gt;proc format is a standalone procedure, so do not include it in the SQL.&lt;/P&gt;
&lt;P&gt;If you want to have a format to have an effect, you have to use it somewhere. At the moment, I don't see where you use mymissing. And it should be $mymissing, as it is applied to a string.&lt;/P&gt;
&lt;P&gt;So you have to&lt;/P&gt;
&lt;P&gt;- execute proc format before the SQL&lt;/P&gt;
&lt;P&gt;- check if your proc format has executed successfully&lt;/P&gt;
&lt;P&gt;- use the format&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 11:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315152#M21266</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-29T11:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to put "Total" in a column of stabsummary</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315160#M21267</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
	 
	value blankValue other='TOTAL';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;i try with that before proc sql now and nothing change...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my table is on this type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SGE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Volume&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Volume Cause&lt;/P&gt;&lt;P&gt;Paris&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;Marseille&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;500&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1500&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 300&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the blank i want to see Total&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont know if i have to use mymissing value or values Blankvalue&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 11:50:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315160#M21267</guid>
      <dc:creator>peter2</dc:creator>
      <dc:date>2016-11-29T11:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to put "Total" in a column of stabsummary</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315161#M21268</link>
      <description>&lt;P&gt;How did you assign your format to the variable?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 12:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315161#M21268</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-29T12:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to put "Total" in a column of stabsummary</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315165#M21269</link>
      <description>&lt;P&gt;And if you only want the value "Total" in SGE when SGE is empty, do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;coalesce(SGE,'Total') as SGE&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in the select of your SQL.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 12:33:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315165#M21269</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-29T12:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to put "Total" in a column of stabsummary</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315175#M21272</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Kurt, it's the stabsummary that make me the format for "All" automatically as you can see below.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ROC TABULATE
DATA=WORK.QUERY_TESTSGE

	OUT=WORK.STABSummaryTablesQUERY_TESTSGE(LABEL="Tables de synthèse pour WORK.QUERY_TESTSGE")
	
	;
	
	VAR COUNT_of_SGE "COUNT_of_Cause Métier"n "Part de la cause par SGE"n "COUNT_of_Cause Commune1"n "COUNT_of_Cause Commune"n "Poids de la cause sur mois"n;
	CLASS SGE /	ORDER=UNFORMATTED MISSING;
	TABLE /* Dimension de ligne */
SGE 
ALL={LABEL="Total"},&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;then i put the coalesce but&amp;nbsp;it give me nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;CREATE&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;TABLE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; WORK.QUERY_FOR_STABSUMMARYTABLESQUERY(label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"QUERY_FOR_STABSUMMARYTABLESQUERY_TESTSGE"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;AS&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SELECT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; t1.SGE coalesce(SGE,&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Total'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; SGE, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;t1.COUNT_of_SGE_Sum FORMAT=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;NLNUM6.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;AS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Volume traité en cumulé 'n&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;t1.'COUNT_of_Cause Métier_Sum'n FORMAT=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;NLNUM6.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;AS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Volume d''Autre cause en cumulé'n&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/* Taux dAutre Cause cumulé */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;(t1.'COUNT_of_Cause Métier_Sum'n/t1.COUNT_of_SGE_Sum) FORMAT=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;NLPCTI6.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;AS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Taux dAutre Cause cumulé'n&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;t1.'COUNT_of_Cause Commune1_Sum'n &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;AS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Volume traité en mensuel'n&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;t1.'COUNT_of_Cause Commune_Sum'n &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;AS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Volume Autre Cause mensuel'n&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/* Taux mensuel */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;(t1.'COUNT_of_Cause Commune_Sum'n/t1.'COUNT_of_Cause Commune1_Sum'n) FORMAT=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;NLPCTI6.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;AS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Taux mensuel'n&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;FROM&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; WORK.STABSUMMARYTABLESQUERY_TESTSGE t1;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 13:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315175#M21272</guid>
      <dc:creator>peter2</dc:creator>
      <dc:date>2016-11-29T13:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to put "Total" in a column of stabsummary</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315177#M21273</link>
      <description>&lt;P&gt;Then SGE is not empty, or the coalesce would work.&lt;/P&gt;
&lt;P&gt;Proof:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
length sge $10;
sge = 'Paris'; output;
sge = 'Marseille'; output;
sge = ' '; output;
run;

proc print data=have; run;

proc sql;
create table want as
select coalesce(sge,'Total') as sge
from have;
quit;

proc print data=want; run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;PRE&gt; Obs    sge

  1     Paris    
  2     Marseille
  3              


 Obs    sge

  1     Paris    
  2     Marseille
  3     Total    
&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Nov 2016 13:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315177#M21273</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-29T13:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to put "Total" in a column of stabsummary</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315180#M21274</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16120"&gt;@Kurt&lt;/a&gt;, sorry but i dont express correctly my problem.&lt;/P&gt;&lt;P&gt;What i talk about is very commun, it's a automatic request make by SAS guide when you use "synthetis table".&lt;/P&gt;&lt;P&gt;When you want a total ("all"), the table doesnt recognise the name "All". It make a white.&lt;/P&gt;&lt;P&gt;What you explain me is surely right for you but i dont understand.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 13:47:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315180#M21274</guid>
      <dc:creator>peter2</dc:creator>
      <dc:date>2016-11-29T13:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to put "Total" in a column of stabsummary</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315185#M21275</link>
      <description>&lt;P&gt;So your problem lies with the output of proc tabulate?&lt;/P&gt;
&lt;P&gt;In the displayed results, you see "Total" (or whatever comes in yout locale), but in the table SAS leaves the class variable empty for summary rows.&lt;/P&gt;
&lt;P&gt;(Makes sense, as there should be no misleading class value in a summary row).&lt;/P&gt;
&lt;P&gt;So I applied my method to set the class variable to a quick summary of sashelp.class:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate
  data=sashelp.class
  out=work.class_summary
;
var weight;
class sex / order=unformatted missing;
table
  sex all={label='Total'},
  weight * sum
;
run;

proc sql;
create table work.class_summary2 as
select
  coalesce(sex,'X') as sex,
  weight_sum
from work.class_summary
;
quit;

proc print data=work.class_summary2;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;PRE&gt; ----------------------------------------------
 |                               |   Weight   |
 |                               |------------|
 |                               |    Sum     |
 |-------------------------------+------------|
 |Sex                            |            |
 |-------------------------------|            |
 |F                              |      811.00|
 |-------------------------------+------------|
 |M                              |     1089.50|
 |-------------------------------+------------|
 |Total                          |     1900.50|
 ----------------------------------------------
                                               

                           Weight_
             Obs    sex      Sum

              1      F       811.0
              2      M      1089.5
              3      X      1900.5
&lt;/PRE&gt;
&lt;P&gt;I could not use a longer string, as sex is just $1, but it should illustrate the mechanism.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 14:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/315185#M21275</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-29T14:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to put "Total" in a column of stabsummary</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/316169#M21305</link>
      <description>Hello Kurt, thank you so much I I had not the time tout do what you say to&lt;BR /&gt;me but it's ok for the PROC SQL . can you tell me how can I do this for&lt;BR /&gt;proc report ?&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Fri, 02 Dec 2016 09:08:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/316169#M21305</guid>
      <dc:creator>peter2</dc:creator>
      <dc:date>2016-12-02T09:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to put "Total" in a column of stabsummary</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/316173#M21306</link>
      <description>&lt;P&gt;Take a look at &lt;A href="http://www2.sas.com/proceedings/forum2007/242-2007.pdf" target="_blank"&gt;Paper: 242-2007: Advanced PROC REPORT-Doing More in the Compute Block&lt;/A&gt;, namely the section "CHANGING GROUPING VARIABLE VALUES ON SUMMARY LINES".&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 09:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/316173#M21306</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-02T09:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to put "Total" in a column of stabsummary</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/316175#M21307</link>
      <description>Thank you I will read it later&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Fri, 02 Dec 2016 09:20:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-put-quot-Total-quot-in-a-column-of-stabsummary/m-p/316175#M21307</guid>
      <dc:creator>peter2</dc:creator>
      <dc:date>2016-12-02T09:20:22Z</dc:date>
    </item>
  </channel>
</rss>

