<?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: Nesting Variables with parameters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/2023147#M1222129</link>
    <description>&lt;P&gt;I do not really want to evaluate anything within the script.&amp;nbsp; I just want to create a string that I will evaluate later.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Load scripts and charts/tables are fast to copy to another app. Variables in the UI are not. So in the end, I will add it to the table instead.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2023 11:07:56 GMT</pubDate>
    <dc:creator>E_Røse</dc:creator>
    <dc:date>2023-01-09T11:07:56Z</dc:date>
    <item>
      <title>Nesting Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/644542#M678296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to pass the results of a variable with parameters to another variable having parameters but I can't quite get it to work.&amp;nbsp; I have this 2 variables which work when they are not nested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;eNetScenMV&lt;/STRONG&gt; = Sum ({$&amp;lt;$(vMonthEnd), [Account Type]=, [Scenario]={$1}&amp;gt;} [#Market Value Usd])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; usage: $( eNetScenMV("PC1-") )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;eSumOfSquares&lt;/STRONG&gt; = sqrt( sqr($1) + sqr($2) + sqr($3) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; usage $( eSumOfSquares(1, 2, 3) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to use the results of eNetScenMV as parameters to eSumOfSquares like so in a TEXT object:&lt;/P&gt;&lt;P&gt;=$(eSumOfSquares($(eNetScenMV("PC1-")), $(eNetScenMV("PC2-")), $(eNetScenMV("PC3+"))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do this I get an "Error in Set Modifier Expression".&amp;nbsp; I've tried a number of things but cannot get it to work.&amp;nbsp; I appreciate any help on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 11:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/644542#M678296</guid>
      <dc:creator />
      <dc:date>2014-05-23T11:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Nesting Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/644543#M678297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nasario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(eSumOfSquares($(=$(eNetScenMV("PC1-"))), $(=$(eNetScenMV("PC2-"))), $(=$(eNetScenMV("PC3+")))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 11:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/644543#M678297</guid>
      <dc:creator />
      <dc:date>2014-05-23T11:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Nesting Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/644544#M678298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/122330"&gt;Dariusz Mielczarek&lt;/A&gt; this worked!&amp;nbsp; I'm still trying to understand this dollar expansion business &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; .&amp;nbsp; Does the inner dollar expansion &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;=$(eNetScenMV("PC1-")&lt;/STRONG&gt;&lt;/SPAN&gt; get the expression to be expanded by the outer &lt;STRONG&gt;$(...)&lt;/STRONG&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 12:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/644544#M678298</guid>
      <dc:creator />
      <dc:date>2014-05-23T12:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Nesting Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/1708346#M678299</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I have a similar problem, but I couldn't solve it. Would you help me, please?&lt;/P&gt;&lt;P&gt;I have 2 SET-variables:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set vTest1=left($1,$2);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Set vTest2=right($1,$2);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Test-Solution with variable #1:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Let X = $(vTest1('Hello you',7));&lt;BR /&gt;Trace '$(X)'; //the solution is &lt;FONT color="#FF0000"&gt;'Hello y'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Test-Solution with variable #2:&lt;/U&gt;&lt;BR /&gt;Let X = $(vTest2('$(X)',1));&amp;nbsp;&lt;FONT color="#808080"&gt; // or Let X = $(vTest2('Hello you',1))&lt;/FONT&gt;&lt;BR /&gt;Trace '$(X)'; //the solution is &lt;FONT color="#FF0000"&gt;'y'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Now I nest the two variables together:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Let X = $(vTest2($(vTest1('Hallo you',7)),1));&lt;BR /&gt;Trace '$(X)'; // the solution is &lt;FONT color="#FF0000"&gt;an error&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;I tried another way (similar to your solution):&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Let X = $(vTest2($(&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;=$(&lt;/FONT&gt;&lt;/STRONG&gt;vTest1('Hallo you',7)&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;),1));&lt;BR /&gt;Trace '$(X)'; // but, the solution is &lt;FONT color="#FF0000"&gt;an error too&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 20:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/1708346#M678299</guid>
      <dc:creator>Slawomir</dc:creator>
      <dc:date>2020-06-04T20:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Nesting Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/2022840#M1222117</link>
      <description>&lt;P&gt;&lt;A id="link_34" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115028" target="_self" aria-label="View Profile of Slawomir" aria-describedby="userProfileCard-115028"&gt;&lt;SPAN class=""&gt;Slawomir&lt;/SPAN&gt;&lt;/A&gt;, Did you find a solution to this?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 21:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/2022840#M1222117</guid>
      <dc:creator>E_Røse</dc:creator>
      <dc:date>2023-01-06T21:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Nesting Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/2023051#M1222122</link>
      <description>&lt;P&gt;Nesting of variables failed mostly because each included comma is treated as parameter-delimiter of the variable. Also the creating and calling syntax is depending on the specific context.&lt;/P&gt;
&lt;P&gt;Even if it's possible to develop working solutions the nesting of variables could become quite complex - much more as it would be sensible within the most scenarios because the aim of variables is to simplify things and not to gain the opposite ... Therefore my suggestion - keep it simple.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 08:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/2023051#M1222122</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-01-09T08:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Nesting Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/2023095#M1222125</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not using a nested variable is not option (this time). &lt;BR /&gt;&lt;BR /&gt;The problem seems to be that I cannot avoid the inner variable being evaluated during the load (which does not work with the $1 placeholder in the inner parameter). It works if I create the definition in the UI (which I was hoping to avoid).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can create&amp;nbsp; this parameter&amp;nbsp; pTemplate_DimAColumn_Show in th UI $(pTemplate_DimAColumn_ShowCondition2($(=$(pTemplate_DimAColumn($1)))))&amp;nbsp; and it works as expected.&lt;/P&gt;
&lt;P&gt;In the load on the other hand, the inner parameter just evaluates to missing value and I get the same result as just writing: $(pTemplate_DimAColumn_ShowCondition2($1)).&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 10:47:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/2023095#M1222125</guid>
      <dc:creator>E_Røse</dc:creator>
      <dc:date>2023-01-09T10:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Nesting Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/2023122#M1222127</link>
      <description>&lt;P&gt;This kind of $-sign expansion:&amp;nbsp;&lt;SPAN&gt;$(= ... )&lt;/SPAN&gt; isn't available within the script else it's UI only. This means you need either a different logic how the variables are designed and later used or you remain by the working solution by creating the variables within the UI (beside this I'm not so sure if it has really benefits to create UI variable within the script).&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 10:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/2023122#M1222127</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-01-09T10:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Nesting Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/2023147#M1222129</link>
      <description>&lt;P&gt;I do not really want to evaluate anything within the script.&amp;nbsp; I just want to create a string that I will evaluate later.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Load scripts and charts/tables are fast to copy to another app. Variables in the UI are not. So in the end, I will add it to the table instead.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 11:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/2023147#M1222129</guid>
      <dc:creator>E_Røse</dc:creator>
      <dc:date>2023-01-09T11:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Nesting Variables with parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/2023246#M1222130</link>
      <description>&lt;P&gt;There are various ways to transfer variables between documents like macros, reading the meta-data, using prj-folders, ... I think there were even more which I don't remember yet and unfortunately a lot of older community-content to these topic isn't available anymore.&lt;/P&gt;
&lt;P&gt;But you are right it's not so easy as copy &amp;amp; paste from script or objects ... but you may also copy &amp;amp; paste of applications and then removing any unwanted stuff.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 14:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nesting-Variables-with-parameters/m-p/2023246#M1222130</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-01-09T14:11:59Z</dc:date>
    </item>
  </channel>
</rss>

