<?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 Declare variable works after binary load but not in original scipt in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Declare-variable-works-after-binary-load-but-not-in-original/m-p/736206#M674817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone tell me why the segment of script below works after I do a binary load of a report but not when I add it to the end of the script for that report andh ow to fix it? I'm just trying to get the max of dates in the data we load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD max(Date) as tmpMaxDate&lt;/P&gt;&lt;P&gt;Resident table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxVesselDate = floor(peek('tmpMaxDate'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2014 20:14:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-23T20:14:33Z</dc:date>
    <item>
      <title>Declare variable works after binary load but not in original scipt</title>
      <link>https://community.qlik.com/t5/QlikView/Declare-variable-works-after-binary-load-but-not-in-original/m-p/736206#M674817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone tell me why the segment of script below works after I do a binary load of a report but not when I add it to the end of the script for that report andh ow to fix it? I'm just trying to get the max of dates in the data we load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD max(Date) as tmpMaxDate&lt;/P&gt;&lt;P&gt;Resident table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxVesselDate = floor(peek('tmpMaxDate'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 20:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declare-variable-works-after-binary-load-but-not-in-original/m-p/736206#M674817</guid>
      <dc:creator />
      <dc:date>2014-07-23T20:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Declare variable works after binary load but not in original scipt</title>
      <link>https://community.qlik.com/t5/QlikView/Declare-variable-works-after-binary-load-but-not-in-original/m-p/736207#M674818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Variables dont get copied over to the new qvw when you do a binary load.&lt;/P&gt;&lt;P&gt;The variables need to be recreated in the final file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: A binary load copies only the data and the data-model. Nothing else gets copied over.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 20:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declare-variable-works-after-binary-load-but-not-in-original/m-p/736207#M674818</guid>
      <dc:creator />
      <dc:date>2014-07-23T20:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Declare variable works after binary load but not in original scipt</title>
      <link>https://community.qlik.com/t5/QlikView/Declare-variable-works-after-binary-load-but-not-in-original/m-p/736208#M674819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's not the problem I am having. The problem is that I CAN create the variable after loading my live report with a binary load and that script, but I CANNOT create the variable when I copy that segment of script to the end of the live report and reload it.&lt;/P&gt;&lt;P&gt;Edit: Actually I think I added the segment as a new tab in the script, rather than at the end of the current tab, if that makes a difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 20:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declare-variable-works-after-binary-load-but-not-in-original/m-p/736208#M674819</guid>
      <dc:creator />
      <dc:date>2014-07-23T20:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Declare variable works after binary load but not in original scipt</title>
      <link>https://community.qlik.com/t5/QlikView/Declare-variable-works-after-binary-load-but-not-in-original/m-p/736209#M674820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I am not able to fully understand the issue at hand. Please bear with me here. Lets say you have qvw1 and qvw2.&lt;/P&gt;&lt;P&gt;qvw1 &amp;gt; binary load &amp;gt; qvw2.&amp;nbsp; So qvw2 is a result of the binary load. Now you are tying to create a variable in which qvw?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also creating in a different tab shouldn't make any difference. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, are you getting any error message or the variable doesn't exist or has blank value after reload of qvw2 ? Which one of these are you facing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 20:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declare-variable-works-after-binary-load-but-not-in-original/m-p/736209#M674820</guid>
      <dc:creator />
      <dc:date>2014-07-23T20:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Declare variable works after binary load but not in original scipt</title>
      <link>https://community.qlik.com/t5/QlikView/Declare-variable-works-after-binary-load-but-not-in-original/m-p/736210#M674821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you pleas post the error that the script is displaying?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 21:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declare-variable-works-after-binary-load-but-not-in-original/m-p/736210#M674821</guid>
      <dc:creator>jaimeaguilar</dc:creator>
      <dc:date>2014-07-23T21:05:09Z</dc:date>
    </item>
  </channel>
</rss>

