<?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: Variable Execution In Inline Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-Execution-In-Inline-Load/m-p/833069#M987752</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;It seems you mix logic which can be implemented in a load script with expression's one. They are similar in some aspects but differ in details. The variable you created with LET can be used in Pivot Table of any other chart, but in load script you should use other syntax constraction. I believe it's better to use FOR-NEXT cycle which would add record per record to your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Maxim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jul 2015 05:46:35 GMT</pubDate>
    <dc:creator>maksim_senin</dc:creator>
    <dc:date>2015-07-21T05:46:35Z</dc:date>
    <item>
      <title>Variable Execution In Inline Load</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Execution-In-Inline-Load/m-p/833064#M987747</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 have a scenario where I need to evaluate an expression (that is stored in a variable) in Inline Load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It goes like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vGr = 'sum({&amp;lt;Side = {"Re"}&amp;gt;} Amount) - sum({&amp;lt;Side = {"Count Of Product"}&amp;gt;} Amount)'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;Side, Amount&lt;/P&gt;&lt;P&gt;Ar, $(vGr)&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon taking the variable vGr in a textbox, it displays the sum amount (which is what is required). However when taken in a table box, it simply displays the expression itself as in the 'Let statement'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirement - I need to show the evaluated expression of the variable in my pivot table/ Table Box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would really appreciate if anybody comes up with a solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Umar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 18:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Execution-In-Inline-Load/m-p/833064#M987747</guid>
      <dc:creator>umartareen</dc:creator>
      <dc:date>2015-07-20T18:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Execution In Inline Load</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Execution-In-Inline-Load/m-p/833065#M987748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="text-decoration: line-through;"&gt;LET vGr = 'Sum({&amp;lt;Side = {"Re"}&amp;gt;} Amount) - Sum({&amp;lt;Side = {"Count Of Product"}&amp;gt;} Amount)';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;STRONG&gt;LOAD Side,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Evaluate(Amount) as Amount&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;STRONG&gt;Inline [&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;STRONG&gt;Side, Amount&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;STRONG&gt;Ar, $(vGr)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="text-decoration: line-through;"&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 18:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Execution-In-Inline-Load/m-p/833065#M987748</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-20T18:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Execution In Inline Load</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Execution-In-Inline-Load/m-p/833066#M987749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can evaluate a set expression in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, a &lt;EM&gt;table box&lt;/EM&gt; can't have expressions, so it will always show the field value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further more, I don't think you'll find a way to evaluate the field value as a kind of dimensional expression except using a pick(match()) combination. If you are looking for something like this, there are some examples here in the forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 18:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Execution-In-Inline-Load/m-p/833066#M987749</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-20T18:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Execution In Inline Load</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Execution-In-Inline-Load/m-p/833067#M987750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That makes sense &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I remember Clever Anjos showing how Variables can be evaluated in the a Inline load. So I thought it would work. But it makes sense that since set analysis does not work in the script, it would not be evaluated as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 18:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Execution-In-Inline-Load/m-p/833067#M987750</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-20T18:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Execution In Inline Load</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Execution-In-Inline-Load/m-p/833068#M987751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thank You for the comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually need to show the evaluated output in a pivot table. Also, I am able to evaluate this expression when I use the variable in a textbox, but unable to display it in a pivot table. Not sure why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Umar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 02:46:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Execution-In-Inline-Load/m-p/833068#M987751</guid>
      <dc:creator>umartareen</dc:creator>
      <dc:date>2015-07-21T02:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Execution In Inline Load</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Execution-In-Inline-Load/m-p/833069#M987752</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;It seems you mix logic which can be implemented in a load script with expression's one. They are similar in some aspects but differ in details. The variable you created with LET can be used in Pivot Table of any other chart, but in load script you should use other syntax constraction. I believe it's better to use FOR-NEXT cycle which would add record per record to your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Maxim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 05:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Execution-In-Inline-Load/m-p/833069#M987752</guid>
      <dc:creator>maksim_senin</dc:creator>
      <dc:date>2015-07-21T05:46:35Z</dc:date>
    </item>
  </channel>
</rss>

