<?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: Expression on variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-on-variable/m-p/286375#M106536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am talking about variables as expressions when they are used in objects like charts and textboxes. These variable can be&lt;STRONG&gt; created &lt;/STRONG&gt;in the load script, and even be loaded in the load script.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But variables can also be &lt;STRONG&gt;used &lt;/STRONG&gt;in the load script. In this case, the expression is also &lt;STRONG&gt;used &lt;/STRONG&gt;in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your question about expressions as variables when they are &lt;STRONG&gt;used &lt;/STRONG&gt;in &lt;STRONG&gt;objects &lt;/STRONG&gt;or when they are &lt;STRONG&gt;used &lt;/STRONG&gt;in the&lt;STRONG&gt; load script&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg. Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2012 14:22:20 GMT</pubDate>
    <dc:creator>RSvebeck</dc:creator>
    <dc:date>2012-01-19T14:22:20Z</dc:date>
    <item>
      <title>Expression on variable</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-on-variable/m-p/286371#M106532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, i've a little bit question......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use to create my qv project using variables, in these variable i write the common expressions, so i don't need to re-write more than one the same expression if it's needed in charts located in different places/tab (i put in the expressions only the variable that contains the expression, it's faster)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i load by browser the qv document, it makes the calculations of all expressions inside my variables ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I.E.&lt;/P&gt;&lt;P&gt;I've twice variables witch contains twice expressions, the first variable is on a chart on first tab, the second on a chart in the second tab, when i load the document the first time only the first tab is opened, right....but....the time spent by qv on loading the doc, include the calculation of both expressions or only the first of the first tab ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it's clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx a lot.&lt;/P&gt;&lt;P&gt;bye.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 14:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-on-variable/m-p/286371#M106532</guid>
      <dc:creator />
      <dc:date>2012-01-18T14:10:28Z</dc:date>
    </item>
    <item>
      <title>Expression on variable</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-on-variable/m-p/286372#M106533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; The expressions are not calculated during loading, they are calculated when the object is visible on your screen. Expressions on objects on other sheets are not calulated. Does this answer your question? Regards Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 14:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-on-variable/m-p/286372#M106533</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-01-18T14:28:34Z</dc:date>
    </item>
    <item>
      <title>Expression on variable</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-on-variable/m-p/286373#M106534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure.....ok, the expressions are calculated when chart is visible, but my expressions are inside the variable, so the question could be : all expressions located inside the variables are calculated when the document is loaded ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 14:13:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-on-variable/m-p/286373#M106534</guid>
      <dc:creator />
      <dc:date>2012-01-19T14:13:48Z</dc:date>
    </item>
    <item>
      <title>Expression on variable</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-on-variable/m-p/286374#M106535</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;You can try with set variables in etl while loading.hope it will solve your pbm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;srini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 14:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-on-variable/m-p/286374#M106535</guid>
      <dc:creator>srinivasa1</dc:creator>
      <dc:date>2012-01-19T14:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Expression on variable</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-on-variable/m-p/286375#M106536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am talking about variables as expressions when they are used in objects like charts and textboxes. These variable can be&lt;STRONG&gt; created &lt;/STRONG&gt;in the load script, and even be loaded in the load script.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But variables can also be &lt;STRONG&gt;used &lt;/STRONG&gt;in the load script. In this case, the expression is also &lt;STRONG&gt;used &lt;/STRONG&gt;in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your question about expressions as variables when they are &lt;STRONG&gt;used &lt;/STRONG&gt;in &lt;STRONG&gt;objects &lt;/STRONG&gt;or when they are &lt;STRONG&gt;used &lt;/STRONG&gt;in the&lt;STRONG&gt; load script&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg. Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 14:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-on-variable/m-p/286375#M106536</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-01-19T14:22:20Z</dc:date>
    </item>
    <item>
      <title>Expression on variable</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-on-variable/m-p/286376#M106537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your question about expressions as variables when they are &lt;STRONG&gt;used &lt;/STRONG&gt;in &lt;STRONG&gt;objects &lt;/STRONG&gt;or when they are &lt;STRONG&gt;used &lt;/STRONG&gt;in the&lt;STRONG&gt; load script&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 15:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-on-variable/m-p/286376#M106537</guid>
      <dc:creator />
      <dc:date>2012-01-19T15:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression on variable</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-on-variable/m-p/286377#M106538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN-US;"&gt;Ok. So this means that the variables you have - containing expressions - are only used in objects like charts etc on actual sheets in your Qlikview document.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN-US;"&gt;This also means that those expressions are only calculated when those objects are visible for the user. And they get recalculated every time you make a change in the data, like limiting a dimension etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN-US;"&gt;If you have the same variable in two objects on two sheets, only the object that is visible gets calculated. You may have 1000 objects using the same variable/expression, but only the visible ones will take CPU power.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN-US;"&gt;If you use the same variable in several different objects that are all visible, I am not sure if the expression is calculated several times or if Qlikview is smart enough to understand that it is the same calculation. I would guess strongly that Qlikview is smart in this case and that the calculation is only done once. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-ansi-language: EN-US;"&gt;Regards Robert&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 08:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-on-variable/m-p/286377#M106538</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2012-01-20T08:49:42Z</dc:date>
    </item>
  </channel>
</rss>

