<?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: Conditionally count the number of distinct individuals who used a particular service in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-count-the-number-of-distinct-individuals-who-used/m-p/756844#M239030</link>
    <description>&lt;P&gt;Thanks Patrick!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works like a charm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jul 2021 00:30:03 GMT</pubDate>
    <dc:creator>ModeratelyWise</dc:creator>
    <dc:date>2021-07-27T00:30:03Z</dc:date>
    <item>
      <title>Conditionally count the number of distinct individuals who used a particular service</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-count-the-number-of-distinct-individuals-who-used/m-p/756329#M238747</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;So I have a social service dataset that is looking at clients uses of various services and it looks something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Client_ID&amp;nbsp; Service_Code&amp;nbsp; &amp;nbsp;Service_Text&amp;nbsp; &amp;nbsp; &amp;nbsp; Flg_plcm&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Foster Care&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;001&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Transportation&amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;002&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Foster Care&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;003&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Transportation&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;003&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Wellness&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;003&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Foster Care&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;004&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Foster Care&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;004&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Transportation&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;004&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Transportation&amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;004&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Transportation&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;004&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Transportation&amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to count the number of distinct clients that make use of each type of service.&amp;nbsp; Also, I want to distinguish&amp;nbsp; those that use it during a placement (Thus&amp;nbsp;Flg_plcm) so that the output looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Service_Code&amp;nbsp; &amp;nbsp; &amp;nbsp;Service_Text&amp;nbsp; &amp;nbsp; &amp;nbsp;cnt_child&amp;nbsp; &amp;nbsp; &amp;nbsp;cnt_child_plcm&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Foster Care&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Wellness&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Transportation&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does that make sense?&amp;nbsp; I appreciate any help I can get.&amp;nbsp; I am pretty new to SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 23:48:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-count-the-number-of-distinct-individuals-who-used/m-p/756329#M238747</guid>
      <dc:creator>ModeratelyWise</dc:creator>
      <dc:date>2021-07-23T23:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally count the number of distinct individuals who used a particular service</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-count-the-number-of-distinct-individuals-who-used/m-p/756335#M238748</link>
      <description>&lt;P&gt;Do any of your client_id have multiple observations with the same Service code? With the same Service code and different Flg_plcm codes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The questions relate to how distinctness might be defined for those types of cases. If there aren't any such then not much difficulty but there may be some trickyness involved if you have a client with multiple records with the same Service code and different Plcm. If you have such you might want to show a couple examples and rules for reducing to "unique".&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 23:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-count-the-number-of-distinct-individuals-who-used/m-p/756335#M238748</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-23T23:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally count the number of distinct individuals who used a particular service</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-count-the-number-of-distinct-individuals-who-used/m-p/756336#M238749</link>
      <description>&lt;P&gt;Thanks for the quick response ballardw,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes clients can have multiple observations with the same service code. Even multiple while in placement and out of placement too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've edited the post to reflect the answer to your question.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 23:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-count-the-number-of-distinct-individuals-who-used/m-p/756336#M238749</guid>
      <dc:creator>ModeratelyWise</dc:creator>
      <dc:date>2021-07-23T23:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally count the number of distinct individuals who used a particular service</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-count-the-number-of-distinct-individuals-who-used/m-p/756355#M238759</link>
      <description>&lt;P&gt;Your data appear to be grouped by ID and Service_Code/Service_Text.&amp;nbsp; If so, then you can create an intermediate data set with on observation for each ID/Service_Code/Service_Text, with one new variable: &lt;EM&gt;&lt;STRONG&gt;maxflg&lt;/STRONG&gt;&lt;/EM&gt;.&amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;maxflg&lt;/STRONG&gt;&lt;/EM&gt; will be a zero if no corresponding observations have flg_plcm=1, or it will be a one if any flg_plcm=1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The you can run a proc summary asking for the number of intermediate observations for each service_code/service_text and asking for the sum of maxflg for each service_code/service_text:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Untested, in the absence of a working data step with sample data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data vneed / view=vneed;
  set have;
  by client_id service_code service_text notsorted;
  retain max_flg;
  if first.service_text then max_flg=flg_plcm;
  else max_flg=max(max_flg,flg_plcm);
  if last.service_text;
run;

proc summary data=vneed nway ;
  class service_code service_text;
  var max_flg;
  output out=want (drop=_:) n=cnt_child sum=cnt_child_plcm;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jul 2021 02:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-count-the-number-of-distinct-individuals-who-used/m-p/756355#M238759</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2021-07-24T02:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally count the number of distinct individuals who used a particular service</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-count-the-number-of-distinct-individuals-who-used/m-p/756356#M238760</link>
      <description>&lt;P&gt;Here one way to get the desired result using the sample data you've posted.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile datalines dsd truncover;
