<?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: 6 Month Rolling Within 12 Month Rolling in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1679917#M51722</link>
    <description>&lt;P&gt;Please use the following Set analysis for your work-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;/STRONG&gt;&lt;STRONG&gt;{1&amp;lt;NM_IncEventDate = {'&amp;gt;=$(=MonthStart(AddMonths(Max(NM_IncEventDate),-12))) &amp;lt;=$(=MonthEnd(AddMonths(Max(NM_IncEventDate),-1)))'}&amp;gt;} &lt;/STRONG&gt;&lt;STRONG&gt;Aggr(RangeSum(Above(&lt;/STRONG&gt;&lt;STRONG&gt;Count({1} DISTINCT&amp;nbsp; NM_ID), 0, 6)), MonthYear))&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2020 14:08:55 GMT</pubDate>
    <dc:creator>aamirSiddiquee1</dc:creator>
    <dc:date>2020-02-27T14:08:55Z</dc:date>
    <item>
      <title>6 Month Rolling Within 12 Month Rolling</title>
      <link>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332487#M29092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a bar chart that counts a number of issues raised and shows it for the last 12 months (starting from the previous month). So for example, this month is May 2017; this means the bar chart will show from April 2017, going back to May 2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within each bar representing the months, I want to see the count of issues for the past 6 months - April 2017 should show a total of the count of issues for April, March, February, January, December, November. and then the same pattern for the other 11 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far my set analysis is as follows to achieve the 12 month rolling (Static) chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT(DISTINCT{1&amp;lt;NM_IncEventDate={'&amp;gt;=$(=MonthStart(AddMonths(Max(NM_IncEventDate),-12))) &amp;lt;=$(=MonthEnd(AddMonths(Max(NM_IncEventDate),-1)))'}&amp;gt;}NM_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This only counts for each individual month, so how do I get each month within this 12 month range, to total up the last 6 months performance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also attached a photo of the graph so far, below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/163112_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332487#M29092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: 6 Month Rolling Within 12 Month Rolling</title>
      <link>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332488#M29093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Above(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {1&amp;lt;NM_IncEventDate = {'&amp;gt;=$(=MonthStart(AddMonths(Max(NM_IncEventDate),-12))) &amp;lt;=$(=MonthEnd(AddMonths(Max(NM_IncEventDate),-1)))'}&amp;gt;} NM_ID), 0, 6))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can use &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;‌ approach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 11:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332488#M29093</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-12T11:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: 6 Month Rolling Within 12 Month Rolling</title>
      <link>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332489#M29094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or maybe this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;RangeSum(Above(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count(DISTINCT {1} NM_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;, 0, 6)) * Avg(&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;{1&amp;lt;NM_IncEventDate = {'&amp;gt;=$(=MonthStart(AddMonths(Max(NM_IncEventDate),-12))) &amp;lt;=$(=MonthEnd(AddMonths(Max(NM_IncEventDate),-1)))'}&amp;gt;} 1)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 11:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332489#M29094</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-12T11:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: 6 Month Rolling Within 12 Month Rolling</title>
      <link>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332490#M29095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your first suggestion seemed to work better than the second as it kept it to a 12 month period. However it doesn't seem to be produced the correct numbers. This is how the graph now looks with your first suggestion:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/163147_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 11:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332490#M29095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-12T11:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: 6 Month Rolling Within 12 Month Rolling</title>
      <link>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332491#M29096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see there are two dimensions in your chart, do you mind sharing the names of your dimensions? Also, would it be possible to share a sample of your qvf file? Might be easier to look at it and test out few things?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 11:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332491#M29096</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-12T11:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: 6 Month Rolling Within 12 Month Rolling</title>
      <link>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332492#M29097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two dimensions are MonthYear and IncidentType. MonthYear is a Time Dimension table field, much like the master calendar but one I made.&lt;/P&gt;&lt;P&gt;Unfortunately I cannot share the qvf as the app holds real data. Apologies for this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 07:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332492#M29097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-15T07:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: 6 Month Rolling Within 12 Month Rolling</title>
      <link>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332493#M29098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An issue with trying to achieve this way having two dimensions so I had to remove one of them. I kept the date dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a calculation that almost works now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(aggr(RangeSum(above(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {1&amp;lt;NM_IncEventDate = {'&amp;gt;=$(=MonthStart(AddMonths(Max(NM_IncEventDate),-12))) &amp;lt;=$(=MonthEnd(AddMonths(Max(NM_IncEventDate),-1)))'}&amp;gt;} NM_ID), 0, 6)),MonthYear))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, because the range is filtered down to 12 months, it cannot reach out to previous months to get the last 6 months performance. An example of this is May 2016 cannot see Nov. 2015 - Apr. 2016 because the range is May 2016 - Apr. 2017.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 07:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332493#M29098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-16T07:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: 6 Month Rolling Within 12 Month Rolling</title>
      <link>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332494#M29099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;{1&amp;lt;NM_IncEventDate = {'&amp;gt;=$(=MonthStart(AddMonths(Max(NM_IncEventDate),-12))) &amp;lt;=$(=MonthEnd(AddMonths(Max(NM_IncEventDate),-1)))'}&amp;gt;} &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Aggr(RangeSum(Above(&lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count({1} DISTINCT&amp;nbsp; NM_ID), 0, 6)), MonthYear))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 11:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332494#M29099</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-19T11:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: 6 Month Rolling Within 12 Month Rolling</title>
      <link>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332495#M29100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's it, excellent! Works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 11:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332495#M29100</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-19T11:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: 6 Month Rolling Within 12 Month Rolling</title>
      <link>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332496#M29101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the above worked, this should have also worked (unless you have changed the sort)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;RangeSum(Above(&lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count(DISTINCT {1} NM_ID)&lt;/STRONG&gt;&lt;STRONG style="font-family: inherit; font-style: inherit; font-size: 10pt;"&gt;, 0, 6))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-family: inherit; font-style: inherit; font-size: 10pt;"&gt;*&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-family: inherit; font-style: inherit; font-size: 10pt;"&gt;Avg(&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;{1&amp;lt;NM_IncEventDate = {'&amp;gt;=$(=MonthStart(AddMonths(Max(NM_IncEventDate),-12))) &amp;lt;=$(=MonthEnd(AddMonths(Max(NM_IncEventDate),-1)))'}&amp;gt;}&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; 1)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This is slightly better because this doesn't use Aggr() function... but its upto you to give it a shot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 11:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1332496#M29101</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-19T11:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: 6 Month Rolling Within 12 Month Rolling</title>
      <link>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1679917#M51722</link>
      <description>&lt;P&gt;Please use the following Set analysis for your work-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;/STRONG&gt;&lt;STRONG&gt;{1&amp;lt;NM_IncEventDate = {'&amp;gt;=$(=MonthStart(AddMonths(Max(NM_IncEventDate),-12))) &amp;lt;=$(=MonthEnd(AddMonths(Max(NM_IncEventDate),-1)))'}&amp;gt;} &lt;/STRONG&gt;&lt;STRONG&gt;Aggr(RangeSum(Above(&lt;/STRONG&gt;&lt;STRONG&gt;Count({1} DISTINCT&amp;nbsp; NM_ID), 0, 6)), MonthYear))&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 14:08:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/6-Month-Rolling-Within-12-Month-Rolling/m-p/1679917#M51722</guid>
      <dc:creator>aamirSiddiquee1</dc:creator>
      <dc:date>2020-02-27T14:08:55Z</dc:date>
    </item>
  </channel>
</rss>

