<?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 replacing formula by variable does not work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/replacing-formula-by-variable-does-not-work/m-p/300803#M1188271</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;When you define your variable don't put the '=' symbol, so the expression in your varible should be: SUM({$&amp;lt;cat2 = {"V01"}&amp;gt;}Debet)-SUM({$&amp;lt;cat2 = {"V01"}&amp;gt;}Credit) without the '=' and in your object put $(vCalculation) inside the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Aug 2011 18:19:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-25T18:19:08Z</dc:date>
    <item>
      <title>replacing formula by variable does not work</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-formula-by-variable-does-not-work/m-p/300802#M1188270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use this formula in a pivot table it just works fine. For each month I get the correct number.&lt;/P&gt;&lt;P&gt;=SUM({$&amp;lt;cat2 = {"V01"}&amp;gt;}Debet)-SUM({$&amp;lt;cat2 = {"V01"}&amp;gt;}Credit)&lt;/P&gt;&lt;P&gt;I want to limit typing, so I defined a variable (ctrl+alt+v) copy/pasting the formule and named the variable &lt;EM&gt;"vCalculation"&lt;/EM&gt; . When using this variable in a pivot table ='$(vCalculation1)', each and every month generates the annual total, the subtotal generated by the pivottable also returns that same annual total. Who can help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2011 15:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-formula-by-variable-does-not-work/m-p/300802#M1188270</guid>
      <dc:creator>qlikhans</dc:creator>
      <dc:date>2011-08-25T15:33:45Z</dc:date>
    </item>
    <item>
      <title>replacing formula by variable does not work</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-formula-by-variable-does-not-work/m-p/300803#M1188271</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;When you define your variable don't put the '=' symbol, so the expression in your varible should be: SUM({$&amp;lt;cat2 = {"V01"}&amp;gt;}Debet)-SUM({$&amp;lt;cat2 = {"V01"}&amp;gt;}Credit) without the '=' and in your object put $(vCalculation) inside the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2011 18:19:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-formula-by-variable-does-not-work/m-p/300803#M1188271</guid>
      <dc:creator />
      <dc:date>2011-08-25T18:19:08Z</dc:date>
    </item>
    <item>
      <title>replacing formula by variable does not work</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-formula-by-variable-does-not-work/m-p/300804#M1188272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YES!!&lt;/P&gt;&lt;P&gt;Thank you Gabriela, that did the trick.&lt;/P&gt;&lt;P&gt;bst rgrds&lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2011 20:43:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-formula-by-variable-does-not-work/m-p/300804#M1188272</guid>
      <dc:creator>qlikhans</dc:creator>
      <dc:date>2011-08-25T20:43:21Z</dc:date>
    </item>
  </channel>
</rss>

