<?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 Variable calculations lost in Source Control in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273247#M496392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that works.&amp;nbsp; It will suffice as a workaround for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jan 2012 22:04:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-16T22:04:57Z</dc:date>
    <item>
      <title>Variable calculations lost in Source Control</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273243#M496388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have implemented source control using the TFS integration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, variable values are stripped out.&amp;nbsp; I guess the process treats is as "data" and therefore it is not stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a heavy user of variables to simplify set analysis expressions and reuse calculations between charts and KPI gauges, so would really like it stored in source control.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 01:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273243#M496388</guid>
      <dc:creator />
      <dc:date>2012-01-13T01:37:31Z</dc:date>
    </item>
    <item>
      <title>Variable calculations lost in Source Control</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273244#M496389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried to define variables in the script editor instead?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2012 20:43:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273244#M496389</guid>
      <dc:creator />
      <dc:date>2012-01-14T20:43:28Z</dc:date>
    </item>
    <item>
      <title>Variable calculations lost in Source Control</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273245#M496390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That nearly works. The problem is some of the set analysis expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='=Sum({$ &amp;lt;PremiumReceivedYearNum={$(=vMaxFinancialYearNum)} &amp;gt;} PremiumReceived)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;becomes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$ &amp;lt;PremiumReceivedYearNum={(internal error)} &amp;gt;} PremiumReceived)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2012 22:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273245#M496390</guid>
      <dc:creator />
      <dc:date>2012-01-15T22:20:41Z</dc:date>
    </item>
    <item>
      <title>Variable calculations lost in Source Control</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273246#M496391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A workaround could be to use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET &lt;/STRONG&gt;EXPR='=Sum({$ &amp;lt;PremiumReceivedYearNum={$&lt;STRONG&gt;'&amp;amp;'&lt;/STRONG&gt;(=vMaxFinancialYearNum)} &amp;gt;} PremiumReceived)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET EXPR='=Sum({$ &amp;lt;PremiumReceivedYearNum={$(=vMaxFinancialYearNum)} &amp;gt;} PremiumReceived)'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 12:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273246#M496391</guid>
      <dc:creator />
      <dc:date>2012-01-16T12:46:59Z</dc:date>
    </item>
    <item>
      <title>Variable calculations lost in Source Control</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273247#M496392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that works.&amp;nbsp; It will suffice as a workaround for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 22:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273247#M496392</guid>
      <dc:creator />
      <dc:date>2012-01-16T22:04:57Z</dc:date>
    </item>
    <item>
      <title>Variable calculations lost in Source Control</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273248#M496393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Variable values are considered as data and therefore not saved in the PRJ folder. &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;By declaring the variables in the load script they will be stored in the PRJ folder and thereby will not vanish.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;It is known that in some cases variable definitions containing dollar expansions can lead to the desxribed issue. For these situations please use the workaround that was already identified above, meaning that you split the expression into two strings forcing the dollar expansion to not be expanded in the script but rather when called in application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 19:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273248#M496393</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2012-01-19T19:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variable calculations lost in Source Control</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273249#M496394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;My next issue is with variables that include single quotes in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;A variable with the expression&lt;/P&gt;&lt;PRE class="jive-pre notranslate" style="background-color: #eef4f9; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; padding-left: 10px; color: #636363;"&gt;&lt;CODE class="jive-code"&gt;=Date(AddMonths(Max(YearMonth), -12), 'MM-YYYY')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Needs to be written as &lt;/P&gt;&lt;PRE class="jive-pre notranslate" style="background-color: #eef4f9; font-size: 12px; margin-top: 10px; margin-right: 20px; margin-bottom: 10px; margin-left: 20px; padding-left: 10px; color: #636363;"&gt;&lt;CODE class="jive-code"&gt;LET v12MonthsToMax ='=Date(AddMonths(Max(YearMonth), -12), ' &amp;amp; chr(39) &amp;amp; 'MM-YYYY' &amp;amp; chr(39) &amp;amp; ')';&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 04:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273249#M496394</guid>
      <dc:creator />
      <dc:date>2012-01-31T04:52:13Z</dc:date>
    </item>
    <item>
      <title>Variable calculations lost in Source Control</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273250#M496395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can avoid that using SET instead of LET (SET simply assigns everything after the equal sign to be the variable content, single quotes or no). However, you can't avoid dollar sign expansion using SET, so if you need both, you need to write a convoluted expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 13:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273250#M496395</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2012-02-01T13:34:52Z</dc:date>
    </item>
    <item>
      <title>Variable calculations lost in Source Control</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273251#M496396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kuba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 21:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273251#M496396</guid>
      <dc:creator />
      <dc:date>2012-02-01T21:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Variable calculations lost in Source Control</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273252#M496397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option, that does not require unescaping/replacing, is storing the variables in an external file, load them into a temporary table and directly assign them using the peek function. You can find an example here: &lt;A class="loading" href="http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/" title="http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/"&gt;http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 21:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273252#M496397</guid>
      <dc:creator>barryharmsen</dc:creator>
      <dc:date>2013-01-30T21:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Variable calculations lost in Source Control</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273253#M496398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Barry.&amp;nbsp; I like that idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 21:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273253#M496398</guid>
      <dc:creator />
      <dc:date>2013-01-30T21:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Variable calculations lost in Source Control</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273254#M496399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is another option you can use and that is to load the current document into itself as XML to make use of the QVW header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1188088"&gt;Re: Variable's value in -prj folder xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoy you should be able to add Variables into source control, nice and easy &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 10:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-calculations-lost-in-Source-Control/m-p/273254#M496399</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-05T10:10:16Z</dc:date>
    </item>
  </channel>
</rss>

