<?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: Import expression with nested variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Import-expression-with-nested-variable/m-p/1189585#M884128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Visibility: @Sunny T&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to share a sample app ? I am not sure where else to look into, I am sure it is a small modification some where which can resolve. Let us see if Sunny can give some suggestions ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Sep 2016 16:13:11 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2016-09-22T16:13:11Z</dc:date>
    <item>
      <title>Import expression with nested variable</title>
      <link>https://community.qlik.com/t5/QlikView/Import-expression-with-nested-variable/m-p/1189582#M884124</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 am trying to import an expression through an external text file which has some variables in the expression. However it is not able to replace the variable value inside the expression. Details below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable to be imported&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SET vCurrentVolumeTRx&lt;/TD&gt;&lt;TD&gt;= sum({&amp;lt;[Time_Vlookup.Month End Date]={"&amp;gt;=(=$(&lt;STRONG&gt;vTrendStart&lt;/STRONG&gt;))&amp;lt;=($(=&lt;STRONG&gt;vTrendEnd&lt;/STRONG&gt;))"},[Time Bucket Type]={'Current'},[CAL_SRC]={'Sales'}&amp;gt;} if([Time_Vlookup.Month End Date]=[Month End Date],TRX_NORM));&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definition of variables used in the above expression&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE height="160" style="width: 1127px; height: 162px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SET &lt;STRONG&gt;vTrendStart&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;=&lt;/TD&gt;&lt;TD&gt;min({&amp;lt;[Time_Vlookup.Time Bucket Name]=P([Time Bucket Name]), [Time_Vlookup.Time Bucket Type] = P([Time Bucket Type])&amp;gt;}[Time_Vlookup.Month End Date]) ;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;SET &lt;STRONG&gt;vTrendEnd&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;=&lt;/TD&gt;&lt;TD&gt;max({&amp;lt;[Time_Vlookup.Time Bucket Name]=P([Time Bucket Name]), [Time_Vlookup.Time Bucket Type] = P([Time Bucket Type])&amp;gt;}[Time_Vlookup.Month End Date]) ;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I am getting the expression after import.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum({&amp;lt;[Time_Vlookup.Month End Date]={"&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;"},[Time Bucket Type]={'Current'},[CAL_SRC]={'Sales'}&amp;gt;} if([Time_Vlookup.Month End Date]=[Month End Date],TRX_NORM))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-expression-with-nested-variable/m-p/1189582#M884124</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Import expression with nested variable</title>
      <link>https://community.qlik.com/t5/QlikView/Import-expression-with-nested-variable/m-p/1189583#M884126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SET&amp;nbsp; variablename = '=&lt;/SPAN&gt;sum({&amp;lt;[Time_Vlookup.Month End Date]={"$(= '&amp;gt;=' &amp;amp; $(vTrendStart)) &amp;amp; '&amp;lt;=' $(vTrendEnd))"} ......';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 16:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-expression-with-nested-variable/m-p/1189583#M884126</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-09-21T16:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Import expression with nested variable</title>
      <link>https://community.qlik.com/t5/QlikView/Import-expression-with-nested-variable/m-p/1189584#M884127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks Vish for the reply, however using ' in the export statement does not work. The expression value stores all the statement in the load script which have been coded after its declaration.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 05:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-expression-with-nested-variable/m-p/1189584#M884127</guid>
      <dc:creator />
      <dc:date>2016-09-22T05:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Import expression with nested variable</title>
      <link>https://community.qlik.com/t5/QlikView/Import-expression-with-nested-variable/m-p/1189585#M884128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Visibility: @Sunny T&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to share a sample app ? I am not sure where else to look into, I am sure it is a small modification some where which can resolve. Let us see if Sunny can give some suggestions ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 16:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-expression-with-nested-variable/m-p/1189585#M884128</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-09-22T16:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Import expression with nested variable</title>
      <link>https://community.qlik.com/t5/QlikView/Import-expression-with-nested-variable/m-p/1189586#M884129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm actually experiencing much of the same issue.&amp;nbsp; While trying to import the following from an excel file:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MonthYearList = {'$(=Max(MonthYearList))'}, [Trending] = {'Revenue'}&amp;gt;} [Amount]); I lose the entire &lt;SPAN style="font-size: 13.3333px;"&gt;$(=Max(MonthYearList)) expression within the variable.&amp;nbsp; I have yet to find a solution to this issue.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 15:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-expression-with-nested-variable/m-p/1189586#M884129</guid>
      <dc:creator />
      <dc:date>2016-09-27T15:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Import expression with nested variable</title>
      <link>https://community.qlik.com/t5/QlikView/Import-expression-with-nested-variable/m-p/1189587#M884131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny can you help on this ? &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 16:36:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-expression-with-nested-variable/m-p/1189587#M884131</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-09-27T16:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Import expression with nested variable</title>
      <link>https://community.qlik.com/t5/QlikView/Import-expression-with-nested-variable/m-p/1189588#M884132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a lot of solutions to this $-sign-expands-too-early problem in QlikView Script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But probably the simplest one is to replace the $-sign in your expression source with another character (one that won't be used for anythjing else, like a pound sign #) and use the &lt;SPAN style="font-family: 'courier new', courier;"&gt;Replace()&lt;/SPAN&gt; function once the string has been loaded into a variable. Use the &lt;SPAN style="font-family: 'courier new', courier;"&gt;Replace()&lt;/SPAN&gt; function during the very last step, to avoid getting substituted again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you load expressions as strings in your script, and they shouldn't expand yet, use a LET statement and the concatenation operator like in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vMyExpression = 'Sum($' &amp;amp; '(vWhatMustBeReplacedLaterOn))';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spmitting the $() construct will avoid the $-sign substitution from happening right there and then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 16:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-expression-with-nested-variable/m-p/1189588#M884132</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-09-27T16:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Import expression with nested variable</title>
      <link>https://community.qlik.com/t5/QlikView/Import-expression-with-nested-variable/m-p/1189589#M884134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you resolve the problem or else Try this without Variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;[Time_Vlookup.Month End Date]={&lt;SPAN style="color: #ff0000;"&gt;'&amp;gt;=' &amp;amp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;"&lt;/SPAN&gt;$(&lt;SPAN style="color: #993366;"&gt;min&lt;/SPAN&gt;({&amp;lt;[Time_Vlookup.Time Bucket Name]=P([Time Bucket Name]), [Time_Vlookup.Time Bucket Type] = P([Time Bucket Type])&amp;gt;} [Time_Vlookup.Month End Date]))&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;"&lt;/STRONG&gt; &lt;SPAN style="color: #ff0000;"&gt;'&amp;lt;=' &amp;amp;&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;"&lt;/SPAN&gt;$(&lt;SPAN style="color: #993366;"&gt;max&lt;/SPAN&gt;({&amp;lt;[Time_Vlookup.Time Bucket Name]=P([Time Bucket Name]), [Time_Vlookup.Time Bucket Type] = P([Time Bucket Type])&amp;gt;}[Time_Vlookup.Month End Date]))&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;"&lt;/STRONG&gt;}, [Time Bucket Type]={'Current'}, CAL_SRC={'Sales'}&amp;gt;} if([Time_Vlookup.Month End Date]=[Month End Date],TRX_NORM))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #ff0000; text-decoration: underline;"&gt;Note:&lt;/SPAN&gt;&lt;/SPAN&gt; Would you try using UAT for Min and Max Variable on your Text Object. Is there any chance to share Application using Scramble Data. &lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Oct 2016 07:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-expression-with-nested-variable/m-p/1189589#M884134</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-10-01T07:33:54Z</dc:date>
    </item>
  </channel>
</rss>

