<?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: Compare data range II in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981167#M334941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Above(Sum (Imp), 9) &amp;gt; 0, yourExpression)&lt;/STRONG&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/102038_Capture.PNG" style="height: auto;" /&gt; !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Oct 2015 20:09:32 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-10-14T20:09:32Z</dc:date>
    <item>
      <title>Compare data range II</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981163#M334937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I am sorry to republish this discussion, but i need can be done with set analysis because the first items not taken the previous 5 values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attached example, I need to calculate for each day of the dimension five days back and compare them with five days previous to the first 5.&lt;/P&gt;&lt;P&gt;For example, for the day 30/09 day should add 30,29,28,27,26 / 09 and compare them with the days 25,24,23,22,21 / 09.&lt;/P&gt;&lt;P&gt;In the example there are more clarification.&lt;/P&gt;&lt;P&gt; &lt;A href="https://community.qlik.com/thread/186809"&gt;Compare date range&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 19:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981163#M334937</guid>
      <dc:creator>spividori</dc:creator>
      <dc:date>2015-10-14T19:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data range II</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981164#M334938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand the issue? I though it was doing what you wanted? What is missing still?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 19:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981164#M334938</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-14T19:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data range II</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981165#M334939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that when I apply in my application with the longer period the first values do not take the previous 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102033_Capture1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 19:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981165#M334939</guid>
      <dc:creator>spividori</dc:creator>
      <dc:date>2015-10-14T19:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data range II</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981166#M334940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be a condition on all your expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: line-through;"&gt;If(RangeSum(Above(Sum(Imp), 5, 5)) &amp;gt; 0, YourExpression)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 20:02:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981166#M334940</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-14T20:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data range II</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981167#M334941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Above(Sum (Imp), 9) &amp;gt; 0, yourExpression)&lt;/STRONG&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/102038_Capture.PNG" style="height: auto;" /&gt; !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 20:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981167#M334941</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-14T20:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data range II</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981168#M334942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added more data to the example and when I select Sept. it shows data from the 10/09 and I need to show the whole month.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102034_Capture1.PNG" style="height: 315px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 20:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981168#M334942</guid>
      <dc:creator>spividori</dc:creator>
      <dc:date>2015-10-14T20:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data range II</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981169#M334943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached:&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/102039_Capture.PNG" style="height: 429px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 20:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981169#M334943</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-14T20:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data range II</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981170#M334944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See that there is dates not calculated.&lt;/P&gt;&lt;P&gt;01,08,15,22 y 29.&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, 14 Oct 2015 21:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981170#M334944</guid>
      <dc:creator>spividori</dc:creator>
      <dc:date>2015-10-14T21:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data range II</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981171#M334945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this out:&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/102063_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would a script based solution work for you also?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 07:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981171#M334945</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-15T07:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data range II</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981172#M334946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Fecha, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Imp,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month(Fecha) as Mes&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangoFechas.xls&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(biff, embedded labels, table is Sheet1$);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [5d] - [5d ant] as diff;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 1.5em; font-size: 10pt;"&gt;&amp;nbsp; RangeSum(Imp, Peek('Imp'), Peek('Imp', -2), Peek('Imp', -3), Peek('Imp', -4)) as [5d],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; RangeSum(Peek('Imp', -5), Peek('Imp', -6), Peek('Imp', -7), Peek('Imp', -8), Peek('Imp', -9)) as [5d ant]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By Fecha;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output in Table box object:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102069_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 07:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981172#M334946</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-15T07:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Compare data range II</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981173#M334947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Great idea! I had not thought solve that way. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 14:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-data-range-II/m-p/981173#M334947</guid>
      <dc:creator>spividori</dc:creator>
      <dc:date>2015-10-15T14:26:53Z</dc:date>
    </item>
  </channel>
</rss>

