<?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 external expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/external-expressions/m-p/198468#M57765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean that these expressions are fixed at load time or dynamically recalculated each time?&lt;/P&gt;&lt;P&gt;You can use the "evaluate ( &amp;lt;string&amp;gt; )" function, but not in chart expressions. This would be done in the load script.&lt;/P&gt;&lt;P&gt;If you use "LET varString = 'a + b' " , the variable will hold the value of a + b at the time this line is encountered, and variable expansion will give that value.&lt;/P&gt;&lt;P&gt;If you use "SET varString = 'a + b' " instead of LET, the variable will hold the string, and variable expansion will give the text, which is then calculated using the values of a and b when that calculation takes place.&lt;/P&gt;&lt;P&gt;This is probably not what you meant, but I am not sure that I understood.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Sep 2009 21:49:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-09-24T21:49:40Z</dc:date>
    <item>
      <title>external expressions</title>
      <link>https://community.qlik.com/t5/QlikView/external-expressions/m-p/198467#M57764</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;My customer wants to maintain an expression list in an excel file.&lt;/P&gt;&lt;P&gt;QV treat these expressions as regular text and it is not possible to evaluate text in a chart.&lt;/P&gt;&lt;P&gt;Variables is also not best solution because there are hundreds of expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to use these expression once loaded into QV besides assigning it to variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 20:56:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/external-expressions/m-p/198467#M57764</guid>
      <dc:creator>xtrimf</dc:creator>
      <dc:date>2009-09-24T20:56:41Z</dc:date>
    </item>
    <item>
      <title>external expressions</title>
      <link>https://community.qlik.com/t5/QlikView/external-expressions/m-p/198468#M57765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean that these expressions are fixed at load time or dynamically recalculated each time?&lt;/P&gt;&lt;P&gt;You can use the "evaluate ( &amp;lt;string&amp;gt; )" function, but not in chart expressions. This would be done in the load script.&lt;/P&gt;&lt;P&gt;If you use "LET varString = 'a + b' " , the variable will hold the value of a + b at the time this line is encountered, and variable expansion will give that value.&lt;/P&gt;&lt;P&gt;If you use "SET varString = 'a + b' " instead of LET, the variable will hold the string, and variable expansion will give the text, which is then calculated using the values of a and b when that calculation takes place.&lt;/P&gt;&lt;P&gt;This is probably not what you meant, but I am not sure that I understood.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 21:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/external-expressions/m-p/198468#M57765</guid>
      <dc:creator />
      <dc:date>2009-09-24T21:49:40Z</dc:date>
    </item>
    <item>
      <title>external expressions</title>
      <link>https://community.qlik.com/t5/QlikView/external-expressions/m-p/198469#M57766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;please see the attached example.&lt;/P&gt;&lt;P&gt;Use the DEBUGGER to see what happens if you reload the script.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 22:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/external-expressions/m-p/198469#M57766</guid>
      <dc:creator />
      <dc:date>2009-09-24T22:06:57Z</dc:date>
    </item>
    <item>
      <title>external expressions</title>
      <link>https://community.qlik.com/t5/QlikView/external-expressions/m-p/198470#M57767</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;The reason we are trying to do it in excel is because we need a different expression for each row.&lt;/P&gt;&lt;P&gt;with the current solution I still have to do :&lt;/P&gt;&lt;P&gt;if(rowno()=1,$(Variable1))&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;if(rowno()=2,$(Variable2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what we are trying to avoid because of performance issues.&lt;/P&gt;&lt;P&gt;I thought that by doing it in excel i could just load the same field...&lt;/P&gt;&lt;P&gt;no solution yet...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2009 04:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/external-expressions/m-p/198470#M57767</guid>
      <dc:creator>xtrimf</dc:creator>
      <dc:date>2009-09-26T04:05:12Z</dc:date>
    </item>
    <item>
      <title>external expressions</title>
      <link>https://community.qlik.com/t5/QlikView/external-expressions/m-p/198471#M57768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;xtrim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;couple thoughts:&lt;/P&gt;&lt;P&gt;1. if you could describe your business problem, perhaps we could find a better solution. Using a different expression in each row sounds ... hm, a little extreme - there has to be a better way.&lt;/P&gt;&lt;P&gt;2. If you really need to do it the way you describe, it's not such a big deal to assign hundreds of expression into variables automatically:&lt;/P&gt;&lt;P&gt;- read from excel&lt;/P&gt;&lt;P&gt;- process the data row by row. Process the following in the loop:&lt;/P&gt;&lt;P&gt;- assign variables holding the name of the "expression variable" and the formula&lt;/P&gt;&lt;P&gt;- assign the formula to the desired variable name, like this:&lt;/P&gt;&lt;P&gt;LET $(v_VarName) = $(v_Formula);&lt;/P&gt;&lt;P&gt;cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2009 23:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/external-expressions/m-p/198471#M57768</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-09-26T23:07:25Z</dc:date>
    </item>
    <item>
      <title>external expressions</title>
      <link>https://community.qlik.com/t5/QlikView/external-expressions/m-p/198472#M57769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try to describe the problem:&lt;/P&gt;&lt;P&gt;* - I have a budget table and a fact table. the tables cannot be linked (except time dimention).&lt;/P&gt;&lt;P&gt;* - the budget has also "Total" Sections.&lt;/P&gt;&lt;P&gt;* - The customer has many reports, each assembled from different budget rows.&lt;/P&gt;&lt;P&gt;* - For each budget row there are several calculation ( Budget, Actual, Diff, % Diff)&lt;/P&gt;&lt;P&gt;* The "Actual" calculation can be very complex sometime, while the budget calcs are quit simple.&lt;/P&gt;&lt;P&gt;* For each budget section there is a different expression for each { Budget, Actual, Diff, % Diff}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following:&lt;/P&gt;&lt;P&gt;1 - budget row names as dimentions, and calculation ( Budget, Actual, Diff, % Diff) as expressions.&lt;/P&gt;&lt;P&gt;This solution requires each calc to identify the row that it is in and apply the correct calculation for this row.&lt;/P&gt;&lt;P&gt;major performance issue in this one.&lt;/P&gt;&lt;P&gt;2 - budget row name as expressions and ( Budget, Actual, Diff, % Diff) as dimensions.&lt;/P&gt;&lt;P&gt;This solution requires that for each budget row I need to identify the dimension and apply the correct calc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 18:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/external-expressions/m-p/198472#M57769</guid>
      <dc:creator>xtrimf</dc:creator>
      <dc:date>2009-09-29T18:17:10Z</dc:date>
    </item>
    <item>
      <title>external expressions</title>
      <link>https://community.qlik.com/t5/QlikView/external-expressions/m-p/198473#M57770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have more or less the same problem. Oleg's solution for loading external expressions into QlikView seems to be working fine. However, I am having some with how to reference the expression.&lt;/P&gt;&lt;P&gt;Each different item I load has a different formula. In the load script I assign these formulas to a variable named v_[Name of item], so v_Sales, v_Visits, v_Costs etc.&lt;/P&gt;&lt;P&gt;I want to display these items in a straight table, I know the name of the item so I want to reference the variable with something like this:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;$($(='v_' &amp;amp; ItemName)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Unfortunately, this doesn't seem to work. How can I dynamically change the name of the variable that is being referenced?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 14:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/external-expressions/m-p/198473#M57770</guid>
      <dc:creator />
      <dc:date>2010-03-11T14:59:18Z</dc:date>
    </item>
  </channel>
</rss>

