<?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 naming the expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/naming-the-expressions/m-p/143293#M505461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Raj wrote:I can't use variables as they store a single value.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Raj,&lt;/P&gt;&lt;P&gt;The key to creating reusable expressions in variables is that the variable definition must &lt;STRONG&gt;not&lt;/STRONG&gt; include the "=" sign.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2009 07:40:02 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2009-05-05T07:40:02Z</dc:date>
    <item>
      <title>naming the expressions</title>
      <link>https://community.qlik.com/t5/QlikView/naming-the-expressions/m-p/143289#M505457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some same expressions (i.e. facts) on different charts on differents sheets with different set of dimensions and they are pretty big. Is there any way to name them and use these names instead to keep the code simple.&lt;/P&gt;&lt;P&gt;I can't use variables as they store a single value.&lt;/P&gt;&lt;P&gt;Any suggetions are appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 03:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/naming-the-expressions/m-p/143289#M505457</guid>
      <dc:creator />
      <dc:date>2009-05-05T03:33:05Z</dc:date>
    </item>
    <item>
      <title>naming the expressions</title>
      <link>https://community.qlik.com/t5/QlikView/naming-the-expressions/m-p/143290#M505458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In fact, variable can be anything, including expression as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 03:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/naming-the-expressions/m-p/143290#M505458</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-05T03:41:36Z</dc:date>
    </item>
    <item>
      <title>naming the expressions</title>
      <link>https://community.qlik.com/t5/QlikView/naming-the-expressions/m-p/143291#M505459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No the problem is , I have the aggregations in my expressions and if you store it in variables it gives you a same single value disregarding the dimensions if used on charts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 03:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/naming-the-expressions/m-p/143291#M505459</guid>
      <dc:creator />
      <dc:date>2009-05-05T03:48:07Z</dc:date>
    </item>
    <item>
      <title>naming the expressions</title>
      <link>https://community.qlik.com/t5/QlikView/naming-the-expressions/m-p/143292#M505460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Either I'm not understanding the problem, or you're not understanding Michael's solution. Do something like this:&lt;/P&gt;&lt;P&gt;SET vAverage = avg(Value);&lt;/P&gt;&lt;P&gt;Then use this as your expression:&lt;/P&gt;&lt;P&gt;$(vAverage)&lt;/P&gt;&lt;P&gt;QlikView will substitute "avg(Value)", and thus calculate what you're looking for. It should take into account your chart dimensions just like anything else. Example attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 04:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/naming-the-expressions/m-p/143292#M505460</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-05-05T04:14:23Z</dc:date>
    </item>
    <item>
      <title>naming the expressions</title>
      <link>https://community.qlik.com/t5/QlikView/naming-the-expressions/m-p/143293#M505461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Raj wrote:I can't use variables as they store a single value.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Raj,&lt;/P&gt;&lt;P&gt;The key to creating reusable expressions in variables is that the variable definition must &lt;STRONG&gt;not&lt;/STRONG&gt; include the "=" sign.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 07:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/naming-the-expressions/m-p/143293#M505461</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-05-05T07:40:02Z</dc:date>
    </item>
  </channel>
</rss>

