<?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: Filter dataset to show repeating customers in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filter-dataset-to-show-repeating-customers/m-p/624530#M35523</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/308604"&gt;@willd9&lt;/a&gt;&amp;nbsp;Hi and welcome to the SAS Community &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A problem like this is so much easier to help you with if you provide us with some sample of your data and what you want the desired result to look like. Makes it much easier to provide usable code.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2020 16:52:29 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2020-02-13T16:52:29Z</dc:date>
    <item>
      <title>Filter dataset to show repeating customers</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filter-dataset-to-show-repeating-customers/m-p/624520#M35522</link>
      <description>&lt;P&gt;I'm trying to filter my dataset to show customers who have bought more than one product from my company.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dataset I'm working with has a column called 'customer_first_order' which has a 1 or 0 to indicate yes or no, respectively. This is fine because I can filter to see where customers have a 0 in this column. The only issue is I want to show the repeating customer's first order as well which will obviously show as 1 under 'customer_first_order'. The customers have a unique ID called customer_id. Any ideas on how to tackle this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 16:41:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filter-dataset-to-show-repeating-customers/m-p/624520#M35522</guid>
      <dc:creator>willd9</dc:creator>
      <dc:date>2020-02-13T16:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filter dataset to show repeating customers</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filter-dataset-to-show-repeating-customers/m-p/624530#M35523</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/308604"&gt;@willd9&lt;/a&gt;&amp;nbsp;Hi and welcome to the SAS Community &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A problem like this is so much easier to help you with if you provide us with some sample of your data and what you want the desired result to look like. Makes it much easier to provide usable code.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 16:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filter-dataset-to-show-repeating-customers/m-p/624530#M35523</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-02-13T16:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filter dataset to show repeating customers</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filter-dataset-to-show-repeating-customers/m-p/624531#M35524</link>
      <description>&lt;P&gt;Welcome to the SAS community forums.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You likely want to use BY group processing to add another flag.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Documentation on BY group processing can be found &lt;A href="https://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p0xu93fy5eemkyn1p6mj5elses7j.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;here&lt;/A&gt;, with some annotated images showing how it works.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need further assistance beyond this please post some example data show what you have and what you need as a result. Ideally you'd also show what you tried. If you cannot provide real data, please make fake data and/or use SASHELP.CLASS or CARS to illustrate your issue. These data sets are available to all SAS programmers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are instructions on how to provide sample data as a data step:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/308604"&gt;@willd9&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm trying to filter my dataset to show customers who have bought more than one product from my company.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The dataset I'm working with has a column called 'customer_first_order' which has a 1 or 0 to indicate yes or no, respectively. This is fine because I can filter to see where customers have a 0 in this column. The only issue is I want to show the repeating customer's first order as well which will obviously show as 1 under 'customer_first_order'. The customers have a unique ID called customer_id. Any ideas on how to tackle this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 16:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filter-dataset-to-show-repeating-customers/m-p/624531#M35524</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-02-13T16:53:33Z</dc:date>
    </item>
  </channel>
</rss>

