<?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: Qlikview Variables referencing variables does not work after upgrading to QV12 (from QV11) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-Variables-referencing-variables-does-not-work-after/m-p/1548036#M598592</link>
    <description>&lt;P&gt;Hi Marcus!&lt;/P&gt;&lt;P&gt;You solved my problem!&lt;/P&gt;&lt;P&gt;Thanks! This was really helpful. My main projects are with the MS stack, so unfortunately I'm not as up and running on the true differences/changes in different versions of Qlikview&amp;nbsp;as I would like to.&lt;BR /&gt;&lt;BR /&gt;I rewrote the expression&amp;nbsp;variables in the variable overview with double-quotes instead of singles, and it worked first try!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I will definitely go back to using variable overview as the source of variables. I've externalized this in a document outside of the app, because I thought it would be an easier way of deploying the same kpis&amp;nbsp;to different apps. But I think I'll keep them in-app only now!&lt;/P&gt;</description>
    <pubDate>Fri, 22 Feb 2019 11:57:17 GMT</pubDate>
    <dc:creator>eirikmagnussena</dc:creator>
    <dc:date>2019-02-22T11:57:17Z</dc:date>
    <item>
      <title>Qlikview Variables referencing variables does not work after upgrading to QV12 (from QV11)</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Variables-referencing-variables-does-not-work-after/m-p/1547705#M598590</link>
      <description>&lt;P&gt;I've just today upgraded my production environment to QW12.30 SR1&lt;/P&gt;&lt;P&gt;After this installation I have a few calculated KPIs that do no longer work.&lt;BR /&gt;&lt;BR /&gt;I've found that the problem occurs only with calculations that are set as variables in the load script and reference other variables.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;e.g this kpi would work (if expression in cell would be something like "&lt;EM&gt;=$(kpi.PnL('A'))&lt;/EM&gt;"&lt;BR /&gt;-------------------------------&lt;BR /&gt;let string.KPI-1= 'if(left($1, 1) = ''A'',&lt;BR /&gt;sum({&amp;lt;[Amount type code]={$1}, [KPI ID]={''BI-1''},[Source]= {''Actuals''}&amp;gt;} [Amount]),&lt;BR /&gt;sum({&amp;lt;[Amount type code]={$1}, [KPI ID]={''BI-1''},[Source]= {''NotActuals''} &amp;gt;} [Amount])&lt;BR /&gt;)';&lt;BR /&gt;let kpi.KPI= '=num#(replace(string.KPI, ''~'', ''$''))';&lt;BR /&gt;--------------------------------&lt;/P&gt;&lt;P&gt;while this one would not:&lt;/P&gt;&lt;P&gt;-------------------------------&lt;BR /&gt;let string.KPI-2 = 'num#(~(kpi.KPI1($1))) * 0.67 ';&lt;BR /&gt;let kpi.KPI-2= '=num#(replace(string.KPI-2, ''~'', ''$''))';&lt;BR /&gt;--------------------------------&lt;/P&gt;&lt;P&gt;These are not my actual KPIs offcourse, I've shortened them for easier readability here.&lt;BR /&gt;&lt;BR /&gt;All of the KPIs function without issue in QV11, so I guess my question is along the lines of:&lt;BR /&gt;Are there any changes in how variables are being handled from QV11 to QV12 that would cause this issue?&lt;BR /&gt;If so. Will someone help me understand how to rewrite these variables to actually work?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 18:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Variables-referencing-variables-does-not-work-after/m-p/1547705#M598590</guid>
      <dc:creator>eirikmagnussena</dc:creator>
      <dc:date>2019-02-21T18:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Variables referencing variables does not work after upgrading to QV12 (from QV11)</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Variables-referencing-variables-does-not-work-after/m-p/1547989#M598591</link>
      <description>&lt;P&gt;I don't know if there was any change within the variable-handling between the releases but I assume rather not because I don't remember to see any issues here in the community.&lt;/P&gt;&lt;P&gt;What has changed (I believe it came with 12.2) is the meaning of quotes within set analysis (and maybe in a few other features, too) so that single-quotes around any value don't are valid anymore to define a search-string (it was a bug) else the content will be only treated as strings.&lt;/P&gt;&lt;P&gt;This might cause your issues and could be adjusted with a system-variable (currently I don't know the name) within the document and/or the settings.ini to remain by the old handling or use the new one or the app-creation date defines which setting should be applied. But AFAIK this choice will be removed again with one of the future releases - to remain by the old handling is just saving some time before the hard break comes.&lt;/P&gt;&lt;P&gt;Beside this I wouldn't use this way to define (complex expression) variables. Either I would do it within the variable-editor or I would load them from a table and picking the variables from there within a loop. The reason for it is that it would avoid the efforts to handle the various quotes-stuff and/or the replacing-approaches of them and the $-signs. Within the following post you will find various examples for it: &lt;A href="https://community.qlik.com/t5/QlikView-Documents/Variables/ta-p/1497368" target="_blank" rel="noopener"&gt;Variables&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 10:21:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Variables-referencing-variables-does-not-work-after/m-p/1547989#M598591</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-02-22T10:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Variables referencing variables does not work after upgrading to QV12 (from QV11)</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Variables-referencing-variables-does-not-work-after/m-p/1548036#M598592</link>
      <description>&lt;P&gt;Hi Marcus!&lt;/P&gt;&lt;P&gt;You solved my problem!&lt;/P&gt;&lt;P&gt;Thanks! This was really helpful. My main projects are with the MS stack, so unfortunately I'm not as up and running on the true differences/changes in different versions of Qlikview&amp;nbsp;as I would like to.&lt;BR /&gt;&lt;BR /&gt;I rewrote the expression&amp;nbsp;variables in the variable overview with double-quotes instead of singles, and it worked first try!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I will definitely go back to using variable overview as the source of variables. I've externalized this in a document outside of the app, because I thought it would be an easier way of deploying the same kpis&amp;nbsp;to different apps. But I think I'll keep them in-app only now!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 11:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Variables-referencing-variables-does-not-work-after/m-p/1548036#M598592</guid>
      <dc:creator>eirikmagnussena</dc:creator>
      <dc:date>2019-02-22T11:57:17Z</dc:date>
    </item>
  </channel>
</rss>

