<?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 variable in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/using-variable-in-script/m-p/136735#M601671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with character '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;TIMESTAMP &amp;gt; '$(vMAX_TSP)';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2018 08:59:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-25T08:59:56Z</dc:date>
    <item>
      <title>using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/using-variable-in-script/m-p/136734#M601670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm trying to write a script that will use a variable in where condition in data loading, example below.&lt;/P&gt;&lt;P&gt;I don't know why it does not work, any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAB_1:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[TIMESTAMP, COL_1, COL_2&lt;/P&gt;&lt;P&gt;2018-10-19 00:43:35 , PCF , 12&lt;/P&gt;&lt;P&gt;2018-10-20 07:36:45 , QAW , 31&lt;/P&gt;&lt;P&gt;2018-10-21 22:28:28 , ERT , 25&lt;/P&gt;&lt;P&gt;2018-10-22 03:42:20 , TPQ , 34&lt;/P&gt;&lt;P&gt;2018-10-20 23:23:29 , YWQ , 78&lt;/P&gt;&lt;P&gt;2018-10-21 10:08:33 , PRT , 49&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX_TIMESTAMP_TAB:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;timestamp(max(TIMESTAMP)) as MAX_TIMESTAMP&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;TAB_1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table TAB_1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vMAX_TSP = Peek('MAX_TIMESTAMP', 0 , 'MAX_TIMESTAMP_TAB');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAB_2:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[TIMESTAMP, COL_1, COL_2&lt;/P&gt;&lt;P&gt;2018-10-21 15:21:13 , PCF , 115&lt;/P&gt;&lt;P&gt;2018-10-20 21:30:01 , QAW , 103&lt;/P&gt;&lt;P&gt;2018-10-19 20:59:20 , ERT , 177&lt;/P&gt;&lt;P&gt;2018-10-22 20:25:56 , TPQ , 90&lt;/P&gt;&lt;P&gt;2018-10-21 08:58:04 , YWQ , 66&lt;/P&gt;&lt;P&gt;2018-10-19 15:29:26 , PRT , 264&lt;/P&gt;&lt;P&gt;2018-10-20 14:32:36 , YWQ , 282&lt;/P&gt;&lt;P&gt;2018-10-21 02:15:54 , PRT , 277&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;TIMESTAMP &amp;gt; $(vMAX_TSP);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 08:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-variable-in-script/m-p/136734#M601670</guid>
      <dc:creator>arsenal1983</dc:creator>
      <dc:date>2018-10-25T08:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/using-variable-in-script/m-p/136735#M601671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with character '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;TIMESTAMP &amp;gt; '$(vMAX_TSP)';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 08:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-variable-in-script/m-p/136735#M601671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-25T08:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/using-variable-in-script/m-p/136736#M601672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works! thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 09:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-variable-in-script/m-p/136736#M601672</guid>
      <dc:creator>arsenal1983</dc:creator>
      <dc:date>2018-10-25T09:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: using variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/using-variable-in-script/m-p/136737#M601673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can also use this in MAX_TIMESTAMP_TAB:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;timestamp&lt;STRONG style=": ; color: #ff0000; font-size: 14pt;"&gt;#&lt;/STRONG&gt;(max(TIMESTAMP)) as MAX_TIMESTAMP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 09:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-variable-in-script/m-p/136737#M601673</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2018-10-25T09:09:18Z</dc:date>
    </item>
  </channel>
</rss>

