<?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: Count items after a certain date field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-items-after-a-certain-date-field/m-p/636546#M1090792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Carlo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try adding single cotes around your $-sign substitution of the variable, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Count({&amp;lt;DeliverDate = {"&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="; font-family: 'courier new', courier; text-decoration: underline;"&gt;&lt;STRONG style="color: #ff0000; text-decoration: underline;"&gt;'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$(CurrentEntitlementeStartDate)&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG style="color: #ff0000; text-decoration: underline;"&gt;'&lt;/STRONG&gt;&lt;/SPAN&gt;"}&amp;gt;} Distinct Account &amp;amp; CSP_Name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2014 04:36:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-03T04:36:19Z</dc:date>
    <item>
      <title>Count items after a certain date field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-items-after-a-certain-date-field/m-p/636545#M1090791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to count the number of deliverables that is greater than a certain date field.&amp;nbsp; As you can see from below, my expression is counting 11, when it should really be only counting 5 entries greater than 1/7/2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="deliverdate.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/59992_deliverdate.jpg" style="width: 620px; height: 218px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 04:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-items-after-a-certain-date-field/m-p/636545#M1090791</guid>
      <dc:creator />
      <dc:date>2014-06-03T04:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count items after a certain date field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-items-after-a-certain-date-field/m-p/636546#M1090792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Carlo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try adding single cotes around your $-sign substitution of the variable, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Count({&amp;lt;DeliverDate = {"&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="; font-family: 'courier new', courier; text-decoration: underline;"&gt;&lt;STRONG style="color: #ff0000; text-decoration: underline;"&gt;'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$(CurrentEntitlementeStartDate)&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG style="color: #ff0000; text-decoration: underline;"&gt;'&lt;/STRONG&gt;&lt;/SPAN&gt;"}&amp;gt;} Distinct Account &amp;amp; CSP_Name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 04:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-items-after-a-certain-date-field/m-p/636546#M1090792</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-03T04:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count items after a certain date field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-items-after-a-certain-date-field/m-p/636547#M1090793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess CurrentEntitlementStarDate is a field, if so, try like:&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;DeliveryDate={"&amp;gt;=$(&lt;STRONG&gt;=&lt;/STRONG&gt;CurrentEntitlementStarDate)"}&amp;gt;}) Distinct ....)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 04:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-items-after-a-certain-date-field/m-p/636547#M1090793</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-03T04:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count items after a certain date field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-items-after-a-certain-date-field/m-p/636548#M1090794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the date format is not same. So you need to change it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In script, do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Date(DeliveryDate, 'DD/MM/YYYY') as DeliveryDate, ..&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;from tablename;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Count({&amp;lt;DeliveryDate={"&amp;gt;=$(&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CurrentEntitlementStarDate)"}&amp;gt;}) Distinct &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;Account&amp;amp;CSP_Name&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 05:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-items-after-a-certain-date-field/m-p/636548#M1090794</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2014-06-03T05:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count items after a certain date field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-items-after-a-certain-date-field/m-p/636549#M1090795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this - i changed the date format and it is working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, i've found something strange where this will work if i have my dashboard filtered down to 1 account.&amp;nbsp; If I clear my selections to expand the accounts - the expression no longer displays data.&amp;nbsp; If I remove the = (equal sign) as you suggested, the data appears but it reverts back to its inaccurate state listing items that are not "greater than" the date field.&amp;nbsp; What does the 'equals' sign do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas of why this behaviour occurs?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 06:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-items-after-a-certain-date-field/m-p/636549#M1090795</guid>
      <dc:creator />
      <dc:date>2014-06-03T06:06:48Z</dc:date>
    </item>
  </channel>
</rss>

