<?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: Subtracting two variables. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145613#M901133</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;Could be something like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr( &lt;/P&gt;&lt;P&gt;sum( {&amp;lt;PRI_CALENDAR_END={"&amp;gt;=$(vStartDate)"}, PRI_CALENDAR_START={"&amp;lt;=$(vEndDate)"}&amp;gt;} &lt;/P&gt;&lt;P&gt;Interval( if( PRI_CALENDAR_END &amp;gt; vEndDate, vEndDate, PRI_CALENDAR_END ) - if( PRI_CALENDAR_START &amp;lt; vStartDate, vStartDate, PRI_CALENDAR_START ) ) &lt;/P&gt;&lt;P&gt;), SLINIENR) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jul 2016 10:07:57 GMT</pubDate>
    <dc:creator>amit_saini</dc:creator>
    <dc:date>2016-07-13T10:07:57Z</dc:date>
    <item>
      <title>Subtracting two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145610#M901130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! I am new in Qlikview and I am having some troubles with variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I need to calculate the diference between the same variable evaluated in two differents dates.&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I think it would be something like: f(x) - f(x-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where f is the variable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x= Year($(vMaxDate)) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x-1= =Year($(vMaxDate), -1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the variable (which is also a division): &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(vUsersLoggingCalls_Level2(Evolution ,Evolution))/$(vActiveProfileEmployees_Level2(Evolution ,Evolution)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145610#M901130</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145611#M901131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi esther, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vUsersLoggingCalls_Level2 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vActiveProfileEmployees_Level2 seems parametrized variables, I think the new conditions should be inserted in those variables, it can be done adding a 3rd parameter for the year or creating 2 different variables: one for max year and another for the previous.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;In any case I will need to check what those variables contains because the modification should be done in those variables (&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vUsersLoggingCalls_Level2 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vActiveProfileEmployees_Level2).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 10:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145611#M901131</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-07-13T10:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145612#M901132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;This isn't correct: =Year($(vMaxDate), -1). If you want to subtract 1 from the year of the max date you use: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Year($(vMaxDate))-1. If you want the year of the day before the max date you use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Year($(vMaxDate) -1)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 10:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145612#M901132</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-13T10:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145613#M901133</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;Could be something like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr( &lt;/P&gt;&lt;P&gt;sum( {&amp;lt;PRI_CALENDAR_END={"&amp;gt;=$(vStartDate)"}, PRI_CALENDAR_START={"&amp;lt;=$(vEndDate)"}&amp;gt;} &lt;/P&gt;&lt;P&gt;Interval( if( PRI_CALENDAR_END &amp;gt; vEndDate, vEndDate, PRI_CALENDAR_END ) - if( PRI_CALENDAR_START &amp;lt; vStartDate, vStartDate, PRI_CALENDAR_START ) ) &lt;/P&gt;&lt;P&gt;), SLINIENR) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 10:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145613#M901133</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-07-13T10:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145614#M901134</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;If you are using Year() then as Gysbert point out Year() take only 1 parameter not 2. &lt;/P&gt;&lt;P&gt;If this is not your case.&lt;/P&gt;&lt;P&gt;then &lt;SPAN style="font-size: 13.3333px;"&gt;can you post &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(vUsersLoggingCalls_Level2) &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;and $(vActiveProfileEmployees_Level2) definition???? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 10:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145614#M901134</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-07-13T10:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145615#M901135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben, thanks for your answer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vUsersLoggingCalls_Level2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;$(vAdoptionRangeDate($1,$2,$3)),[Employee Position Type]=,[Profile]=,[Territory Nominal F. District]=,[Territory Nominal F. Position]=, [Employee]=, [Profile]={'Sales','Medical','Marketing','MarketAccess'}, [QlikView Login Application]=, [Feed Record Type]=,[Chatter Origin]=, Origin = {'Employee History'}, [Employee EMEA] = {'No'} ,[Employee Is Active] = {'Yes'}&amp;gt;}[Counter])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vActiveProfileEmployees_Level2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;$(vAdoptionRangeDate($1,$2)),[Employee Position Type]=, [Profile]={'Sales','Medical','Marketing','MarketAccess'},[Territory Nominal F. District]=,[Territory Nominal F. Position]=,[Employee]=,[Employee Is Active] = {'Yes'}, Origin = {'Call'}, [Growth YearMonth]= {"&amp;gt;=$(vMinYearMonth) &amp;lt;=$(vMaxYearMonth)"}, [Employee YearMonth Id] = {"=Sum({$&amp;lt;MonthYear=,[Employee Position Type]=,[Territory Nominal F. District]=,[Profile]=,[Territory Nominal F. Position]=,[Employee]=,Month=,Year=,Origin = {'Call'}&amp;gt;}[Parent Call Counter]) &amp;gt;= 1"}&amp;gt;}[Employee Counter])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 10:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145615#M901135</guid>
      <dc:creator />
      <dc:date>2016-07-13T10:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145616#M901136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vAdoptionRangeDate($1,$2,$3):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(=If('$1' = 'KPI', '$(vAdoptionTemporalSelection),[Growth MonthYear]=,[Date]={"&amp;gt;=$(=$(vAdoptionStartRollingYear(KPI)))&amp;lt;=$(=$(vMaxDate))"}',&lt;/P&gt;&lt;P&gt; If('$1' = 'Cluster', '[Country]=,[Region]=,[Cluster]=p(),$(vAdoptionTemporalSelection),[Date]={"&amp;gt;=$(vAdoptionMinDate($2))&amp;lt;=$(vAdoptionMaxDate($2))"}',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If('$1' = 'EMEA', '[Country]=,[Cluster]=,[Region]=,$(vAdoptionTemporalSelection),[Date]={"&amp;gt;=$(vAdoptionMinDate($2))&amp;lt;=$(vAdoptionMaxDate($2))"}',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If('$1' = 'Evolution','$(vAdoptionTemporalSelection),[Growth Calendar Difference]={"0"},[Date]={"&amp;gt;=$(=$(vAdoptionStartRollingYear(KPI)))&amp;lt;=$(=$(vMaxDate))"}',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If('$1' = 'Region','[Territory Nominal Function]=,[Territory Nominal Franchise]=,[Territory Nominal F. District]=,[Territory Nominal F. Position]=,[Employee]=,$(vAdoptionResetRegion($3)),$(vAdoptionTemporalSelection),[Date]={"&amp;gt;=$(vAdoptionMinDate($2))&amp;lt;=$(vAdoptionMaxDate($2))"}',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If('$1' = 'L5','[Territory Nominal F. District]=,[Territory Nominal F. Position]=,[Employee]=,$(vAdoptionResetHighTerritory),$(vAdoptionTemporalSelection),[Date]={"&amp;gt;=$(vAdoptionMinDate($2))&amp;lt;=$(vAdoptionMaxDate($2))"}',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vAdoptionTemporalSelection),[Date]={"&amp;gt;=$(vAdoptionMinDate($2))&amp;lt;=$(vAdoptionMaxDate($2))"}')))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 10:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145616#M901136</guid>
      <dc:creator />
      <dc:date>2016-07-13T10:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145617#M901137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont really think is a good idea to try to modify those variables...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was looking for a string or function that allows me to subtract both results, I can evaluate the variables if I select different values for the field YearMonth. The issue is calculating the diference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 11:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145617#M901137</guid>
      <dc:creator />
      <dc:date>2016-07-13T11:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145618#M901138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max, thanks for you answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables are huge, I do not really think I should change them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a select diffetent values in the field YearMonth, the varibles are evaluted for the each value respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I was more looking for a way to store/save the results and substract them. May be like a function, string or set analysis.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 11:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145618#M901138</guid>
      <dc:creator />
      <dc:date>2016-07-13T11:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145619#M901139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(A-B) and Rangesum( A, -B) will subtract B from A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 11:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145619#M901139</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-13T11:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145620#M901140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Esther, this variable has a lot of set analysis fixing the dates (one for each of the values if the 1st paramater), I think the best way is duplicating variables, one as it is for the current year (or maybe also needs a fix to keep only one year). The other one for the past year, and with the variables adapted to query the past year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;$(=If('$1' = 'KPI', '$(vAdoptionTemporalSelection),[Growth MonthYear]=,&lt;SPAN style="color: #ff0000;"&gt;[Date]={"&amp;gt;=$(=$(vAdoptionStartRollingYear(KPI)))&amp;lt;=$(=$(vMaxDate))&lt;/SPAN&gt;"}',&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;If('$1' = 'Cluster', '[Country]=,[Region]=,[Cluster]=p(),$(vAdoptionTemporalSelection),&lt;SPAN style="color: #ff0000;"&gt;[Date]={"&amp;gt;=$(vAdoptionMinDate($2))&amp;lt;=$(vAdoptionMaxDate($2))"}'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; If('$1' = 'EMEA', '[Country]=,[Cluster]=,[Region]=,$(vAdoptionTemporalSelection),&lt;SPAN style="color: #ff0000;"&gt;[Date]={"&amp;gt;=$(vAdoptionMinDate($2))&amp;lt;=$(vAdoptionMaxDate($2))"}'&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; If('$1' = 'Evolution','$(vAdoptionTemporalSelection),[Growth Calendar Difference]={"0"}&lt;SPAN style="color: #ff0000;"&gt;,[Date]={"&amp;gt;=$(=$(vAdoptionStartRollingYear(KPI)))&amp;lt;=$(=$(vMaxDate))"}',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If('$1' = 'Region','[Territory Nominal Function]=,[Territory Nominal Franchise]=,[Territory Nominal F. District]=,[Territory Nominal F. Position]=,[Employee]=,$(vAdoptionResetRegion($3)),$(vAdoptionTemporalSelection),&lt;SPAN style="color: #ff0000;"&gt;[Date]={"&amp;gt;=$(vAdoptionMinDate($2))&amp;lt;=$(vAdoptionMaxDate($2))"}',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If('$1' = 'L5','[Territory Nominal F. District]=,[Territory Nominal F. Position]=,[Employee]=,$(vAdoptionResetHighTerritory),$(vAdoptionTemporalSelection),&lt;SPAN style="color: #ff0000;"&gt;[Date]={"&amp;gt;=$(vAdoptionMinDate($2))&amp;lt;=$(vAdoptionMaxDate($2))"}',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vAdoptionTemporalSelection),&lt;SPAN style="color: #ff0000;"&gt;[Date]={"&amp;gt;=$(vAdoptionMinDate($2))&amp;lt;=$(vAdoptionMaxDate($2))"}&lt;/SPAN&gt;')))))))&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;A _jive_internal="true" class="jive-acclaim-likelink" data-command="like" data-object-id="1082294" data-object-type="2" href="https://community.qlik.com/message/1082296?et=watches.email.thread" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Re: Subtracting two variables.&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 11:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145620#M901140</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-07-13T11:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145621#M901141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To expand my answer: yes, it's difficult (and time-consuming) to modify this variables but maybe there is a possibility to add a paremeter to the vAdoptionMinDate, vAdoptionMaxDate and &lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vAdoptionStartRollingYear&lt;/SPAN&gt; variables (and by extension to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vAdoptionRangeDate, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vUsersLoggingCalls_Level2 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vActiveProfileEmployees_Level2; these ones should receive the parameter to pass it to the variables this variables contains).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also changing &lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(vMaxDate)&lt;/SPAN&gt; to a new parametrized variable that, using the same parameter as the previous variables, returns the Max date for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year($(vMaxDate)) or &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year($(vMaxDate))-1, based on the parameter it receives.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 12:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145621#M901141</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-07-13T12:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145622#M901142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ruben, I will try that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 12:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145622#M901142</guid>
      <dc:creator />
      <dc:date>2016-07-13T12:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Subtracting two variables.</title>
      <link>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145623#M901143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope it will be possible to do it, I still don't know the contains of some of the variables used (and I will need some sample to test before been able give a confirmed answer) but if you achieved to go so far with these variables I'm sure you have enough knowledge to modify those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also a 2nd opinion would be nice before starting this difficult task, anyone in this thread sees another way for doing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 12:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtracting-two-variables/m-p/1145623#M901143</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-07-13T12:35:41Z</dc:date>
    </item>
  </channel>
</rss>

