<?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: Countif based on date ranges in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Countif-based-on-date-ranges/m-p/1650263#M447790</link>
    <description>&lt;P&gt;20 individual accounts:&lt;BR /&gt;count(distinct Account)&lt;/P&gt;&lt;P&gt;14 up-to-date accounts:&lt;BR /&gt;count({&amp;lt;[Billing Frequency]={'M'}, [Latest Billed Date]={"&amp;gt;$(=today()-46)"}&amp;gt;}distinct Account) +&lt;BR /&gt;count({&amp;lt;[Billing Frequency]={'Q'}, [Latest Billed Date]={"&amp;gt;$(=today()-155)"}&amp;gt;}distinct Account)&lt;BR /&gt;&lt;BR /&gt;6 not up-to-date accounts:&lt;BR /&gt;count(distinct Account) -&amp;nbsp;&lt;BR /&gt;(count({&amp;lt;[Billing Frequency]={'M'}, [Latest Billed Date]={"&amp;gt;$(=today()-46)"}&amp;gt;}distinct Account) +&lt;BR /&gt;count({&amp;lt;[Billing Frequency]={'Q'}, [Latest Billed Date]={"&amp;gt;$(=today()-155)"}&amp;gt;}distinct Account))&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2019 17:37:10 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2019-11-22T17:37:10Z</dc:date>
    <item>
      <title>Countif based on date ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Countif-based-on-date-ranges/m-p/1650229#M447786</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've got a dataset of accounts which should be billed on either a monthly or quarterly basis (M/Q) and I need to establish if they're billed up to date or not up to date and then summarise the results to show the number and % not up to date and up to date regardless of the billing frequency.&lt;/P&gt;&lt;P&gt;We consider a monthly billed account up to date if the latest billed date is less than 46 days since todays date.&lt;/P&gt;&lt;P&gt;We consider a quarterly billed account up to date if the latest billed date is less than 155 days since todays date.&lt;/P&gt;&lt;P&gt;The attached dataset contains 25 lines (excluding the header line) but I only want the formula to bring back one instance of the account so I know the expected results are&lt;/P&gt;&lt;P&gt;20 individual accounts&lt;/P&gt;&lt;P&gt;14 up to date (70%)&lt;/P&gt;&lt;P&gt;6 not up to date (30%)&lt;/P&gt;&lt;P&gt;I just can't get the expression to work correctly!&lt;/P&gt;&lt;P&gt;Thank you in advance for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 16:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Countif-based-on-date-ranges/m-p/1650229#M447786</guid>
      <dc:creator>Daniel_K</dc:creator>
      <dc:date>2019-11-22T16:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Countif based on date ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Countif-based-on-date-ranges/m-p/1650263#M447790</link>
      <description>&lt;P&gt;20 individual accounts:&lt;BR /&gt;count(distinct Account)&lt;/P&gt;&lt;P&gt;14 up-to-date accounts:&lt;BR /&gt;count({&amp;lt;[Billing Frequency]={'M'}, [Latest Billed Date]={"&amp;gt;$(=today()-46)"}&amp;gt;}distinct Account) +&lt;BR /&gt;count({&amp;lt;[Billing Frequency]={'Q'}, [Latest Billed Date]={"&amp;gt;$(=today()-155)"}&amp;gt;}distinct Account)&lt;BR /&gt;&lt;BR /&gt;6 not up-to-date accounts:&lt;BR /&gt;count(distinct Account) -&amp;nbsp;&lt;BR /&gt;(count({&amp;lt;[Billing Frequency]={'M'}, [Latest Billed Date]={"&amp;gt;$(=today()-46)"}&amp;gt;}distinct Account) +&lt;BR /&gt;count({&amp;lt;[Billing Frequency]={'Q'}, [Latest Billed Date]={"&amp;gt;$(=today()-155)"}&amp;gt;}distinct Account))&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 17:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Countif-based-on-date-ranges/m-p/1650263#M447790</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2019-11-22T17:37:10Z</dc:date>
    </item>
  </channel>
</rss>

