<?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: setting variables in the most efficient way in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/setting-variables-in-the-most-efficient-way/m-p/866272#M1008828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you define Variable1 as =Sum(Sales) then you can use =Variable1 in a text box. But using =Variable1 as a chart expression won't work. You'll have to use $(Variable1). And then only if you don't want the expression Sum(Sales) evaluated in the context of the dimension values of the chart. Otherwise you'll have to define Variable1 as Sum(Sales) without the = character. So, I don't think you can replace $(Variable1) with Variable1 everywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards to calculation time: Qlikview will cache results of expressions. You may not notice any difference because of that caching.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 May 2015 08:11:51 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-05-04T08:11:51Z</dc:date>
    <item>
      <title>setting variables in the most efficient way</title>
      <link>https://community.qlik.com/t5/QlikView/setting-variables-in-the-most-efficient-way/m-p/866271#M1008827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There's a variable (e.g. Variable1) which is used extensively throughout the application as part of other expressions and variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable1 contains an expression which calculates a singal value - a parameter needed for the other expressions. It was created initially without an equal sign, so when refering to it I use the following syntax: $(Variable1). It means that the expression in expanded and then evaluated in each and every expression where it is part of.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is quite obvious to me that I could set an equal sign for my variable in the variable window and then refer to it simply as Variable1 without a dollar sign. It means that it won't be expanded, it will be regarded as a parameter. But the result will be quite the same in terms of correctness. I've checked it. The question is if it can speed up the application. I'm not sure of it. Maybe, if it doesn't expand and regarded as a parameter, it will help to save time to caclulate.&lt;/P&gt;&lt;P&gt;What's your opinion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have to do it, is it possible to make an automatic renaming of &lt;SPAN style="font-size: 13.3333330154419px;"&gt;$(Variable1) to Variable1 throughout the application?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 May 2015 17:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/setting-variables-in-the-most-efficient-way/m-p/866271#M1008827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-02T17:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: setting variables in the most efficient way</title>
      <link>https://community.qlik.com/t5/QlikView/setting-variables-in-the-most-efficient-way/m-p/866272#M1008828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you define Variable1 as =Sum(Sales) then you can use =Variable1 in a text box. But using =Variable1 as a chart expression won't work. You'll have to use $(Variable1). And then only if you don't want the expression Sum(Sales) evaluated in the context of the dimension values of the chart. Otherwise you'll have to define Variable1 as Sum(Sales) without the = character. So, I don't think you can replace $(Variable1) with Variable1 everywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards to calculation time: Qlikview will cache results of expressions. You may not notice any difference because of that caching.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 08:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/setting-variables-in-the-most-efficient-way/m-p/866272#M1008828</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-04T08:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: setting variables in the most efficient way</title>
      <link>https://community.qlik.com/t5/QlikView/setting-variables-in-the-most-efficient-way/m-p/866273#M1008829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 08:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/setting-variables-in-the-most-efficient-way/m-p/866273#M1008829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-05T08:11:22Z</dc:date>
    </item>
  </channel>
</rss>

