<?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 Date field vs date variable comparison in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-field-vs-date-variable-comparison/m-p/1581563#M442940</link>
    <description>&lt;P&gt;I'm trying to make a comparison evaluation between a date variable&amp;nbsp; and a date stored in a table. I've tried several methods based on community posts, but can't seem to get this to work. The date is stored in the table in the format MM/DD/YYYY.&amp;nbsp;&lt;/P&gt;&lt;P&gt;SET vLast30 = today()-30;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;Table1:&lt;BR /&gt;Load *,&lt;BR /&gt;&lt;SPAN&gt;if(OPN_DT&amp;gt;date('$(vLast30)','MM/DD/YYYY'),'Yes','No') as [Too New]&lt;BR /&gt;Resident Extract;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried setting the variable like date((today()-30)),'MM/DD/YYYY') and tried several variations of num# with date functions but the comparison isn't made after the file loads and the $(&lt;EM&gt;vLast30&lt;/EM&gt;) variable shows 43571 after load.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:32:35 GMT</pubDate>
    <dc:creator>lbunnell</dc:creator>
    <dc:date>2024-11-16T03:32:35Z</dc:date>
    <item>
      <title>Date field vs date variable comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-field-vs-date-variable-comparison/m-p/1581563#M442940</link>
      <description>&lt;P&gt;I'm trying to make a comparison evaluation between a date variable&amp;nbsp; and a date stored in a table. I've tried several methods based on community posts, but can't seem to get this to work. The date is stored in the table in the format MM/DD/YYYY.&amp;nbsp;&lt;/P&gt;&lt;P&gt;SET vLast30 = today()-30;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;Table1:&lt;BR /&gt;Load *,&lt;BR /&gt;&lt;SPAN&gt;if(OPN_DT&amp;gt;date('$(vLast30)','MM/DD/YYYY'),'Yes','No') as [Too New]&lt;BR /&gt;Resident Extract;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried setting the variable like date((today()-30)),'MM/DD/YYYY') and tried several variations of num# with date functions but the comparison isn't made after the file loads and the $(&lt;EM&gt;vLast30&lt;/EM&gt;) variable shows 43571 after load.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-field-vs-date-variable-comparison/m-p/1581563#M442940</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2024-11-16T03:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Date field vs date variable comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-field-vs-date-variable-comparison/m-p/1581572#M442941</link>
      <description>&lt;P&gt;Try without the quotes and date mangling:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(OPN_DT &amp;gt; $(vLast30), 'Yes', 'No') as [Too New]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 13:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-field-vs-date-variable-comparison/m-p/1581572#M442941</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-05-17T13:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Date field vs date variable comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-field-vs-date-variable-comparison/m-p/1581579#M442942</link>
      <description>It's always easier than I try to make it out to be -lol. Thanks!</description>
      <pubDate>Fri, 17 May 2019 13:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-field-vs-date-variable-comparison/m-p/1581579#M442942</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2019-05-17T13:22:45Z</dc:date>
    </item>
  </channel>
</rss>

