<?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: using a variable in Qlik Sense load script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/using-a-variable-in-Qlik-Sense-load-script/m-p/31064#M2101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Many thanks.&lt;/SPAN&gt; &lt;SPAN&gt;This knowledge will significantly speed up my loading script.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Is '$(vMaxID)' the correct way to use the variable in sql select?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="s3gt_translate_tooltip_mini_box" style="background: initial !important; border: initial !important; border-radius: initial !important; border-spacing: initial !important; border-collapse: initial !important; direction: ltr !important; flex-direction: initial !important; font-weight: initial !important; height: initial !important; letter-spacing: initial !important; min-width: initial !important; max-width: initial !important; min-height: initial !important; max-height: initial !important; margin: auto !important; outline: initial !important; padding: initial !important; position: absolute; table-layout: initial !important; text-align: initial !important; text-shadow: initial !important; width: initial !important; word-break: initial !important; word-spacing: initial !important; overflow-wrap: initial !important; box-sizing: initial !important; display: initial !important; color: inherit !important; font-size: 13px !important; font-family: X-LocaleSpecific, sans-serif, Tahoma, Helvetica !important; line-height: 13px !important; vertical-align: top !important; white-space: inherit !important; left: 86px; top: 673px; opacity: 0.65;"&gt;&lt;DIV class="s3gt_translate_tooltip_mini" title="Markierten Text übersetzen"&gt; &lt;/DIV&gt;&lt;DIV class="s3gt_translate_tooltip_mini" title="Abspielen"&gt; &lt;/DIV&gt;&lt;DIV class="s3gt_translate_tooltip_mini" title="In Zwischenablage kopieren"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Apr 2018 07:51:49 GMT</pubDate>
    <dc:creator>boreus-rz</dc:creator>
    <dc:date>2018-04-13T07:51:49Z</dc:date>
    <item>
      <title>using a variable in Qlik Sense load script</title>
      <link>https://community.qlik.com/t5/App-Development/using-a-variable-in-Qlik-Sense-load-script/m-p/31062#M2099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Hello everybody.&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I have a table with different entries. First of all, there is a column "id". &lt;SPAN&gt;Now I want to save the data in a .qvd file and add only new data.&lt;/SPAN&gt; By concatenate. &lt;SPAN&gt;To identify the new data I would like to do something like: let "&lt;EM&gt;vMaxID = max (id);&lt;/EM&gt;".&lt;/SPAN&gt; &lt;SPAN&gt;But this only returns NULL and not the largest previous id.&lt;/SPAN&gt; How can I do that?&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 06:55:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/using-a-variable-in-Qlik-Sense-load-script/m-p/31062#M2099</guid>
      <dc:creator>boreus-rz</dc:creator>
      <dc:date>2018-04-13T06:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: using a variable in Qlik Sense load script</title>
      <link>https://community.qlik.com/t5/App-Development/using-a-variable-in-Qlik-Sense-load-script/m-p/31063#M2100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max(id) has no meaning in this context -- that's why you get a null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use the script to generate a max and then Peek that into the variable. Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;T_Max:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Max(id) as Maxid&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident ....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vMaxID = Peek('Maxid');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table T_Max:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 07:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/using-a-variable-in-Qlik-Sense-load-script/m-p/31063#M2100</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-04-13T07:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: using a variable in Qlik Sense load script</title>
      <link>https://community.qlik.com/t5/App-Development/using-a-variable-in-Qlik-Sense-load-script/m-p/31064#M2101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Many thanks.&lt;/SPAN&gt; &lt;SPAN&gt;This knowledge will significantly speed up my loading script.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Is '$(vMaxID)' the correct way to use the variable in sql select?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="s3gt_translate_tooltip_mini_box" style="background: initial !important; border: initial !important; border-radius: initial !important; border-spacing: initial !important; border-collapse: initial !important; direction: ltr !important; flex-direction: initial !important; font-weight: initial !important; height: initial !important; letter-spacing: initial !important; min-width: initial !important; max-width: initial !important; min-height: initial !important; max-height: initial !important; margin: auto !important; outline: initial !important; padding: initial !important; position: absolute; table-layout: initial !important; text-align: initial !important; text-shadow: initial !important; width: initial !important; word-break: initial !important; word-spacing: initial !important; overflow-wrap: initial !important; box-sizing: initial !important; display: initial !important; color: inherit !important; font-size: 13px !important; font-family: X-LocaleSpecific, sans-serif, Tahoma, Helvetica !important; line-height: 13px !important; vertical-align: top !important; white-space: inherit !important; left: 86px; top: 673px; opacity: 0.65;"&gt;&lt;DIV class="s3gt_translate_tooltip_mini" title="Markierten Text übersetzen"&gt; &lt;/DIV&gt;&lt;DIV class="s3gt_translate_tooltip_mini" title="Abspielen"&gt; &lt;/DIV&gt;&lt;DIV class="s3gt_translate_tooltip_mini" title="In Zwischenablage kopieren"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 07:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/using-a-variable-in-Qlik-Sense-load-script/m-p/31064#M2101</guid>
      <dc:creator>boreus-rz</dc:creator>
      <dc:date>2018-04-13T07:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: using a variable in Qlik Sense load script</title>
      <link>https://community.qlik.com/t5/App-Development/using-a-variable-in-Qlik-Sense-load-script/m-p/31065#M2102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is numeric, then you will not need the quotes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where id = $(vMaxID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its is text, then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where id = '$(vMaxID)';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 09:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/using-a-variable-in-Qlik-Sense-load-script/m-p/31065#M2102</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-04-13T09:06:42Z</dc:date>
    </item>
  </channel>
</rss>

