<?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: horizontal summary table in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/horizontal-summary-table/m-p/236619#M14730</link>
    <description>What does the following give you:&lt;BR /&gt;&lt;BR /&gt;tables (age revenue)*(mean median);</description>
    <pubDate>Thu, 26 Nov 2015 16:31:47 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-11-26T16:31:47Z</dc:date>
    <item>
      <title>horizontal summary table</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/horizontal-summary-table/m-p/236602#M14727</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with proc tabulate I have this output :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 180pt;" border="0" width="240" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 60pt;" span="3" width="80" /&gt; &lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="80" height="20" class="xl63" style="height: 15.0pt; width: 60pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="80" class="xl63" style="border-left: none; width: 60pt;"&gt;mean&lt;/TD&gt;
&lt;TD width="80" class="xl63" style="border-left: none; width: 60pt;"&gt;median&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Age&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;25&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Revenue&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2700&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2600&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and what I want to have is this form :&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 180pt;" border="0" width="240" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 60pt;" span="3" width="80" /&gt; &lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="80" height="20" class="xl65" style="height: 15.0pt; width: 60pt;"&gt;Age&lt;/TD&gt;
&lt;TD width="80" class="xl65" style="border-left: none; width: 60pt;"&gt;mean&lt;/TD&gt;
&lt;TD width="80" align="right" class="xl65" style="border-left: none; width: 60pt;"&gt;30&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl65" style="height: 15.0pt; border-top: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;median&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;25&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl65" style="height: 15.0pt; border-top: none;"&gt;Revenue&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;mean&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2700&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl65" style="height: 15.0pt; border-top: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;median&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2600&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this possible?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2015 15:53:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/horizontal-summary-table/m-p/236602#M14727</guid>
      <dc:creator>majdi_ka</dc:creator>
      <dc:date>2015-11-26T15:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: horizontal summary table</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/horizontal-summary-table/m-p/236605#M14728</link>
      <description>Yes, change your table statement. If you post your code, someone can suggest the change from the current code.</description>
      <pubDate>Thu, 26 Nov 2015 16:02:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/horizontal-summary-table/m-p/236605#M14728</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-11-26T16:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: horizontal summary table</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/horizontal-summary-table/m-p/236616#M14729</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;OK, it's a simple code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=have;
  var age revenue;
  tables
     /*line*/
     age
     revenue,

     /*column*/
     (mean median);
run;

      &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MK&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2015 16:30:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/horizontal-summary-table/m-p/236616#M14729</guid>
      <dc:creator>majdi_ka</dc:creator>
      <dc:date>2015-11-26T16:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: horizontal summary table</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/horizontal-summary-table/m-p/236619#M14730</link>
      <description>What does the following give you:&lt;BR /&gt;&lt;BR /&gt;tables (age revenue)*(mean median);</description>
      <pubDate>Thu, 26 Nov 2015 16:31:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/horizontal-summary-table/m-p/236619#M14730</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-11-26T16:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: horizontal summary table</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/horizontal-summary-table/m-p/236621#M14731</link>
      <description>&lt;P&gt;it gives a vertical summary table like this :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 240pt;" border="0" width="320" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 60pt;" span="4" width="80" /&gt; &lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD colspan="2" width="160" height="20" class="xl66" style="height: 15.0pt; width: 120pt;"&gt;Age&lt;/TD&gt;
&lt;TD colspan="2" width="160" class="xl66" style="border-left: none; width: 120pt;"&gt;Revenue&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl65" style="height: 15.0pt; border-top: none;"&gt;mean&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;median&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;mean&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;median&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 26 Nov 2015 16:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/horizontal-summary-table/m-p/236621#M14731</guid>
      <dc:creator>majdi_ka</dc:creator>
      <dc:date>2015-11-26T16:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: horizontal summary table</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/horizontal-summary-table/m-p/236624#M14732</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC TABULATE
DATA=SASHELP.CLASS
	
	;
	
	VAR Height;
	CLASS Sex /	ORDER=UNFORMATTED MISSING;
	CLASS Age /	ORDER=UNFORMATTED MISSING;
	TABLE 
		/* ROW Statement */
		Sex *Age  *(Height * Mean={LABEL="Average"} Height * Median={LABEL="Median"} ),
		/* COLUMN statement */
		ALL=' ' 		;
	;

RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Nov 2015 16:43:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/horizontal-summary-table/m-p/236624#M14732</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-11-26T16:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: horizontal summary table</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/horizontal-summary-table/m-p/236630#M14733</link>
      <description>&lt;P&gt;Based on your previous post, I edited the code because I have only numeric variables :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC TABULATE
DATA=SASHELP.CLASS
	
	;
	VAR Height Age;
	TABLE 
		/* ROW Statement */
		Height * Mean={LABEL="Mean"} Height={LABEL=""} * Median={LABEL="Median"} 
		Age * Mean={LABEL="Mean"} Age={LABEL=""} * Median={LABEL="Median"} ,
		/* COLUMN statement */
		ALL=' ' 		;
	;

RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And I have the result that I want &lt;img id="manvery-happy" class="emoticon emoticon-manvery-happy" src="https://communities.sas.com/i/smilies/16x16_man-very-happy.png" alt="Man Very Happy" title="Man Very Happy" /&gt; :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;TABLE class="table" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt; &lt;COL /&gt; &lt;/COLGROUP&gt;
&lt;THEAD&gt;&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="rowheader" scope="row"&gt;Height&lt;/TH&gt;
&lt;TH class="rowheader" scope="row"&gt;Mean&lt;/TH&gt;
&lt;TD class="b data"&gt;62.34&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="rowheader" scope="row"&gt;&amp;nbsp;&lt;/TH&gt;
&lt;TH class="rowheader" scope="row"&gt;Median&lt;/TH&gt;
&lt;TD class="b data"&gt;62.80&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="rowheader" scope="row"&gt;Age&lt;/TH&gt;
&lt;TH class="rowheader" scope="row"&gt;Mean&lt;/TH&gt;
&lt;TD class="b data"&gt;13.32&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="rowheader" scope="row"&gt;&amp;nbsp;&lt;/TH&gt;
&lt;TH class="rowheader" scope="row"&gt;Median&lt;/TH&gt;
&lt;TD class="b data"&gt;13.00&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I looked for is the " , ALL=' ' &amp;nbsp;"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2015 17:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/horizontal-summary-table/m-p/236630#M14733</guid>
      <dc:creator>majdi_ka</dc:creator>
      <dc:date>2015-11-26T17:01:56Z</dc:date>
    </item>
  </channel>
</rss>

