<?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 between string dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-between-string-dates/m-p/1223068#M390801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;PublicHoliday&lt;/STRONG&gt;&lt;/SPAN&gt; field&amp;nbsp; string or&amp;nbsp; proper date? How does it look in the list box?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Dec 2016 09:04:11 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2016-12-22T09:04:11Z</dc:date>
    <item>
      <title>Count between string dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-between-string-dates/m-p/1223067#M390800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day.&lt;/P&gt;&lt;P&gt;i am hoping that someone could help in this regard.&lt;/P&gt;&lt;P&gt;i have created a variable to create a custom financial start and end date as per our company financial start and end dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i now need to count the number of public holidays in my public holiday table between our financial start date and end dates. i cannot seem to get the correct counts from my expression. I am not sure if it is a problem with the way i have created my variables, please could someone assist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Expression for Variables.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM&gt;Start&lt;/EM&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=DATE#('01/07/' &amp;amp; (MaxFinYear-1),'DD/MM/YYYY')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;End&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=DATE#('30/06/' &amp;amp; (MaxFinYear),'DD/MM/YYYY')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;When i place the variables into a label i get the correct dates and formats. But when i try and use the variables in the count, i get 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Expression for Count:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=count({&amp;lt;PublicHoliday={'&amp;gt;=$(zFinYearStart)&amp;lt;=$(zFinYearEnd)'}&amp;gt;} PublicHoliday)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;i have also tried converting date to Num but then i get the full count of all public holidays in my table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=count({&amp;lt;PublicHoliday={'&amp;gt;=$(Num(zFinYearStart))&amp;lt;=$(Num(zFinYearEnd))'}&amp;gt;} PublicHoliday)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any assistance would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 09:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-between-string-dates/m-p/1223067#M390800</guid>
      <dc:creator />
      <dc:date>2016-12-22T09:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count between string dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-between-string-dates/m-p/1223068#M390801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;PublicHoliday&lt;/STRONG&gt;&lt;/SPAN&gt; field&amp;nbsp; string or&amp;nbsp; proper date? How does it look in the list box?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 09:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-between-string-dates/m-p/1223068#M390801</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-12-22T09:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Count between string dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-between-string-dates/m-p/1223069#M390802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahhh...Thank you so much Tresesco B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i changed my date format to match my public holiday format and it now works.&lt;/P&gt;&lt;P&gt;sorry about that, i am still very new to Qlickview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for taking time to help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 09:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-between-string-dates/m-p/1223069#M390802</guid>
      <dc:creator />
      <dc:date>2016-12-22T09:13:53Z</dc:date>
    </item>
  </channel>
</rss>

