<?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: Identify transaction frequency of customer in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Identify-transaction-frequency-of-customer/m-p/473482#M121512</link>
    <description>&lt;P&gt;That's an interesting problem ... will have to think about it ... calculating diffs (=date_diff) between dates (in weeks) and setting txn_freq to the lowest value found for each customer_id ... formatting date_diff to show the expected text ... just some initial thoughts.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jun 2018 17:07:33 GMT</pubDate>
    <dc:creator>error_prone</dc:creator>
    <dc:date>2018-06-26T17:07:33Z</dc:date>
    <item>
      <title>Identify transaction frequency of customer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-transaction-frequency-of-customer/m-p/473408#M121483</link>
      <description>We need to find out the transaction frequency of customers. How many customers are doing atleast one transaction weekly once/ monthly once/ 2 months once, etc.can you please help on this.</description>
      <pubDate>Tue, 26 Jun 2018 14:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-transaction-frequency-of-customer/m-p/473408#M121483</guid>
      <dc:creator>aranganayagi</dc:creator>
      <dc:date>2018-06-26T14:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Identify transaction frequency of customer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-transaction-frequency-of-customer/m-p/473412#M121486</link>
      <description>&lt;P&gt;Provide example data in the form of a datastep and what the desired result is. Do you need a report that people read or a data set to feed another analysis process?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you are talking about date intervals the process will almost certainly work better if your date information is in the form of a SAS date valued variable an not character.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 14:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-transaction-frequency-of-customer/m-p/473412#M121486</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-26T14:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Identify transaction frequency of customer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-transaction-frequency-of-customer/m-p/473441#M121498</link>
      <description>Thanks for the reply. I want to use the dataset for further analysis.&lt;BR /&gt;Dataset: I have last 3 months transaction data. If customer is doing atleast one transaction every week&lt;BR /&gt;I want to put the freq as 'weekly once'. If he is doing some transaction two week once, then freq should be '2 weeks once&lt;BR /&gt;If he is doing transaction monthly once, then it should be 'monthly once',&lt;BR /&gt;' 2 months once' , ' 3 months once, etc.&lt;BR /&gt;If one month the frequency is monthly once and on another month, if it is 2 weeks once, the freq should be lowest one ' 2 weeks once.&lt;BR /&gt;Customer_Id txn_date txn_id&lt;BR /&gt;A 13/5/2018 01&lt;BR /&gt;A 12/6/2018 02&lt;BR /&gt;B. 1/6/2018. 03&lt;BR /&gt;B. 8/6/2018. 04&lt;BR /&gt;B 15/6/2018 05&lt;BR /&gt;C. 1/4/2018. 06&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now I want the output to be like&lt;BR /&gt;Customer_id txn_freq&lt;BR /&gt;A monthly once&lt;BR /&gt;B weekly once&lt;BR /&gt;C 2 months once.</description>
      <pubDate>Tue, 26 Jun 2018 15:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-transaction-frequency-of-customer/m-p/473441#M121498</guid>
      <dc:creator>aranganayagi</dc:creator>
      <dc:date>2018-06-26T15:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Identify transaction frequency of customer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-transaction-frequency-of-customer/m-p/473482#M121512</link>
      <description>&lt;P&gt;That's an interesting problem ... will have to think about it ... calculating diffs (=date_diff) between dates (in weeks) and setting txn_freq to the lowest value found for each customer_id ... formatting date_diff to show the expected text ... just some initial thoughts.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 17:07:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-transaction-frequency-of-customer/m-p/473482#M121512</guid>
      <dc:creator>error_prone</dc:creator>
      <dc:date>2018-06-26T17:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Identify transaction frequency of customer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-transaction-frequency-of-customer/m-p/473541#M121542</link>
      <description>&lt;P&gt;I see how A is once per month, and B is once per week, given the intervals between records.&amp;nbsp; But there is no interval for C since it has only one record.&amp;nbsp; So why is it termed "2 months once"?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 20:40:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-transaction-frequency-of-customer/m-p/473541#M121542</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-06-26T20:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Identify transaction frequency of customer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-transaction-frequency-of-customer/m-p/473568#M121550</link>
      <description>Hi Error_prone, Thanks for the idea.&lt;BR /&gt;Hi Mkeintz, You are correct. Dataset should look like below. For the above dataset,C's freq should be 3 months once.&lt;BR /&gt;&lt;BR /&gt;A 13/5/2018 01&lt;BR /&gt;A 12/6/2018 02&lt;BR /&gt;B. 1/6/2018. 03&lt;BR /&gt;B. 8/6/2018. 04&lt;BR /&gt;B 15/6/2018 05&lt;BR /&gt;C. 1/4/2018. 06&lt;BR /&gt;C 1/6/2018. 07</description>
      <pubDate>Tue, 26 Jun 2018 23:36:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-transaction-frequency-of-customer/m-p/473568#M121550</guid>
      <dc:creator>aranganayagi</dc:creator>
      <dc:date>2018-06-26T23:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Identify transaction frequency of customer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identify-transaction-frequency-of-customer/m-p/473718#M121591</link>
      <description>&lt;P&gt;State your rules.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You now have 2 C records, one in April and one in June.&amp;nbsp; So how are we to know why you call this once per 3 months?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please clearly state the criteria you use to infer each possible frequency.&amp;nbsp; For an effective coding solution, a clear specification of the requirements is needed.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 13:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identify-transaction-frequency-of-customer/m-p/473718#M121591</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-06-27T13:21:32Z</dc:date>
    </item>
  </channel>
</rss>

