<?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: Variable in Load Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-in-Load-Statement/m-p/860009#M301114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try adding quotes to you variables &lt;SPAN style="color: #3366ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt; IF(CLOSE_DATE&amp;gt;='&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333320617676px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3366ff;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;$(vMinDate)'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3366ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;,1,0)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2015 19:30:31 GMT</pubDate>
    <dc:creator>ramoncova06</dc:creator>
    <dc:date>2015-04-17T19:30:31Z</dc:date>
    <item>
      <title>Variable in Load Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Load-Statement/m-p/860008#M301113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hello smart people,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm trying to use a variable in a load statement that pulls data from a QVD. Unfortunalety it is not going as I'd hoped. Perhaps someone can help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;Let vMinDate = '3/1/2014';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;MY_TABLE:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt; MY_ID, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOSE_DATE, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(CLOSE_DATE&amp;gt;=&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;$(vMinDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;,1,0)&amp;nbsp; AS&amp;nbsp; TBLBOX_FILTER&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;FROM&lt;BR /&gt;[$(vQVDFilePath)\MY_TABLE.QVD](&lt;/SPAN&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;qvd&lt;SPAN&gt;); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;When I run this, all values in TBLBOX_FILTER end up as 1, regardless of CLOSE_DATE. There should be some records with 0, as there is data with a CLOSE_DATE prior to 3/1/2014.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If I change the IF statement to have a hard-coded date:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 10pt;"&gt;IF(CLOSE_DATE&amp;gt;='3/1/2014',1,0)&amp;nbsp; AS&amp;nbsp; TBLBOX_FILTER&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;It works the way I want it - some records have 0 and some have 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any idea as to why it using the variable doesn't function properly?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Brent&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 19:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Load-Statement/m-p/860008#M301113</guid>
      <dc:creator />
      <dc:date>2015-04-17T19:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Load Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Load-Statement/m-p/860009#M301114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try adding quotes to you variables &lt;SPAN style="color: #3366ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt; IF(CLOSE_DATE&amp;gt;='&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333320617676px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3366ff;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;$(vMinDate)'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3366ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;,1,0)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 19:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Load-Statement/m-p/860009#M301114</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-17T19:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Load Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-Load-Statement/m-p/860010#M301115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did it. It seems a little strange. You would think that if it were surrounded by single quotes it would think the text between was literal and not a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for you help and quick response!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 19:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-Load-Statement/m-p/860010#M301115</guid>
      <dc:creator />
      <dc:date>2015-04-17T19:40:22Z</dc:date>
    </item>
  </channel>
</rss>

