<?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 Between Date Not working correctly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Between-Date-Not-working-correctly/m-p/230135#M82003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bummer. It's not that easy then.&lt;/P&gt;&lt;P&gt;I would create a straight table with IngEmployeeID as the dimension and AddYear(DateFrom,-2),AddYear(DateTo,-2), dateHired and the original count as expressions and see if you find anything strange.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2010 16:36:27 GMT</pubDate>
    <dc:creator>pover</dc:creator>
    <dc:date>2010-12-22T16:36:27Z</dc:date>
    <item>
      <title>Between Date Not working correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Between-Date-Not-working-correctly/m-p/230132#M82000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;P&gt;=Count(if(datHired &amp;gt;= AddYears(DateFrom,-2) AND datHired &amp;lt;= AddYears(DateTo,-2) ,lngEmployeeID))&lt;/P&gt;&lt;P&gt;The above works perfectly unless the datHired is equal to the "To" Date (AddYears(DateTo,-2) )&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;If the To: date is '1/31'2008' the EmployeeID is excluded from the COUNT. The date is formatted straight from SQL as a DATE datatype, so there is no time confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is driving me nuts! Any and all help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 02:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Between-Date-Not-working-correctly/m-p/230132#M82000</guid>
      <dc:creator />
      <dc:date>2010-12-22T02:21:35Z</dc:date>
    </item>
    <item>
      <title>Between Date Not working correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Between-Date-Not-working-correctly/m-p/230133#M82001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to make sure, do a num(addyears(DateTo,-2)) to make sure you get a whole number.&lt;/P&gt;&lt;P&gt;On a side note, I never knew the addyears() function existed. I've always used addmonths() because addyears() doesn't appear in the list of date and time functions in the help file. I wonder what others functions exist out there that aren't documented....&lt;/P&gt;&lt;P&gt;Regards.,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 02:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Between-Date-Not-working-correctly/m-p/230133#M82001</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-12-22T02:41:10Z</dc:date>
    </item>
    <item>
      <title>Between Date Not working correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Between-Date-Not-working-correctly/m-p/230134#M82002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Karl!&lt;/P&gt;&lt;P&gt;Ran the number conversion and a whole number is returned as expected. Going to keep cranking away at this until I find a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh and the AddYears function is only available in QV10 . . I believe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 16:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Between-Date-Not-working-correctly/m-p/230134#M82002</guid>
      <dc:creator />
      <dc:date>2010-12-22T16:29:40Z</dc:date>
    </item>
    <item>
      <title>Between Date Not working correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Between-Date-Not-working-correctly/m-p/230135#M82003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bummer. It's not that easy then.&lt;/P&gt;&lt;P&gt;I would create a straight table with IngEmployeeID as the dimension and AddYear(DateFrom,-2),AddYear(DateTo,-2), dateHired and the original count as expressions and see if you find anything strange.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 16:36:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Between-Date-Not-working-correctly/m-p/230135#M82003</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-12-22T16:36:27Z</dc:date>
    </item>
    <item>
      <title>Between Date Not working correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Between-Date-Not-working-correctly/m-p/230136#M82004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I think that Num only changes the display of the number, and not the internal representation. So it looks like a whole number, but in fact it still has a fractional portion.&lt;/P&gt;&lt;P&gt;To get a true whole number, use one of the &lt;B&gt;round&lt;/B&gt;, &lt;B&gt;floor&lt;/B&gt; or &lt;B&gt;ceil&lt;/B&gt; functions, depending on how you want to truncate the date value.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 16:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Between-Date-Not-working-correctly/m-p/230136#M82004</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-12-22T16:39:21Z</dc:date>
    </item>
    <item>
      <title>Between Date Not working correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Between-Date-Not-working-correctly/m-p/230137#M82005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FWIW AddYears is available in QV9 (at least in SR5), but never documented!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 16:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Between-Date-Not-working-correctly/m-p/230137#M82005</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-12-22T16:45:42Z</dc:date>
    </item>
    <item>
      <title>Between Date Not working correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Between-Date-Not-working-correctly/m-p/230138#M82006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Turns out the Between process was functioning correctly, but I was excluding the data from the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all of your help guys! Now can someone help me get this egg off of my face? &lt;IMG alt="Embarrassed" src="http://community.qlik.com/emoticons/emotion-10.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 17:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Between-Date-Not-working-correctly/m-p/230138#M82006</guid>
      <dc:creator />
      <dc:date>2010-12-22T17:18:49Z</dc:date>
    </item>
  </channel>
</rss>

