<?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 2017vS2016 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/2017vS2016/m-p/1401979#M424892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variation expression that compares year 2017 VS 2016 until today -1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that counts all values of 2016 including values where date is &amp;gt; today -1 ; the variation becomes false, any idea how to change this expression so it will compare values until 20 october of the two years&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I am clear. Here is my expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num((num(sum( {$&amp;lt;[Year of date]={$(=Max([Year of date]))}&amp;gt;} recharge_amount),'# ##0') // 2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- num(sum( {$&amp;lt;[Year of date]={$(=Max([Year of date])-1)}&amp;gt;} recharge_amount),'# ##0')) //2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/ num(sum( {$&amp;lt;[Year of date]={$(=Max([Year of date])-1)}&amp;gt;} recharge_amount),'# ##0') *100,'# ## % ') //2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/180323_Capture.PNG" style="height: 303px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Oct 2017 09:23:38 GMT</pubDate>
    <dc:creator>master_student</dc:creator>
    <dc:date>2017-10-20T09:23:38Z</dc:date>
    <item>
      <title>2017vS2016</title>
      <link>https://community.qlik.com/t5/QlikView/2017vS2016/m-p/1401979#M424892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variation expression that compares year 2017 VS 2016 until today -1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that counts all values of 2016 including values where date is &amp;gt; today -1 ; the variation becomes false, any idea how to change this expression so it will compare values until 20 october of the two years&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I am clear. Here is my expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num((num(sum( {$&amp;lt;[Year of date]={$(=Max([Year of date]))}&amp;gt;} recharge_amount),'# ##0') // 2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- num(sum( {$&amp;lt;[Year of date]={$(=Max([Year of date])-1)}&amp;gt;} recharge_amount),'# ##0')) //2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/ num(sum( {$&amp;lt;[Year of date]={$(=Max([Year of date])-1)}&amp;gt;} recharge_amount),'# ##0') *100,'# ## % ') //2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/180323_Capture.PNG" style="height: 303px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 09:23:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2017vS2016/m-p/1401979#M424892</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2017-10-20T09:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: 2017vS2016</title>
      <link>https://community.qlik.com/t5/QlikView/2017vS2016/m-p/1401980#M424893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would Normally approach a probably like this in Script.&lt;/P&gt;&lt;P&gt;I add flags to my calendar for periods I am interested in.&lt;/P&gt;&lt;P&gt;Like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ADDYEARS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TODAY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1),-1)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ADDYEARS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TODAY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1),-1),1) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;F_CAL_LYD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The use the set analys&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;F_CAL_LYD={1}&amp;gt;}Amount).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in set analysis you can use something like&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;DATE={'&amp;gt;=$(YEARSTART(ADDYEARS(TODAY(),-1))),&amp;lt;=$(ADDYEARS(TODAY(),-1)))'}&amp;gt;})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 09:42:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2017vS2016/m-p/1401980#M424893</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2017-10-20T09:42:08Z</dc:date>
    </item>
  </channel>
</rss>

