<?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 Nested variable - sum of variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-variable-sum-of-variables/m-p/1074072#M358485</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;I've been trying to do some research on the forums but I was unable to find something similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to define a variable to be the sum of two other variables or the result of any kind of math operation between two variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jan 2016 20:10:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-12T20:10:59Z</dc:date>
    <item>
      <title>Nested variable - sum of variables</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-variable-sum-of-variables/m-p/1074072#M358485</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;I've been trying to do some research on the forums but I was unable to find something similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to define a variable to be the sum of two other variables or the result of any kind of math operation between two variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 20:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-variable-sum-of-variables/m-p/1074072#M358485</guid>
      <dc:creator />
      <dc:date>2016-01-12T20:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Nested variable - sum of variables</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-variable-sum-of-variables/m-p/1074073#M358486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define vVarSum as:&lt;/P&gt;&lt;P&gt;=$(vVar1)+$(vVar2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 21:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-variable-sum-of-variables/m-p/1074073#M358486</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2016-01-12T21:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Nested variable - sum of variables</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-variable-sum-of-variables/m-p/1074074#M358487</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;From the script you can have something like this&lt;/P&gt;&lt;P&gt;LET vSumTest_1 = 2;&lt;/P&gt;&lt;P&gt;LET vSumTest_2 = 10;&lt;/P&gt;&lt;P&gt;LET vFinal_Sum = vSumTest_1 + vSumTest_2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 22:02:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-variable-sum-of-variables/m-p/1074074#M358487</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2016-01-12T22:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Nested variable - sum of variables</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-variable-sum-of-variables/m-p/1074075#M358488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Variables can reference each other just like cells in a spreadsheet application can reference each other. QlikView will parse and recalculate all dependent variables for every recalculation which is done - usually at every click or selection or change of selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If variable v1 has the value 45 and v2 has the value 56&amp;nbsp; nd v3 has the value (expression)&amp;nbsp;&amp;nbsp; =v1+v2 &lt;/P&gt;&lt;P&gt;Then the variable v3 when it is used in any kind of expression will return 101. I think you can reference variables in any number of levels and it will recalculate correctly - just like a modern spreadsheet - no big deal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The $-sign expansion is needed when you need to force an evaluation - but many Qlik developers use it more than needed when a simple direct reference to the variable is sufficient. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 22:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-variable-sum-of-variables/m-p/1074075#M358488</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-01-12T22:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Nested variable - sum of variables</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-variable-sum-of-variables/m-p/1074076#M358489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Petter, great explanation. Thanks for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 12:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-variable-sum-of-variables/m-p/1074076#M358489</guid>
      <dc:creator />
      <dc:date>2016-01-13T12:16:10Z</dc:date>
    </item>
  </channel>
</rss>

