<?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 Comparing date field with variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-date-field-with-variable/m-p/357333#M1176375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I fixed it by calculating the variable one more time after the first dollar sign:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =Count({&amp;lt;tDate = {"&amp;gt;=$(=$(vSPCampaignStart))&amp;lt;=$(=$(vSPCampaignEnd))"}&amp;gt;}SPOrder)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why didn't it calculate the variable after the first dollar sign? Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2012 09:30:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-19T09:30:43Z</dc:date>
    <item>
      <title>Comparing date field with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-date-field-with-variable/m-p/357332#M1176374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I'm new to qlikview and have been trying to solve this rather basic date formula without luck:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my load script i have this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;[Dok. nr.] AS SPOrder,&lt;/P&gt;&lt;P&gt;&amp;nbsp; num(Date#( [Dok. kuupäev], 'DD.MM.YYYY')) as tDate,&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 saved variable called vSPCampaignStart:&lt;/P&gt;&lt;P&gt;num(Date#('16.11.2011','DD.MM.YYYY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and vSPCampaignEnd:&lt;/P&gt;&lt;P&gt;num(Date#('06.11.2012','DD.MM.YYYY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tDate outputs in format :&lt;/P&gt;&lt;P&gt;40180&lt;/P&gt;&lt;P&gt;40181&lt;/P&gt;&lt;P&gt;etc....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variables output:&lt;/P&gt;&lt;P&gt;40863&lt;/P&gt;&lt;P&gt;40914&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The queston is: How do i compare the tDate with those two variables?&lt;/P&gt;&lt;P&gt;My current formula is:&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;tDate = {"&amp;gt;=$(vSPCampaignStart)&amp;lt;=$(vSPCampaignEnd)"}&amp;gt;}SPOrder)&lt;/P&gt;&lt;P&gt;which outputs 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i replace variables in the formula with date numbers like this:&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;tDate = {"&amp;gt;=40863&amp;lt;=40914"}&amp;gt;}SPOrder)&lt;/P&gt;&lt;P&gt; i get 276, which is expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated, ive spent large portion of my weekend trying to solve this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: i'm using QlikView personal edition and can't open files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-date-field-with-variable/m-p/357332#M1176374</guid>
      <dc:creator />
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Comparing date field with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-date-field-with-variable/m-p/357333#M1176375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I fixed it by calculating the variable one more time after the first dollar sign:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =Count({&amp;lt;tDate = {"&amp;gt;=$(=$(vSPCampaignStart))&amp;lt;=$(=$(vSPCampaignEnd))"}&amp;gt;}SPOrder)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why didn't it calculate the variable after the first dollar sign? Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 09:30:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-date-field-with-variable/m-p/357333#M1176375</guid>
      <dc:creator />
      <dc:date>2012-03-19T09:30:43Z</dc:date>
    </item>
    <item>
      <title>Comparing date field with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-date-field-with-variable/m-p/357334#M1176376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; How you assigned the variable value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 09:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-date-field-with-variable/m-p/357334#M1176376</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-19T09:42:12Z</dc:date>
    </item>
    <item>
      <title>Comparing date field with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-date-field-with-variable/m-p/357335#M1176377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tigekala,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is quite simple, when you define the expression of a variable if you place an '=' in the beginning, the result is evaluated always. If you don't place the '=' the expression is only evaluated when you do a dollar expansion like you did when you repetead the dollar sign.&lt;/P&gt;&lt;P&gt;It's usefull to not put the equal sign when you want to define an expression that should only be evaluated in a graph for each dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this shed some light into your issue (and future ones &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 09:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-date-field-with-variable/m-p/357335#M1176377</guid>
      <dc:creator>clisboa_noesis</dc:creator>
      <dc:date>2012-03-19T09:47:13Z</dc:date>
    </item>
    <item>
      <title>Comparing date field with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-date-field-with-variable/m-p/357336#M1176378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Celambarasan and Carlos.&lt;/P&gt;&lt;P&gt;I defined the variables without the equasion mark. d'oh!&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 11:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-date-field-with-variable/m-p/357336#M1176378</guid>
      <dc:creator />
      <dc:date>2012-03-19T11:45:43Z</dc:date>
    </item>
  </channel>
</rss>

