<?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: nested variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/nested-variables/m-p/1297498#M616073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I attach the image of my problem:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="view.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168701_view.png" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The column [expression] is made by this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;=(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;EM&gt;$(Qtà 1 Lvl DiBa)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;*&lt;/SPAN&gt;[Qtà 2° Livello]&lt;SPAN class="s1"&gt;)+(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;EM&gt;$(Qtà 1 Lvl DiBa)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;*(&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;if&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;isnull&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;[Sfrido % Medio]&lt;SPAN class="s1"&gt;),0,&lt;/SPAN&gt;[Sfrido % Medio]&lt;SPAN class="s1"&gt;))/100)&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;The column [variables] is made by this expression:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;$(Qtà 2 Lvl DiBa)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;In my sheet i have defined in "view variables..."&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;IMG alt="variable1.png" class="jive-image image-2" height="185" src="https://community.qlik.com/legacyfs/online/168702_variable1.png" style="height: 184.879px; width: 655px;" width="655" /&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;IMG alt="variable2.png" class="jive-image image-3" height="70" src="https://community.qlik.com/legacyfs/online/168703_variable2.png" style="height: 69.5129px; width: 653px;" width="653" /&gt; &lt;/P&gt;&lt;P class="p1"&gt;The expression of the column [expression] (marked green) is the same expression defined in the variable [Qtà 2 Lvl DiBa] set in the column [variables]&lt;/P&gt;&lt;P class="p1"&gt;My question is: why the &lt;SPAN style="font-size: 13.3333px;"&gt;result of &lt;/SPAN&gt;column [variables] is "-" (null) and in the &lt;SPAN style="font-size: 13.3333px;"&gt;result of &lt;/SPAN&gt;column [expression] is correct?&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;I hope i have explained the situation.&lt;/P&gt;&lt;P class="p1"&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jun 2017 10:29:30 GMT</pubDate>
    <dc:creator>frinfo</dc:creator>
    <dc:date>2017-06-30T10:29:30Z</dc:date>
    <item>
      <title>nested variables</title>
      <link>https://community.qlik.com/t5/QlikView/nested-variables/m-p/1297496#M616071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;it's my first post on this community.&lt;/P&gt;&lt;P&gt;I have defined 2 variables (var1,var2). The first variable is an expression of fields extracts from my LOAD and it works well. var1 = Sum([Field1])+Sum(Field2])&lt;/P&gt;&lt;P&gt;The second var is an expression of my first var (var1) and some fields extracts from my LOAD. In this case my expression returns null, because it looks like it not evaluate my first var. var2 = $(var1) + sum([Field3])&lt;/P&gt;&lt;P&gt;How can i use a var in the expression of another var?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 07:53:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-variables/m-p/1297496#M616071</guid>
      <dc:creator>frinfo</dc:creator>
      <dc:date>2017-06-29T07:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: nested variables</title>
      <link>https://community.qlik.com/t5/QlikView/nested-variables/m-p/1297497#M616072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vFlag&amp;nbsp; =&amp;nbsp; = Sum(Field1) + Sum(Field2);&lt;/P&gt;&lt;P&gt;SET vFinal =&amp;nbsp; = $(vFlag) + Sum(Field3);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 16:32:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-variables/m-p/1297497#M616072</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-06-29T16:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: nested variables</title>
      <link>https://community.qlik.com/t5/QlikView/nested-variables/m-p/1297498#M616073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I attach the image of my problem:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="view.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168701_view.png" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The column [expression] is made by this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;=(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;EM&gt;$(Qtà 1 Lvl DiBa)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;*&lt;/SPAN&gt;[Qtà 2° Livello]&lt;SPAN class="s1"&gt;)+(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;EM&gt;$(Qtà 1 Lvl DiBa)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;*(&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;if&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;isnull&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;[Sfrido % Medio]&lt;SPAN class="s1"&gt;),0,&lt;/SPAN&gt;[Sfrido % Medio]&lt;SPAN class="s1"&gt;))/100)&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;The column [variables] is made by this expression:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;$(Qtà 2 Lvl DiBa)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;In my sheet i have defined in "view variables..."&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;IMG alt="variable1.png" class="jive-image image-2" height="185" src="https://community.qlik.com/legacyfs/online/168702_variable1.png" style="height: 184.879px; width: 655px;" width="655" /&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;IMG alt="variable2.png" class="jive-image image-3" height="70" src="https://community.qlik.com/legacyfs/online/168703_variable2.png" style="height: 69.5129px; width: 653px;" width="653" /&gt; &lt;/P&gt;&lt;P class="p1"&gt;The expression of the column [expression] (marked green) is the same expression defined in the variable [Qtà 2 Lvl DiBa] set in the column [variables]&lt;/P&gt;&lt;P class="p1"&gt;My question is: why the &lt;SPAN style="font-size: 13.3333px;"&gt;result of &lt;/SPAN&gt;column [variables] is "-" (null) and in the &lt;SPAN style="font-size: 13.3333px;"&gt;result of &lt;/SPAN&gt;column [expression] is correct?&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;I hope i have explained the situation.&lt;/P&gt;&lt;P class="p1"&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 10:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-variables/m-p/1297498#M616073</guid>
      <dc:creator>frinfo</dc:creator>
      <dc:date>2017-06-30T10:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: nested variables</title>
      <link>https://community.qlik.com/t5/QlikView/nested-variables/m-p/1297499#M616074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to remove this equal sign here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168737_Capture.PNG" style="height: 33px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you want to use the equal sign, try to use your variable without a dollar sign expansion and see if that helps you resolve your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 13:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-variables/m-p/1297499#M616074</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-30T13:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: nested variables</title>
      <link>https://community.qlik.com/t5/QlikView/nested-variables/m-p/1297500#M616075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try using quotes around your variables and try? If not could you please upload this sample to work on it quickly? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like: Can you try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= ('$(Qtà 1 Lvl DiBa)' * [Qtà 2° Livello])+ ( '$(Qtà 1 Lvl DiBa)'&amp;nbsp; *&amp;nbsp; (if(isnull([Sfrido % Medio]),0,[Sfrido % Medio]))/100)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 13:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-variables/m-p/1297500#M616075</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-06-30T13:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: nested variables</title>
      <link>https://community.qlik.com/t5/QlikView/nested-variables/m-p/1297501#M616076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Francesco,&lt;/P&gt;&lt;P&gt;You could try RangeSum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; $(var1) , sum([Field3])&lt;/SPAN&gt;) instead of ' + '. Rangesum treats a non numeric or a null argument as a zero rather than throwing an error like '+'. Maybe that will solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 13:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-variables/m-p/1297501#M616076</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-06-30T13:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: nested variables</title>
      <link>https://community.qlik.com/t5/QlikView/nested-variables/m-p/1297502#M616077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank to everyone for trying to help me.&lt;/P&gt;&lt;P&gt;The answer of Sunny solve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 15:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-variables/m-p/1297502#M616077</guid>
      <dc:creator>frinfo</dc:creator>
      <dc:date>2017-07-03T15:27:06Z</dc:date>
    </item>
  </channel>
</rss>

