<?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: Load Variables in Version 12.0 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Variables-in-Version-12-0/m-p/1085235#M361433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I can't reproduce the behaviour you're talking about. &lt;/SPAN&gt;As far as I know Qlikview has always dollar expanded variables in the script.&lt;/P&gt;&lt;P&gt;There are dozens of discussions on this site from people falling in that particular pit. The solution is one of these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SET vCurrentWeek = '=Week(Now())';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SET vAvailSK&amp;nbsp; = '=SUM({$&amp;lt;Week={"@(vCurrentWeek)"}&amp;gt;} (CapY + CapC + CapF)*Distance)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LET &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vAvailSK&amp;nbsp; = Replace($(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vAvailSK&lt;/SPAN&gt;),'@','$');&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SET vCurrentWeek = '=Week(Now())';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LET vAvailSK&amp;nbsp; = '=SUM({$&amp;lt;Week={"$' &amp;amp; '(vCurrentWeek)"}&amp;gt;} (CapY + CapC + CapF)*Distance)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2016 09:14:55 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-03-16T09:14:55Z</dc:date>
    <item>
      <title>Load Variables in Version 12.0</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Variables-in-Version-12-0/m-p/1085234#M361432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just recently installed a version 12.0.2 on an another PC and have run into a problem with importing variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During my load script I load a couple of variables, but they get changed during the import process. In Version 11.20.12904 it works just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get this to work in the new version?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual problem is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definition of variable: SET vAvailSK&amp;nbsp; = '=SUM({$&amp;lt;Week={"$(vCurrentWeek)"}&amp;gt;} (CapY + CapC + CapF)*Distance)';&lt;/P&gt;&lt;P&gt;Definition of variable: SET vCurrentWeek = '=Week(Date(Now()))':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import in Version 11.20: =SUM({$&amp;lt;Week={"$(vCurrentWeek)"}&amp;gt;} (CapY + CapC + CapF)*Distance)&lt;/P&gt;&lt;P&gt;Import in Version 12.0.2: =SUM({$&amp;lt;Week={"=Week(Date(Now()))"}&amp;gt;} (CapY + CapC + CapF)*Distance)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason, the "imported" version in 12.0.2. results in a different, wrong value, while the original version of the variable calculates the proper value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to stop Qlikview to replace the variable name with the variable content during the import?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 09:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Variables-in-Version-12-0/m-p/1085234#M361432</guid>
      <dc:creator />
      <dc:date>2016-03-16T09:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load Variables in Version 12.0</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Variables-in-Version-12-0/m-p/1085235#M361433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I can't reproduce the behaviour you're talking about. &lt;/SPAN&gt;As far as I know Qlikview has always dollar expanded variables in the script.&lt;/P&gt;&lt;P&gt;There are dozens of discussions on this site from people falling in that particular pit. The solution is one of these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SET vCurrentWeek = '=Week(Now())';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SET vAvailSK&amp;nbsp; = '=SUM({$&amp;lt;Week={"@(vCurrentWeek)"}&amp;gt;} (CapY + CapC + CapF)*Distance)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LET &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vAvailSK&amp;nbsp; = Replace($(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vAvailSK&lt;/SPAN&gt;),'@','$');&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SET vCurrentWeek = '=Week(Now())';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LET vAvailSK&amp;nbsp; = '=SUM({$&amp;lt;Week={"$' &amp;amp; '(vCurrentWeek)"}&amp;gt;} (CapY + CapC + CapF)*Distance)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 09:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Variables-in-Version-12-0/m-p/1085235#M361433</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-16T09:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Load Variables in Version 12.0</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Variables-in-Version-12-0/m-p/1085236#M361434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I used the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LET vAvailSK&amp;nbsp; = '=SUM({$&amp;lt;Week={"$' &amp;amp; '(vCurrentWeek)"}&amp;gt;} (CapY + CapC + CapF)*Distance)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;version and this works. I'm a bit puzzled though, that in Version 11.2 it is importing it correctly. But at least it's working on the newer version now. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 09:56:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Variables-in-Version-12-0/m-p/1085236#M361434</guid>
      <dc:creator />
      <dc:date>2016-03-16T09:56:56Z</dc:date>
    </item>
  </channel>
</rss>