input (Client_ID Service_Code Service_Text Flg_plcm) (:$20.);
datalines;
001,1,Foster Care,1
001,3,Transportation,0
002,1,Foster Care,1
003,3,Transportation,1
003,2,Wellness,0
003,1,Foster Care,1
004,1,Foster Care,1
004,3,Transportation,1
004,3,Transportation,0
004,3,Transportation,1
004,3,Transportation,0
;

proc sql;
  select distinct
    Service_Code,
    Service_Text,
    count(distinct Client_ID) as cnt_child,
    sum(
        case 
          when Flg_plcm='1' then 1
          else 0    
          end
      )
      as cnt_child_placement

  from 
    ( select distinct * from have)
  group by
    Service_Code,
    Service_Text
  ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1627095479297.png" style="width: 507px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61666i362DC0293A9DED95/image-dimensions/507x134?v=v2" width="507" height="134" role="button" title="Patrick_0-1627095479297.png" alt="Patrick_0-1627095479297.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jul 2021 02:58:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-count-the-number-of-distinct-individuals-who-used/m-p/756356#M238760</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-07-24T02:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally count the number of distinct individuals who used a particular service</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-count-the-number-of-distinct-individuals-who-used/m-p/756804#M239006</link>
      <description>&lt;P&gt;Thanks Patrick!&lt;/P&gt;&lt;P&gt;So this almost works (See below). There are only 16 individuals in this study so the max should only be 16 for either column. The cnt_child column should be the total number of individual kids that receive the service while cnt_child_placement is a subset of that total who are also in placement. So cnt_child_placement should be at most equal to cnt_child.&amp;nbsp; It seems like it is counting the number of times kids in placement used the service rather that the number distinct kids that use the service while in placement.&amp;nbsp; Does that make sense?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ModeratelyWise_0-1627331889572.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61706i63F6B86F4CFF055F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ModeratelyWise_0-1627331889572.png" alt="ModeratelyWise_0-1627331889572.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 20:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-count-the-number-of-distinct-individuals-who-used/m-p/756804#M239006</guid>
      <dc:creator>ModeratelyWise</dc:creator>
      <dc:date>2021-07-26T20:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally count the number of distinct individuals who used a particular service</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-count-the-number-of-distinct-individuals-who-used/m-p/756834#M239023</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/390502"&gt;@ModeratelyWise&lt;/a&gt;&amp;nbsp;Is below doing what you're after?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  infile datalines dsd truncover;
  input (Client_ID Service_Code Service_Text Flg_plcm) (:$20.);
  datalines;
001,1,Foster Care,1
001,3,Transportation,0
002,1,Foster Care,1
003,3,Transportation,1
003,2,Wellness,0
003,1,Foster Care,1
004,1,Foster Care,1
004,3,Transportation,1
004,3,Transportation,0
004,3,Transportation,1
004,3,Transportation,0
;

proc sort data=have out=inter nodupkey;
  by Service_Code Client_ID descending Flg_plcm;
run;

data want;
  set inter;
  by Service_Code Client_ID;

  if first.client_id then
    do;
      cnt_child+1;
      cnt_child_plcm+(Flg_plcm='1');
    end;

  if last.service_code then
    do;
      output;
      call missing(cnt_child,cnt_child_plcm);
    end;
run;

proc print data=want;
  var Service_Code Service_Text cnt_child cnt_child_plcm;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1627340271264.png" style="width: 633px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61709i162F6C9404564555/image-dimensions/633x162?v=v2" width="633" height="162" role="button" title="Patrick_0-1627340271264.png" alt="Patrick_0-1627340271264.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or here a SQL alternative&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  select
    Service_Code,
    Service_Text,
    count(Client_ID) as cnt_child,
    sum(max_plcm) as cnt_child_plcm
  from
    (
      select
        Service_Code,
        max(Service_Text) as Service_Text,
        Client_ID,
        max(case when Flg_plcm='1' then 1 else 0 end) as max_plcm    
      from have
      group by 
        Service_Code,
        Client_ID
    )
  group by
    Service_Code,
    Service_Text
  ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Jul 2021 23:13:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-count-the-number-of-distinct-individuals-who-used/m-p/756834#M239023</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-07-26T23:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally count the number of distinct individuals who used a particular service</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditionally-count-the-number-of-distinct-individuals-who-used/m-p/756844#M239030</link>
      <description>&lt;P&gt;Thanks Patrick!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works like a charm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 00:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditionally-count-the-number-of-distinct-individuals-who-used/m-p/756844#M239030</guid>
      <dc:creator>ModeratelyWise</dc:creator>
      <dc:date>2021-07-27T00:30:03Z</dc:date>
    </item>
  </channel>
</rss>

