<?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: Problems using variables and macros in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-using-variables-and-macros/m-p/360718#M133985</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;how did you define your variable? It must look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM([Investment Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;without the Equal-sign!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings from Munich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jul 2012 08:45:51 GMT</pubDate>
    <dc:creator>brenner_martina</dc:creator>
    <dc:date>2012-07-23T08:45:51Z</dc:date>
    <item>
      <title>Problems using variables and macros</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-using-variables-and-macros/m-p/360716#M133983</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;we have been working on an application and i have noticed something strange that i have never seen before......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a simple expression SUM([Investment Value) which works absolutely fine and gives the below result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan 2012 - 141,999&lt;/P&gt;&lt;P&gt;Feb 2012 - 120,747&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when i create a variable for this expression it doesn't work.&amp;nbsp; The variable i created was vInvestment_Value.&amp;nbsp; When used in the expression i put in $(vInvestment_Value).&amp;nbsp; The results we get are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan 2012 -&amp;nbsp; 262,746&lt;/P&gt;&lt;P&gt;Feb 2012 - 262,746&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is the sum of all values.&amp;nbsp; i really don't understand why it isn't working.&amp;nbsp; We tried creating other variables to replace expressions we used and exactly the same thing happened.&amp;nbsp; Does anyone have any ideas why variables are not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason i need to get them to work is I have written a macro which allows people to build their own charts with pre defined dimensions and expressions.&amp;nbsp; In order for this macro to work i need to create a variable with the expression in it.&amp;nbsp; This macro isn't working either and i can't see why as I have used it many times before.&amp;nbsp; I think it is something to do with the variables not working but if anyone has any ideas on this we would be interested to here them.&amp;nbsp; For example to you have to set some setting in order for macros to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 13:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-using-variables-and-macros/m-p/360716#M133983</guid>
      <dc:creator />
      <dc:date>2012-07-20T13:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using variables and macros</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-using-variables-and-macros/m-p/360717#M133984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The variable calculates outside of the chart and doesn't use the chart dimension in the calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look in the API Guide for examples of how to set a chart's expression with code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 14:57:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-using-variables-and-macros/m-p/360717#M133984</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2012-07-20T14:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using variables and macros</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-using-variables-and-macros/m-p/360718#M133985</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;how did you define your variable? It must look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM([Investment Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;without the Equal-sign!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings from Munich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 08:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-using-variables-and-macros/m-p/360718#M133985</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2012-07-23T08:45:51Z</dc:date>
    </item>
  </channel>
</rss>

