<?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 Drops Permutations of Values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Drops-Permutations-of-Values/m-p/789813#M252784</link>
    <description>&lt;P&gt;Thanks that solved the issue.&amp;nbsp; It is odd that missing is required to not produce what seems like a bug.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jan 2022 20:52:31 GMT</pubDate>
    <dc:creator>DavidPhillips2</dc:creator>
    <dc:date>2022-01-12T20:52:31Z</dc:date>
    <item>
      <title>Proc Tabulate Drops Permutations of Values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Drops-Permutations-of-Values/m-p/789806#M252779</link>
      <description>&lt;P&gt;I'm running into an odd sort of bug.&amp;nbsp; When I run a shorter tabulate statement I have a report with four distinct values of award_category_desc when I include more variables the output returns two distinct values of award_category_desc.&amp;nbsp; Due to legal reasons, I cannot post the dataset.&amp;nbsp; The values of the field are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Doctoral Degree&lt;BR /&gt;Masters Degree&lt;BR /&gt;Post Masters Certificate&lt;BR /&gt;Postbaccalaureate Certificate&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;/*This block correctly returns a tabular that has four distinct values of award_category_desc*/
proc tabulate data=Time_to_Degree;	
	var Award_Count Time_to_Degree;
	class academic_year award_category_desc;
	table (award_category_desc="") , 
	academic_year *(Award_Count*f=8.0 Time_to_Degree*mean*f=8.1) all;
run;	
/*This block correctly returns a tabular that has four distinct values of award_category_desc*/
proc tabulate data=Time_to_Degree;	
	var Award_Count Time_to_Degree;
	class academic_year award_category_desc program_desc;
	table award_category_desc=""*program_desc="" , 
	academic_year *(Award_Count*f=8.0 Time_to_Degree*mean*f=8.1) all;
run;	

/*This block incorrectly returns a tabular that has two distinct values of award_category_desc as if I have a where clause*/
proc tabulate data=Time_to_Degree;	
	var Award_Count Time_to_Degree;
	class academic_year award_category_desc program_desc first_concentration_desc;
	table award_category_desc=""*program_desc=""*first_concentration_desc="" , 
	academic_year *(Award_Count*f=8.0 Time_to_Degree*mean*f=8.1) all;
run;	&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jan 2022 20:23:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Drops-Permutations-of-Values/m-p/789806#M252779</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2022-01-12T20:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Drops Permutations of Values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Drops-Permutations-of-Values/m-p/789809#M252781</link>
      <description>&lt;P&gt;Missing values for the added class variables is causing those observation to be ignored.&amp;nbsp; Use the MISSING option.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 20:47:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Drops-Permutations-of-Values/m-p/789809#M252781</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2022-01-12T20:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Drops Permutations of Values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Drops-Permutations-of-Values/m-p/789813#M252784</link>
      <description>&lt;P&gt;Thanks that solved the issue.&amp;nbsp; It is odd that missing is required to not produce what seems like a bug.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 20:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Drops-Permutations-of-Values/m-p/789813#M252784</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2022-01-12T20:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Drops Permutations of Values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Drops-Permutations-of-Values/m-p/789850#M252808</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/5059"&gt;@DavidPhillips2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks that solved the issue.&amp;nbsp; It is odd that missing is required to not produce what seems like a bug.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Pretty well documented in the Proc Tabulate syntax for Class statement options MISSING.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on the actual needs for your report you can add a variable that is occasionally missing to create filters in tables by nesting that variable in only some tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another approach would be to add an appropriate variable to contain the "nested" class variables such as with one of the CAT functions. Then the only records not used would be where ALL of the nested variables were missing. I admit that might be odd to read but is an option where the values are pretty obvious.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 22:42:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Drops-Permutations-of-Values/m-p/789850#M252808</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-01-12T22:42:49Z</dc:date>
    </item>
  </channel>
</rss>

