<?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: Subtract two variables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Subtract-two-variables/m-p/1799914#M64793</link>
    <description>&lt;P&gt;HI - The below works - thanks for your guidance:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=SUM(($(=vBDGT)))-SUM(($(=vACT)))&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2021 21:43:55 GMT</pubDate>
    <dc:creator>jerryr125</dc:creator>
    <dc:date>2021-04-15T21:43:55Z</dc:date>
    <item>
      <title>Subtract two variables</title>
      <link>https://community.qlik.com/t5/App-Development/Subtract-two-variables/m-p/1799769#M64783</link>
      <description>&lt;P&gt;Hi - I have the following two variables created :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vACT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IF([FINANCEACTBDGYEAR]=$(vBudget_current_year),IF([FINANCEACTBDGMONTH]=$(vBudget_current_month_num),NUM([ACTUALAMOUNT],'0')))&lt;/P&gt;&lt;P&gt;** Works Perfect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vBDGT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF([FINANCEACTBDGYEAR]=$(vBudget_current_year),IF([FINANCEACTBDGMONTH]=$(vBudget_current_month_num),NUM([BUDGETAMOUNT],'0')))&lt;/P&gt;&lt;P&gt;** Works Perfect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a new variable (the variance of the two)&lt;/P&gt;&lt;P&gt;vACTBUDVAR&lt;/P&gt;&lt;P&gt;=SUM((vACT)-(vBDGT))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does not work - results in zero - any thoughts ?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 14:23:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Subtract-two-variables/m-p/1799769#M64783</guid>
      <dc:creator>jerryr125</dc:creator>
      <dc:date>2021-04-15T14:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract two variables</title>
      <link>https://community.qlik.com/t5/App-Development/Subtract-two-variables/m-p/1799879#M64789</link>
      <description>&lt;P&gt;I think you need to add the $() expansion:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=SUM(($(vACT))-($(vBDGT)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You may need to add an = sign to your 2 variables or the within the $():&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=SUM(($(=vACT))-($(=vBDGT)))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 19:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Subtract-two-variables/m-p/1799879#M64789</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2021-04-15T19:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract two variables</title>
      <link>https://community.qlik.com/t5/App-Development/Subtract-two-variables/m-p/1799914#M64793</link>
      <description>&lt;P&gt;HI - The below works - thanks for your guidance:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=SUM(($(=vBDGT)))-SUM(($(=vACT)))&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 21:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Subtract-two-variables/m-p/1799914#M64793</guid>
      <dc:creator>jerryr125</dc:creator>
      <dc:date>2021-04-15T21:43:55Z</dc:date>
    </item>
  </channel>
</rss>

