<?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: Count of two separate unique variables between columns to ultimately gain the highest frequency in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-of-two-separate-unique-variables-between-columns-to/m-p/960460#M45847</link>
    <description>&lt;P&gt;Actually I think it is just one column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column: would have the occurrence ascending by date order.&amp;nbsp; So for instance if I used two vehicles 101 times over the course of a year the new column (using vehicle number, my personal ID number and date columns) would show numbers going from 1-what ever the count is for each vehicle.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2025 20:13:06 GMT</pubDate>
    <dc:creator>JFranco2</dc:creator>
    <dc:date>2025-02-27T20:13:06Z</dc:date>
    <item>
      <title>Count of two separate unique variables between columns to ultimately gain the highest frequency</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-of-two-separate-unique-variables-between-columns-to/m-p/960451#M45843</link>
      <description>&lt;P&gt;I would like to see who uses something most.&amp;nbsp; I have a column of the product and I have a column of the user ID - I want to only know who is using it most.&amp;nbsp; The Data Set shows every time the product is used and by whom - I want to use those two columns to calculate one or two new columns (I also have the date) so a column to show the count of the most times used. Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 19:22:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-of-two-separate-unique-variables-between-columns-to/m-p/960451#M45843</guid>
      <dc:creator>JFranco2</dc:creator>
      <dc:date>2025-02-27T19:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count of two separate unique variables between columns to ultimately gain the highest frequency</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-of-two-separate-unique-variables-between-columns-to/m-p/960452#M45844</link>
      <description>&lt;P&gt;I know I can do this in a summary table but want to remove the duplicates entries and only keep the highest frequency information&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 19:29:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-of-two-separate-unique-variables-between-columns-to/m-p/960452#M45844</guid>
      <dc:creator>JFranco2</dc:creator>
      <dc:date>2025-02-27T19:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count of two separate unique variables between columns to ultimately gain the highest frequency</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-of-two-separate-unique-variables-between-columns-to/m-p/960453#M45845</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;EM&gt;...&amp;nbsp;to calculate one or two new columns ...&lt;/EM&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is pretty vague. What should those one or two new columns contain? Will they be in the same data set or a new data set? How do they relate to measuring highest frequency?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could we measure highest frequency without creating one or two new columns?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Given your explanation above, it seems like just counting isn't the way you want to get to "highest frequency". Could you elaborate on what you mean by "highest frequency"?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 19:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-of-two-separate-unique-variables-between-columns-to/m-p/960453#M45845</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-02-27T19:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count of two separate unique variables between columns to ultimately gain the highest frequency</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-of-two-separate-unique-variables-between-columns-to/m-p/960456#M45846</link>
      <description>&lt;P&gt;Perhaps the COUNT() aggregate function of PROC SQL with the DISTINCT keyword to eliminate duplicates?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
  select groupvar , count(distinct entryvar) as n_entries
  from have
  group by groupvar
  order by n_entries desc 
;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Feb 2025 19:54:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-of-two-separate-unique-variables-between-columns-to/m-p/960456#M45846</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-02-27T19:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count of two separate unique variables between columns to ultimately gain the highest frequency</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-of-two-separate-unique-variables-between-columns-to/m-p/960460#M45847</link>
      <description>&lt;P&gt;Actually I think it is just one column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column: would have the occurrence ascending by date order.&amp;nbsp; So for instance if I used two vehicles 101 times over the course of a year the new column (using vehicle number, my personal ID number and date columns) would show numbers going from 1-what ever the count is for each vehicle.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 20:13:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-of-two-separate-unique-variables-between-columns-to/m-p/960460#M45847</guid>
      <dc:creator>JFranco2</dc:creator>
      <dc:date>2025-02-27T20:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count of two separate unique variables between columns to ultimately gain the highest frequency</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-of-two-separate-unique-variables-between-columns-to/m-p/960461#M45848</link>
      <description>&lt;P&gt;Maybe this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=have;
    by vehicle_number ID date;
run;

data want;
    set have;
    by vehicle_number id;
    if first.id then count=0;
    count+1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Feb 2025 20:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-of-two-separate-unique-variables-between-columns-to/m-p/960461#M45848</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-02-27T20:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count of two separate unique variables between columns to ultimately gain the highest frequency</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-of-two-separate-unique-variables-between-columns-to/m-p/960463#M45849</link>
      <description>&lt;P&gt;thank you!!!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 21:02:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-of-two-separate-unique-variables-between-columns-to/m-p/960463#M45849</guid>
      <dc:creator>JFranco2</dc:creator>
      <dc:date>2025-02-27T21:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count of two separate unique variables between columns to ultimately gain the highest frequency</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-of-two-separate-unique-variables-between-columns-to/m-p/960464#M45850</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 21:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-of-two-separate-unique-variables-between-columns-to/m-p/960464#M45850</guid>
      <dc:creator>JFranco2</dc:creator>
      <dc:date>2025-02-27T21:03:04Z</dc:date>
    </item>
  </channel>
</rss>

