<?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: Using variable in an Expression vs. by itself in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-variable-in-an-Expression-vs-by-itself/m-p/1248023#M395468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you use this this as set analysis the variable is evaluated once per chart. What that means is that if you use this variable in a text box object, whatever value you get will be used across the chart. Set analysis doesn't get evaluated on each dimension. The work around this is to use Aggr() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2017 20:13:15 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-02-09T20:13:15Z</dc:date>
    <item>
      <title>Using variable in an Expression vs. by itself</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-an-Expression-vs-by-itself/m-p/1248022#M395467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;variable1 Definition:&lt;BR /&gt;Fractile({&amp;lt;NumberField=&amp;gt;} if(TimeField &amp;lt; &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;vVariable2&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;, TimeField), &lt;EM&gt;&lt;STRONG&gt;vVariable3&lt;/STRONG&gt;&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's used by itself as an expression, as one of the columns of a Straight Chart like:&lt;BR /&gt;=$(vVariable1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It displays values correctly. Each row has a distinct value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when this variable is used inside an expression in the same chart; the expression doesn't work, for example, the expression:&lt;/P&gt;&lt;P&gt;=Avg({&amp;lt;NumberField=, TimeField={'&amp;lt;$(=&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;EM&gt;vVariable1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;)'}&amp;gt;} TimeField)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 20:03:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-an-Expression-vs-by-itself/m-p/1248022#M395467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-09T20:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable in an Expression vs. by itself</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-in-an-Expression-vs-by-itself/m-p/1248023#M395468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you use this this as set analysis the variable is evaluated once per chart. What that means is that if you use this variable in a text box object, whatever value you get will be used across the chart. Set analysis doesn't get evaluated on each dimension. The work around this is to use Aggr() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 20:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-in-an-Expression-vs-by-itself/m-p/1248023#M395468</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-09T20:13:15Z</dc:date>
    </item>
  </channel>
</rss>

