<?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: Conditional counting given dates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Conditional-counting-given-dates/m-p/374951#M89827</link>
    <description>&lt;P&gt;posted sample data and expected result from that sample data. Someone will be able to help you&amp;nbsp;.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2017 13:40:35 GMT</pubDate>
    <dc:creator>kiranv_</dc:creator>
    <dc:date>2017-07-11T13:40:35Z</dc:date>
    <item>
      <title>Conditional counting given dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditional-counting-given-dates/m-p/374913#M89815</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of incoming payments, the payments are related to debts. The payer is not necessarily&amp;nbsp;same person who the debt&amp;nbsp;belongs to (i.e. someone else can pay off the debt). I want to count how many&amp;nbsp;debts the person whose debt was paid off had BEFORE and AFTER the payment in question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So one row could look something like this:&lt;/P&gt;&lt;P&gt;Payment date // Payment amount // Payer // Debtor // Debts before payment // Debts after payment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've looked in to solving this with a conditional COUNT function (e.g.: COUNT(payment date &amp;lt; loan date) but this doesn't seem to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;BR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 12:13:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditional-counting-given-dates/m-p/374913#M89815</guid>
      <dc:creator>Svanton</dc:creator>
      <dc:date>2017-07-11T12:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional counting given dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditional-counting-given-dates/m-p/374949#M89826</link>
      <description>&lt;P&gt;Post some&amp;nbsp;&lt;A href="http://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_blank"&gt;test data&lt;/A&gt;&amp;nbsp;please?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 13:38:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditional-counting-given-dates/m-p/374949#M89826</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2017-07-11T13:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional counting given dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditional-counting-given-dates/m-p/374951#M89827</link>
      <description>&lt;P&gt;posted sample data and expected result from that sample data. Someone will be able to help you&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 13:40:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditional-counting-given-dates/m-p/374951#M89827</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2017-07-11T13:40:35Z</dc:date>
    </item>
  </channel>
</rss>

