<?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 tabulate -Add title above few columns in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-Add-title-above-few-columns/m-p/534679#M146753</link>
    <description>&lt;P&gt;Does the reply above answer your question?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2019 01:58:40 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2019-02-12T01:58:40Z</dc:date>
    <item>
      <title>Proc tabulate -Add title above few columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-Add-title-above-few-columns/m-p/534254#M146576</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;In the following example to proc tabulate I want to do the following:&lt;BR /&gt;1- Add a title '2019' &amp;nbsp;above SUM(X1) &amp;nbsp;and PCTSUM(X1)&lt;BR /&gt;1- Add a title '2018' &amp;nbsp;above SUM(X2) &amp;nbsp;and PCTSUM(X2)&lt;BR /&gt;Can anyone edit the code in order to get it please?&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;Data RawData;
Input ID Z X1 X2;
cards;
1 1 10 20
2 1 15 30
3 1 20 40
4 1 25 50
5 2 30 60
6 2 35 70
7 2 40 80
8 2 45 90
9 2 50 100
10 2 55 110
;
run;


proc tabulate data=RawData f=comma12.1;  
class Z ;  
var  X1   X2 ;  
table Z='' ALL, X1=''*(n='Customers'* f=comma.
                       pctn='%Customers'*f=pctfmt. 
                       SUM='SumSales2019' 
                       PCTSUM='%SumSales2019'*f=pctfmt.)
                 X2=''*( SUM='SumSales2018' 
                         PCTSUM='%SumSales2018'*f=pctfmt.);									    

run; 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 10 Feb 2019 05:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-Add-title-above-few-columns/m-p/534254#M146576</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-02-10T05:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate -Add title above few columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-Add-title-above-few-columns/m-p/534268#M146584</link>
      <description>&lt;P&gt;Split the X1 layout:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=RawData f=comma12.1;  
class Z ;  
var  X1   X2 ;  
table Z='' ALL, X1='    '*(n     ='Customers'    *f=comma.
                           pctn  ='%Customers'   *f=pctfmt.)
                X1='2019'*(sum   ='SumSales2019' 
                           pctsum='%SumSales2019'*f=pctfmt.)
                X2='2018'*(sum   ='SumSales2018' 
                           pctsum='%SumSales2018'*f=pctfmt.);                     

run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kk.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27032i2B378CDD34F3B5DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="kk.PNG" alt="kk.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Feb 2019 08:50:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-Add-title-above-few-columns/m-p/534268#M146584</guid>
      <dc:creator>VRKiwi</dc:creator>
      <dc:date>2019-02-10T08:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate -Add title above few columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-Add-title-above-few-columns/m-p/534679#M146753</link>
      <description>&lt;P&gt;Does the reply above answer your question?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 01:58:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-Add-title-above-few-columns/m-p/534679#M146753</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-02-12T01:58:40Z</dc:date>
    </item>
  </channel>
</rss>

