<?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 and filtering unique colum value in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-and-filtering-unique-colum-value/m-p/237189#M55312</link>
    <description>Unfortunately, proc tabulate cannot generate unique counts &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Depending on what your'e doing you can consider adding a 1 to the first record and the remaining as 0 and then sum that field, but if you're cross tabbing data that won't always work because you need to count by groups.</description>
    <pubDate>Tue, 01 Dec 2015 16:12:51 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-12-01T16:12:51Z</dc:date>
    <item>
      <title>proc tabulate and filtering unique colum value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-and-filtering-unique-colum-value/m-p/237182#M55311</link>
      <description>&lt;P&gt;I have a proc tab that does a count as the default statistic&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; proc tabulate data=WORK.HRIR99991 missing contents = ' '&amp;nbsp; S=[foreground=highlight.];&lt;BR /&gt;&amp;nbsp;&amp;nbsp; class BUSINESS_UNIT_DESC GENDER_CODE DEPARTMENT_DESC;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; var fte;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; keylabel Sum = " ";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; table&amp;nbsp; BUSINESS_UNIT_DESC='Business Unit' * N='Record Count'/&lt;BR /&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; contents = ' ' misstext=' ' box={label="&amp;amp;boxlabel"};&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this gives ne a count of the number of records in the data set however each record has an employees HR ID number in it&amp;nbsp; (called HRID)&lt;/P&gt;
&lt;P&gt;what I would like to do is just count each unique HRID once to get a head count is tehre a way to do that in proc tab?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 15:45:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-and-filtering-unique-colum-value/m-p/237182#M55311</guid>
      <dc:creator>robm</dc:creator>
      <dc:date>2015-12-01T15:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate and filtering unique colum value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-and-filtering-unique-colum-value/m-p/237189#M55312</link>
      <description>Unfortunately, proc tabulate cannot generate unique counts &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Depending on what your'e doing you can consider adding a 1 to the first record and the remaining as 0 and then sum that field, but if you're cross tabbing data that won't always work because you need to count by groups.</description>
      <pubDate>Tue, 01 Dec 2015 16:12:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-and-filtering-unique-colum-value/m-p/237189#M55312</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-01T16:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate and filtering unique colum value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-and-filtering-unique-colum-value/m-p/237191#M55313</link>
      <description>&lt;P&gt;If your HRID varialbe is actually numeric you could make it a VAR variable and ask for the N statistic. That gives a count. When it is a CLASS variable then you get the individual values. But VAR must be numeric not a character variable containing digits.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 16:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-and-filtering-unique-colum-value/m-p/237191#M55313</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-12-01T16:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate and filtering unique colum value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-and-filtering-unique-colum-value/m-p/307911#M61142</link>
      <description>&lt;P&gt;I wonder why and incorrect answer is marked as a solution.&amp;nbsp; N gives a count, but not a unique count.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 13:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-and-filtering-unique-colum-value/m-p/307911#M61142</guid>
      <dc:creator>harlananelson</dc:creator>
      <dc:date>2016-10-28T13:20:00Z</dc:date>
    </item>
  </channel>
</rss>

