<?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 greater than Variable - Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208826#M64050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have use num() in your Variable declaration syntax and comparing a date field with that..May be this may be the Reason for data Type Mismatch...&lt;/P&gt;&lt;P&gt;So,you may convert the Variable v90 to the Date Data Type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Apr 2011 12:38:22 GMT</pubDate>
    <dc:creator>rahulgupta</dc:creator>
    <dc:date>2011-04-11T12:38:22Z</dc:date>
    <item>
      <title>Date greater than Variable - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208823#M64047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my script I set up a variable:&lt;/P&gt;&lt;P&gt;LET v90 = num(today()-90);&lt;/P&gt;&lt;P&gt;Within the charts etc, I need to count the number of cases where the date is greater or equal to the variable;&lt;/P&gt;&lt;P&gt;Something like Count({$&amp;lt;Date = {'&amp;gt;=$(v90)}&amp;gt;}Case)&lt;/P&gt;&lt;P&gt;Just cant work out the correct syntax! Any Help would be great thanks!&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 11:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208823#M64047</guid>
      <dc:creator />
      <dc:date>2011-04-11T11:08:48Z</dc:date>
    </item>
    <item>
      <title>SV:Date greater than Variable - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208824#M64048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;In the load script:&lt;/P&gt;&lt;P&gt;Let v90 = Date(today()-90);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the charts expression:&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Date={"&amp;gt;=$(v90)"}&amp;gt;} Case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 11:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208824#M64048</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-04-11T11:24:33Z</dc:date>
    </item>
    <item>
      <title>SV:Date greater than Variable - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208825#M64049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let v90 = Date(today()-90);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is generating a date of 30/12/1899&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 12:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208825#M64049</guid>
      <dc:creator />
      <dc:date>2011-04-11T12:19:17Z</dc:date>
    </item>
    <item>
      <title>Date greater than Variable - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208826#M64050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have use num() in your Variable declaration syntax and comparing a date field with that..May be this may be the Reason for data Type Mismatch...&lt;/P&gt;&lt;P&gt;So,you may convert the Variable v90 to the Date Data Type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 12:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208826#M64050</guid>
      <dc:creator>rahulgupta</dc:creator>
      <dc:date>2011-04-11T12:38:22Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Date greater than Variable - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208827#M64051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know really.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let v90 = Date(today()-90);&lt;/P&gt;&lt;P&gt;is generating a date of 01/11/2011&lt;/P&gt;&lt;P&gt;for me (as expected).&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 13:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208827#M64051</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-04-11T13:03:29Z</dc:date>
    </item>
    <item>
      <title>SV:Date greater than Variable - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208828#M64052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;What it may be happening here is that your date is being evaluated twice, so Date(Today()-90) = "11/01/2011" so its doing 11 / 1 / 2011 which returns a decimal numeric value of 0,000546. Date(0,000546) is actualy 30/12/1899 which is the epoch (day zero) for QlikView. Further explanation on this behavior an be found &lt;A href="http://community.qlik.com/forums/p/42403/167835.aspx#167835" target="_blank" title="evaluating time stamp"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;How are you building your expressions? How are you expanding the variable?&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 14:10:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208828#M64052</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-04-11T14:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date greater than Variable - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208829#M64053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure this will resolve you issue, but I found that when I create a variable on the front end (not via the script), I HAVE to include the "=" sign before the expression.&amp;nbsp; When you check a TEXT box, both works, but when you put it in an expression the one without the "=" does not work.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I.e. My Variable vMaxPeriod defined as: =Max([Fin Period])&lt;/P&gt;&lt;P&gt;and my Expression: Avg({&amp;lt;[Fin Period]= {'$(vMaxPeriod)'}&amp;gt;} [Summary Score])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 18:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208829#M64053</guid>
      <dc:creator>rcurlewis</dc:creator>
      <dc:date>2016-06-07T18:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Date greater than Variable - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208830#M64054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, that solved a problem that had been driving me nuts for hours!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jul 2016 07:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208830#M64054</guid>
      <dc:creator />
      <dc:date>2016-07-02T07:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date greater than Variable - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208831#M64055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the easiest would be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(if(Date &amp;gt;= v90, 1))&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;=count(if(Date &amp;gt;= $(v90), 1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I understand that this is not in the Set Analysis....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 14:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-greater-than-Variable-Set-Analysis/m-p/208831#M64055</guid>
      <dc:creator>rcurlewis</dc:creator>
      <dc:date>2016-07-21T14:27:06Z</dc:date>
    </item>
  </channel>
</rss>

