<?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: Data Editor | Date comparison not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Data-Editor-Date-comparison-not-working/m-p/1835522#M69031</link>
    <description>&lt;P&gt;Your mxday is a field here and you have to get the value from this field into a variable and then it should work as expected. Try like:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Load Max(....&amp;nbsp; as maxday...;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Let vMaxDay=Num(Peek('maxday'));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;IF &lt;STRONG&gt;$(vMaxDay)&lt;/STRONG&gt; = num(today()) then&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Sep 2021 09:17:17 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2021-09-13T09:17:17Z</dc:date>
    <item>
      <title>Data Editor | Date comparison not working</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Editor-Date-comparison-not-working/m-p/1835511#M69027</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am currently dealing with the following problem: I&amp;nbsp;have a .qvd file from which I extract the maximum date:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD max(%ID_ZEIT_TAG_SK) AS maxday
FROM [$(v_QVD_Path)/daten.qvd](qvd);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result is 44452. But when comparing this value with the current date in the data editor, the following query is not working:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF num(maxday) = num(today()) then

trace LOAD!;

end if;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I compare these two values inside a table, it is working:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TinaHensel_0-1631521545219.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61783i1FD67CE7EE1829D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TinaHensel_0-1631521545219.png" alt="TinaHensel_0-1631521545219.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have a solution?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Tina&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 08:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Editor-Date-comparison-not-working/m-p/1835511#M69027</guid>
      <dc:creator>TinaHensel</dc:creator>
      <dc:date>2021-09-13T08:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Data Editor | Date comparison not working</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Editor-Date-comparison-not-working/m-p/1835522#M69031</link>
      <description>&lt;P&gt;Your mxday is a field here and you have to get the value from this field into a variable and then it should work as expected. Try like:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Load Max(....&amp;nbsp; as maxday...;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Let vMaxDay=Num(Peek('maxday'));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;IF &lt;STRONG&gt;$(vMaxDay)&lt;/STRONG&gt; = num(today()) then&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 09:17:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Editor-Date-comparison-not-working/m-p/1835522#M69031</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2021-09-13T09:17:17Z</dc:date>
    </item>
  </channel>
</rss>

