<?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 Rolling 12 Months issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-12-Months-issue/m-p/1293614#M404117</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;After exploring several techniques discussed in the forum I tried to replicate the calculations on my end and see issue with Results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get rolling count of Hired Applications in a Pivot Table with Hired Date as rows.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rolling 12 -Within&lt;/STRONG&gt; = rangesum(above( count([Application ID] ),0,12))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As this wouldn't properly aggregate rolling 12 months when Hired Date is filtered,I created another metric&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rolling 12&lt;/STRONG&gt; : rangesum(aggr(rangesum(above(count({&amp;lt;[Hired Date] = &amp;gt;}[Application ID] ),0,12)),[Hired Date]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this data set starts from 2/28/2003, So I should have seen both Rolling 12-Within and Rolling 12 the same.&lt;/P&gt;&lt;P&gt;Instead I see different results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thoughts: In this pivot table,Initially Hired date wasn't sorted properly.So In sorting,I applied floor(Hired Date) to force sort the results.&lt;/P&gt;&lt;P&gt;Wondering if this is causing the numbers wrong.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ROlling12.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/157920_ROlling12.jpg" style="width: 620px; height: 478px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Mar 2017 13:25:34 GMT</pubDate>
    <dc:creator>nvrphanikumar</dc:creator>
    <dc:date>2017-03-28T13:25:34Z</dc:date>
    <item>
      <title>Rolling 12 Months issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Months-issue/m-p/1293614#M404117</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;After exploring several techniques discussed in the forum I tried to replicate the calculations on my end and see issue with Results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get rolling count of Hired Applications in a Pivot Table with Hired Date as rows.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rolling 12 -Within&lt;/STRONG&gt; = rangesum(above( count([Application ID] ),0,12))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As this wouldn't properly aggregate rolling 12 months when Hired Date is filtered,I created another metric&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rolling 12&lt;/STRONG&gt; : rangesum(aggr(rangesum(above(count({&amp;lt;[Hired Date] = &amp;gt;}[Application ID] ),0,12)),[Hired Date]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this data set starts from 2/28/2003, So I should have seen both Rolling 12-Within and Rolling 12 the same.&lt;/P&gt;&lt;P&gt;Instead I see different results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thoughts: In this pivot table,Initially Hired date wasn't sorted properly.So In sorting,I applied floor(Hired Date) to force sort the results.&lt;/P&gt;&lt;P&gt;Wondering if this is causing the numbers wrong.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ROlling12.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/157920_ROlling12.jpg" style="width: 620px; height: 478px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 13:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Months-issue/m-p/1293614#M404117</guid>
      <dc:creator>nvrphanikumar</dc:creator>
      <dc:date>2017-03-28T13:25:34Z</dc:date>
    </item>
  </channel>
</rss>

