<?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 Using variable to define load conditions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-variable-to-define-load-conditions/m-p/1869157#M71763</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am writing a load script and want to use the same condition when loading tables on multiple occasions. The condition is simple: I want to load only where a reference field is bigger than a certain number. But, I want to be able to change this later without having to go back and change it in all these places. I hoped making a variable (SET vMinRef = '1000';) and then using this in the&amp;nbsp; where clause (WHERE ref&amp;nbsp; &amp;gt;= vMinRef;) would do the trick. But this won't work, saying it can't find the field.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to do this in the load script? How should I go about this?&lt;/P&gt;</description>
    <pubDate>Fri, 10 Dec 2021 15:34:26 GMT</pubDate>
    <dc:creator>Posb1</dc:creator>
    <dc:date>2021-12-10T15:34:26Z</dc:date>
    <item>
      <title>Using variable to define load conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Using-variable-to-define-load-conditions/m-p/1869157#M71763</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am writing a load script and want to use the same condition when loading tables on multiple occasions. The condition is simple: I want to load only where a reference field is bigger than a certain number. But, I want to be able to change this later without having to go back and change it in all these places. I hoped making a variable (SET vMinRef = '1000';) and then using this in the&amp;nbsp; where clause (WHERE ref&amp;nbsp; &amp;gt;= vMinRef;) would do the trick. But this won't work, saying it can't find the field.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to do this in the load script? How should I go about this?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 15:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-variable-to-define-load-conditions/m-p/1869157#M71763</guid>
      <dc:creator>Posb1</dc:creator>
      <dc:date>2021-12-10T15:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable to define load conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Using-variable-to-define-load-conditions/m-p/1869174#M71764</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I think in your load you need to wrap the variable in $(), so ref&amp;gt;=$(vMinRef).&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 16:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-variable-to-define-load-conditions/m-p/1869174#M71764</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2021-12-10T16:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable to define load conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Using-variable-to-define-load-conditions/m-p/1869711#M71820</link>
      <description>&lt;P&gt;Thanks Chris,&lt;/P&gt;
&lt;P&gt;This worked great. I must have overlooked this in the documentation. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 11:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-variable-to-define-load-conditions/m-p/1869711#M71820</guid>
      <dc:creator>Posb1</dc:creator>
      <dc:date>2021-12-13T11:22:22Z</dc:date>
    </item>
  </channel>
</rss>

