<?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 not merges cells in output categories in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-not-merges-cells-in-output-categories/m-p/641523#M191201</link>
    <description>&lt;P&gt;I can't see any photo. Have you checked the docs of proc tabulate? If it is possible to prevent merging, i am sure you will find the option in the docs.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2020 05:23:48 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2020-04-21T05:23:48Z</dc:date>
    <item>
      <title>Proc tabulate not merges cells in output categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-not-merges-cells-in-output-categories/m-p/641521#M191199</link>
      <description>Hello&lt;BR /&gt;I am using proc tabulate to create summary table.&lt;BR /&gt;As you can see in the photo rhe cells in date column are merged in multiple  rows .&lt;BR /&gt;I want  to ask ahat is way to see the value on each row as you can see in the photo.&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Apr 2020 05:15:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-not-merges-cells-in-output-categories/m-p/641521#M191199</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-04-21T05:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate not merges cells in output categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-not-merges-cells-in-output-categories/m-p/641523#M191201</link>
      <description>&lt;P&gt;I can't see any photo. Have you checked the docs of proc tabulate? If it is possible to prevent merging, i am sure you will find the option in the docs.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 05:23:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-not-merges-cells-in-output-categories/m-p/641523#M191201</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-04-21T05:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate not merges cells in output categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-not-merges-cells-in-output-categories/m-p/641525#M191202</link>
      <description>&lt;P&gt;Also post the code you used.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 06:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-not-merges-cells-in-output-categories/m-p/641525#M191202</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-04-21T06:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate not merges cells in output categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-not-merges-cells-in-output-categories/m-p/641530#M191207</link>
      <description>&lt;P&gt;Please post the source dataset (data step with datalines), the code you used, and an example for the&amp;nbsp;&lt;EM&gt;expected&lt;/EM&gt;&amp;nbsp;&lt;EM&gt;result&lt;/EM&gt;&amp;nbsp;(we can easily recreate your current result by running your code on your data).&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 06:28:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-not-merges-cells-in-output-categories/m-p/641530#M191207</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-21T06:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate not merges cells in output categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-not-merges-cells-in-output-categories/m-p/641535#M191210</link>
      <description>&lt;P&gt;I think you are asking about the merged cells in the first row.&lt;/P&gt;
&lt;P&gt;This happens because the labels for the row dimension classes are shown there&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The table option &lt;FONT face="courier new,courier"&gt;NOCELLMERGE&lt;/FONT&gt; puts the row dimension labels in a separate row.&amp;nbsp; However, this is often also not desired, and you will end up modifying the table statement more -- delabeling the row row header and placing the label in the upper left hand box.&amp;nbsp; This is done using&amp;nbsp;&lt;FONT face="courier new,courier"&gt;&amp;lt;class&amp;gt;=''&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;/ box="&amp;lt;class&amp;gt;"&lt;/FONT&gt; in the table statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;   
  picture MBT (fuzz=0)
    1E03-&amp;lt;1000000='0000 ' (prefix='' mult=.001)
  ;
run;

ods html5 file='tabulate.html';

title "Default TABULATE";
proc tabulate data=sashelp.shoes;
  class region product ;
  var sales;
  label Sales = 'Sales $(,000)';

  table 
    product
    , 
    sales*sum=''*f=MBT. * region
  ;

  where region &amp;lt;= 'Canada' and product &amp;lt; 'S';
run;


title "NOCELLMERGE";
proc tabulate data=sashelp.shoes;
  class region product ;
  var sales;
  label Sales = 'Sales $(,000)';

  table 
    product
    , 
    sales*sum=''*f=MBT. * region
  / 
    NOCELLMERGE                                         /* prevent the first row cell merging */
  ;

  where region &amp;lt;= 'Canada' and product &amp;lt; 'S';
run;

title "NO Row dim header and BOX";
proc tabulate data=sashelp.shoes;
  class region product ;
  var sales;
  label Sales = 'Sales $(,000)';

  table 
    product=''                               /* ='' removes row dim header */
    , 
    sales*sum=''*f=MBT. * region
  / 
    BOX=[label='Product' style=[VerticalAlign=bottom]]   /* manually enter removed row dim header in the 'BOX' cell */
  ;

  where region &amp;lt;= 'Canada' and product &amp;lt; 'S';
run;


ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 285px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38515i5A27B565C2896A7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 07:29:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-not-merges-cells-in-output-categories/m-p/641535#M191210</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-04-21T07:29:10Z</dc:date>
    </item>
  </channel>
</rss>

