<?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 Counting the number of distinct values of a variable in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Counting-the-number-of-distinct-values-of-a-variable/m-p/153446#M12042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the most efficient way to count the no. of distinct values of a particular variable in SAS EG? Google brings up the Data Exploration tool, but it seems to only work for datasets that aren't already in the SAS project. The dataset that I want to count is in the WORK library and is a product of a table join by the query builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 May 2014 13:44:51 GMT</pubDate>
    <dc:creator>misaochan</dc:creator>
    <dc:date>2014-05-11T13:44:51Z</dc:date>
    <item>
      <title>Counting the number of distinct values of a variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Counting-the-number-of-distinct-values-of-a-variable/m-p/153446#M12042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the most efficient way to count the no. of distinct values of a particular variable in SAS EG? Google brings up the Data Exploration tool, but it seems to only work for datasets that aren't already in the SAS project. The dataset that I want to count is in the WORK library and is a product of a table join by the query builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 13:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Counting-the-number-of-distinct-values-of-a-variable/m-p/153446#M12042</guid>
      <dc:creator>misaochan</dc:creator>
      <dc:date>2014-05-11T13:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Counting the number of distinct values of a variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Counting-the-number-of-distinct-values-of-a-variable/m-p/153447#M12043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Proc Freq nlevels option is the fastest that I know. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 16:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Counting-the-number-of-distinct-values-of-a-variable/m-p/153447#M12043</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-05-11T16:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Counting the number of distinct values of a variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Counting-the-number-of-distinct-values-of-a-variable/m-p/153448#M12044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that available as a task in EG? I meant a method specific to the UI in EG, if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 16:53:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Counting-the-number-of-distinct-values-of-a-variable/m-p/153448#M12044</guid>
      <dc:creator>misaochan</dc:creator>
      <dc:date>2014-05-11T16:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Counting the number of distinct values of a variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Counting-the-number-of-distinct-values-of-a-variable/m-p/153449#M12045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you only want EG then I suggest the summarize task twice. First time will get you the different counts of each level, the second will count the number of levels. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A different way is through a QUERY using count Distinct as a calculated variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 18:22:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Counting-the-number-of-distinct-values-of-a-variable/m-p/153449#M12045</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-05-11T18:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Counting the number of distinct values of a variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Counting-the-number-of-distinct-values-of-a-variable/m-p/153450#M12046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a custom task that you can download.&amp;nbsp; It calculates the cardinality -- or number of distinct levels -- of each variable in your data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2013/10/18/a-custom-task-to-check-your-data-cardinality/" title="http://blogs.sas.com/content/sasdummy/2013/10/18/a-custom-task-to-check-your-data-cardinality/"&gt;&lt;STRONG&gt; LINK: &lt;/STRONG&gt;A custom task to check your data cardinality - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The UI looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="http://blogs.sas.com/content/sasdummy/files/2013/10/cardtask.png" class="jive-image" src="http://blogs.sas.com/content/sasdummy/files/2013/10/cardtask.png" /&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 21:35:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Counting-the-number-of-distinct-values-of-a-variable/m-p/153450#M12046</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2014-05-11T21:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Counting the number of distinct values of a variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Counting-the-number-of-distinct-values-of-a-variable/m-p/153451#M12047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; I did not want to install the custom task as sometimes I work on a machine that isn't mine. But COUNT DISTINCT works well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 05:58:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Counting-the-number-of-distinct-values-of-a-variable/m-p/153451#M12047</guid>
      <dc:creator>misaochan</dc:creator>
      <dc:date>2014-05-12T05:58:40Z</dc:date>
    </item>
  </channel>
</rss>

