<?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 compare date variable with field value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/compare-date-variable-with-field-value/m-p/1764403#M454192</link>
    <description>&lt;P&gt;I have been struggling for hours now to get the correct&amp;nbsp; expression, so I hope you can help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a variable vMonthend_year_1:&amp;nbsp; =date(MonthEnd( addyears(today(),-1)),'DD-MM-YYYY')&lt;/P&gt;&lt;P&gt;When I use this expression in a textbox&amp;nbsp; it shows the correct value (30-11-2019) because current date is 25-11-2020.&lt;/P&gt;&lt;P&gt;When I use the variable in a textbox&amp;nbsp; like&amp;nbsp; = $(vMonthend_year_1) the result is -2000 (probably&amp;nbsp; 30 minus 11 minus 2000)&lt;/P&gt;&lt;P&gt;When i use this expression in a textbox : date($(vMonthend_year_1) the result is 09-07-1894 (???)&lt;/P&gt;&lt;P&gt;All kinds of variations (with or without $&amp;nbsp; or use&amp;nbsp; " ") it doesn't help&lt;/P&gt;&lt;P&gt;I have to use this variable in a set analysis expression I kindly ask you to help me with this expression&lt;/P&gt;&lt;P&gt;{&amp;lt;fielddate= {"&amp;lt;= $(vMonthend_year_1)"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A link to helpfull documentation about date variables would be appreciated to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 17:46:40 GMT</pubDate>
    <dc:creator>curiousfellow</dc:creator>
    <dc:date>2024-11-16T17:46:40Z</dc:date>
    <item>
      <title>compare date variable with field value</title>
      <link>https://community.qlik.com/t5/QlikView/compare-date-variable-with-field-value/m-p/1764403#M454192</link>
      <description>&lt;P&gt;I have been struggling for hours now to get the correct&amp;nbsp; expression, so I hope you can help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a variable vMonthend_year_1:&amp;nbsp; =date(MonthEnd( addyears(today(),-1)),'DD-MM-YYYY')&lt;/P&gt;&lt;P&gt;When I use this expression in a textbox&amp;nbsp; it shows the correct value (30-11-2019) because current date is 25-11-2020.&lt;/P&gt;&lt;P&gt;When I use the variable in a textbox&amp;nbsp; like&amp;nbsp; = $(vMonthend_year_1) the result is -2000 (probably&amp;nbsp; 30 minus 11 minus 2000)&lt;/P&gt;&lt;P&gt;When i use this expression in a textbox : date($(vMonthend_year_1) the result is 09-07-1894 (???)&lt;/P&gt;&lt;P&gt;All kinds of variations (with or without $&amp;nbsp; or use&amp;nbsp; " ") it doesn't help&lt;/P&gt;&lt;P&gt;I have to use this variable in a set analysis expression I kindly ask you to help me with this expression&lt;/P&gt;&lt;P&gt;{&amp;lt;fielddate= {"&amp;lt;= $(vMonthend_year_1)"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A link to helpfull documentation about date variables would be appreciated to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-date-variable-with-field-value/m-p/1764403#M454192</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2024-11-16T17:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: compare date variable with field value</title>
      <link>https://community.qlik.com/t5/QlikView/compare-date-variable-with-field-value/m-p/1764416#M454194</link>
      <description>&lt;P&gt;This is some alternative outputs if your system date format is YYYY-MM-DD&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vegar_1-1606314374592.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44820i2CB743D7DDC62C5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vegar_1-1606314374592.png" alt="Vegar_1-1606314374592.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;Take a look at attached qvw&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 14:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-date-variable-with-field-value/m-p/1764416#M454194</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-11-25T14:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: compare date variable with field value</title>
      <link>https://community.qlik.com/t5/QlikView/compare-date-variable-with-field-value/m-p/1764423#M454195</link>
      <description>&lt;P&gt;Thank you very much, this helps a lot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like the answer is in the use of $&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 14:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-date-variable-with-field-value/m-p/1764423#M454195</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2020-11-25T14:49:11Z</dc:date>
    </item>
  </channel>
</rss>

