<?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 Subtract from a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360412#M1175178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2012 08:44:17 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2012-04-24T08:44:17Z</dc:date>
    <item>
      <title>Subtract from a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360408#M1175174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;New to set analysis...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I my set analysis expression works but I am trying to add one more piece: &lt;A _jive_internal="true" href="https://community.qlik.com/message/212088#212088"&gt;IncurredMonth&lt;/A&gt;={'=$((vMaxMonth)-1)'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It then takes my results to "0". all I want is to take the variable "vMaxMonth" and subtract one from it but somhow my syntax must be off.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 18:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360408#M1175174</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2012-04-19T18:44:14Z</dc:date>
    </item>
    <item>
      <title>Subtract from a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360409#M1175175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try double-quotes instead of the singles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 19:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360409#M1175175</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-04-19T19:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract from a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360410#M1175176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;hello&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;Since&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;you create&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;the variable&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; (tools / variable overview) &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;can&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;be defined as&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;-1 and no&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;need to put&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;quotes.&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;VarMesAnt&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;= Month&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;(num&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps atn" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="atn" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;if ((&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;-1&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;) =&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;0.12,&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;week&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;-1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;, '#&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;, #&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;#&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;0'&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;, '.'&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;, ',&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 19:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360410#M1175176</guid>
      <dc:creator />
      <dc:date>2012-04-19T19:17:19Z</dc:date>
    </item>
    <item>
      <title>Subtract from a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360411#M1175177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing seems to have an effect:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do just:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[IncurredYear]={$(vMaxYear)},[IncurredMonth]=,[AMOUNT_TYPE]={'ACTUAL'}}&amp;gt;}[Ending_Balance_CNT]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it returns the same is if I add the extra criteria:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[IncurredYear]={$(vMaxYear)},[IncurredMonth]=,[AMOUNT_TYPE]={'ACTUAL'},[IncurredMonthNum]={"=vMaxMonth1"}&amp;gt;}[Ending_Balance_CNT]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is pretty much ignoring: [IncurredMonthNum]={"=vMaxMonth1"}&amp;nbsp; so I must be writing it wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxMonth1 is a variable that is = to 3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 17:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360411#M1175177</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2012-04-23T17:33:39Z</dc:date>
    </item>
    <item>
      <title>Subtract from a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360412#M1175178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 08:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360412#M1175178</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-04-24T08:44:17Z</dc:date>
    </item>
    <item>
      <title>Subtract from a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360413#M1175179</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;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[IncurredYear]={$(vMaxYear)},[IncurredMonth]=,[AMOUNT_TYPE]={'ACTUAL'},&lt;/P&gt;&lt;P&gt;[IncuredMonth= {$(=vMaxMonth -1)}&amp;gt;}[Ending_Balance_CNT]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try in this way ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not try to calculate or get the month-1 value into other variable and pass that variable into Incurred Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 09:23:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360413#M1175179</guid>
      <dc:creator>spsrk_84</dc:creator>
      <dc:date>2012-04-24T09:23:17Z</dc:date>
    </item>
    <item>
      <title>Subtract from a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360414#M1175180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should be&lt;STRONG&gt; IncurredMonth={'$(=$(vMaxMonth)-1)'} &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;$(= ...) instructs Qlikview to evaluate the expression inside the brackets and $(vMaxMonth)-1 is the expression to be evaluated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 11:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360414#M1175180</guid>
      <dc:creator>masha-ecraft</dc:creator>
      <dc:date>2012-04-24T11:34:18Z</dc:date>
    </item>
    <item>
      <title>Subtract from a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360415#M1175181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Shiva - thanks a ton! That worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Steve&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 11:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360415#M1175181</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2012-04-24T11:34:41Z</dc:date>
    </item>
    <item>
      <title>Subtract from a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360416#M1175182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Masha..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on what you said:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;"It should be&lt;STRONG&gt; IncurredMonth={'$(=$(vMaxMonth)-1)'}&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;$(= ...) instructs Qlikview to evaluate the expression inside the brackets and $(vMaxMonth)-1 is the expression to be evaluated."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why in my expression which now works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;does &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;&lt;STRONG&gt;[IncurredYear]={$(vMaxYear)}&lt;/STRONG&gt; not have an "= "before the variable vMaxYear&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;but &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="color: #636363; font-size: 12px; background-color: #ffffff; font-family: Arial;"&gt;&lt;STRONG&gt;[IncurredMonth= {$(=vMaxMonth -1)}&lt;/STRONG&gt; does have an "=" before the variable vMaxMonth -1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="color: #636363; font-size: 12px; background-color: #ffffff; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Whole expression:&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;sum({&amp;lt;[IncurredYear]={$(vMaxYear)},[IncurredMonth]=,[AMOUNT_TYPE]={'ACTUAL'},&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;[IncurredMonth= {$(=vMaxMonth -1)}&amp;gt;}[Ending_Balance_CNT])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 12:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360416#M1175182</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2012-04-24T12:10:19Z</dc:date>
    </item>
    <item>
      <title>Subtract from a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360417#M1175183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Equal sign (=) is needed when there is an expression to be evaluated, e.g $(=vMaxMonth -1). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When there is just a variable that is to be replaced with its value, e.g. $(vMaxMonth), no = sign is needed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference between my example and Shiva's is that Shiva is using a variable in the expression, while I'm using the value of the variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 12:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-from-a-variable/m-p/360417#M1175183</guid>
      <dc:creator>masha-ecraft</dc:creator>
      <dc:date>2012-04-24T12:17:10Z</dc:date>
    </item>
  </channel>
</rss>

