<?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: Date comparisson in set modifier in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-comparisson-in-set-modifier/m-p/1672652#M449509</link>
    <description>&lt;P&gt;It's hard to be sure about your issues, it depends on your system date format, but I'll try to guide you in the right direction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. When you want to evaluate a modifier you should use " " not ' '.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. All single value set modifier evaluations are text based, your expression should return a string value.&lt;/P&gt;&lt;P&gt;{&amp;lt;Date = {'42769'}&amp;gt;}&amp;nbsp; will not work if your Date is formatted as a dual with a text representation like this '2020-02-03' or similar. You will need to generate&amp;nbsp;{&amp;lt;Date = {'2020-02-03'}&amp;gt;} .&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 18:12:39 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2020-02-05T18:12:39Z</dc:date>
    <item>
      <title>Date comparisson in set modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparisson-in-set-modifier/m-p/1672630#M449507</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm trying to count the record with a date smaller then today.&lt;/P&gt;&lt;P&gt;With a hard coded date it is working:&lt;BR /&gt;=Count ({$ &amp;lt; NextDate={"&amp;lt;05-02-2020"}&amp;gt;} Maintenance)&lt;/P&gt;&lt;P&gt;I've tried to replace the date with the function Today(), that did not work.&lt;/P&gt;&lt;P&gt;So I've made a variable (Let varToday = floor(Today()); ) and want to use this variable:&lt;/P&gt;&lt;P&gt;=Count ({$ &amp;lt; NextDate={'&amp;lt;=$(varToday)'}&amp;gt;} Maintenance)&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 16:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparisson-in-set-modifier/m-p/1672630#M449507</guid>
      <dc:creator>janvandernagel</dc:creator>
      <dc:date>2020-02-05T16:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparisson in set modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparisson-in-set-modifier/m-p/1672652#M449509</link>
      <description>&lt;P&gt;It's hard to be sure about your issues, it depends on your system date format, but I'll try to guide you in the right direction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. When you want to evaluate a modifier you should use " " not ' '.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. All single value set modifier evaluations are text based, your expression should return a string value.&lt;/P&gt;&lt;P&gt;{&amp;lt;Date = {'42769'}&amp;gt;}&amp;nbsp; will not work if your Date is formatted as a dual with a text representation like this '2020-02-03' or similar. You will need to generate&amp;nbsp;{&amp;lt;Date = {'2020-02-03'}&amp;gt;} .&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 18:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparisson-in-set-modifier/m-p/1672652#M449509</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-02-05T18:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparisson in set modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparisson-in-set-modifier/m-p/1672712#M449511</link>
      <description>&lt;P&gt;Thanks for putting me in the right direction. The date format was indeed the problem.&lt;BR /&gt;I've been puzzling for quite a while with this article (and your input):&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Based on that I set a variable in the script:&lt;/P&gt;&lt;P&gt;Set vTodayTxt = "=Date(Today(),'DD-MM-YYYY')";&lt;/P&gt;&lt;P&gt;And I used that variable in the expression:&lt;/P&gt;&lt;P&gt;=Count ({$ &amp;lt;NextDate ={"&amp;lt;$(vTodayTxt)"}&amp;gt;} Maintenance)&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 21:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparisson-in-set-modifier/m-p/1672712#M449511</guid>
      <dc:creator>janvandernagel</dc:creator>
      <dc:date>2020-02-05T21:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparisson in set modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparisson-in-set-modifier/m-p/1675024#M449709</link>
      <description>&lt;P&gt;Glad it worked out for you!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 20:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparisson-in-set-modifier/m-p/1675024#M449709</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-02-12T20:19:00Z</dc:date>
    </item>
  </channel>
</rss>

