<?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: variable with Makedate not comparing to database date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/variable-with-Makedate-not-comparing-to-database-date/m-p/1511391#M750473</link>
    <description>&lt;P&gt;That works.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Now can you explain why this works ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Nov 2018 08:00:04 GMT</pubDate>
    <dc:creator>leenlart</dc:creator>
    <dc:date>2018-11-23T08:00:04Z</dc:date>
    <item>
      <title>variable with Makedate not comparing to database date</title>
      <link>https://community.qlik.com/t5/QlikView/variable-with-Makedate-not-comparing-to-database-date/m-p/1511238#M750470</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have loaded a table from a database.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would now like to select all the lines from that inital table where the date is equal to the last day of the previous month.&amp;nbsp; For testing purposes, I set my date to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino" color="#0000FF"&gt;LET vMoisProvisions = MakeDate(2018,9,30);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Now my resident load does this :&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino" color="#0000FF"&gt;resident Situations&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="georgia,palatino" color="#0000FF"&gt;where num(DATESIT) = num($(vMoisProvisions)) ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The resident load is returning nothing.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My datesit looks like 43373 if I stick it in a text box or a list box.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I do a text box with num(&lt;SPAN&gt;$(vMoisProvisions)) I also get 43373.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I put in the following line in my load script and debug I get 0,001651....&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino" color="#0000FF"&gt;&lt;SPAN&gt;vMoisProvisions = num($(vMoisProvisions));&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;So what is going on here?&amp;nbsp; How can I compare my vMoisProvisions to the DATESIT correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-with-Makedate-not-comparing-to-database-date/m-p/1511238#M750470</guid>
      <dc:creator>leenlart</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: variable with Makedate not comparing to database date</title>
      <link>https://community.qlik.com/t5/QlikView/variable-with-Makedate-not-comparing-to-database-date/m-p/1511239#M750472</link>
      <description>Maybe this:&lt;BR /&gt;&lt;BR /&gt;where num(DATESIT) = num('$(vMoisProvisions)') ;</description>
      <pubDate>Thu, 22 Nov 2018 17:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-with-Makedate-not-comparing-to-database-date/m-p/1511239#M750472</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2018-11-22T17:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: variable with Makedate not comparing to database date</title>
      <link>https://community.qlik.com/t5/QlikView/variable-with-Makedate-not-comparing-to-database-date/m-p/1511391#M750473</link>
      <description>&lt;P&gt;That works.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Now can you explain why this works ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 08:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-with-Makedate-not-comparing-to-database-date/m-p/1511391#M750473</guid>
      <dc:creator>leenlart</dc:creator>
      <dc:date>2018-11-23T08:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: variable with Makedate not comparing to database date</title>
      <link>https://community.qlik.com/t5/QlikView/variable-with-Makedate-not-comparing-to-database-date/m-p/1514010#M750475</link>
      <description>&lt;P&gt;&lt;SPAN&gt;It is needed to be enclosed in quotes as it is a date. Otherwise in Num() will be extracted something like 29/11/2018, which is a division. That's why you get such a number (0,001651).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 06:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-with-Makedate-not-comparing-to-database-date/m-p/1514010#M750475</guid>
      <dc:creator>ckarras22</dc:creator>
      <dc:date>2018-11-29T06:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: variable with Makedate not comparing to database date</title>
      <link>https://community.qlik.com/t5/QlikView/variable-with-Makedate-not-comparing-to-database-date/m-p/1514035#M750476</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for taking the time to explain this!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 07:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-with-Makedate-not-comparing-to-database-date/m-p/1514035#M750476</guid>
      <dc:creator>leenlart</dc:creator>
      <dc:date>2018-11-29T07:51:25Z</dc:date>
    </item>
  </channel>
</rss>

