<?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: 12 month rolling sum in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/12-month-rolling-sum/m-p/2144138#M93082</link>
    <description>&lt;P&gt;UPDATE:&lt;/P&gt;
&lt;P&gt;I have tried to create an asoftable as deomnstrated here &lt;A href="https://community.qlik.com/t5/Design/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;https://community.qlik.com/t5/Design/The-As-Of-Table/ba-p/1466130&lt;/A&gt; which seems to work in the data model ok.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;however cant get the set analysis right. this is what i have below.&lt;/P&gt;
&lt;P&gt;sum(if(aggr(Sum({&amp;lt;MonthDiff={"&amp;lt;12"}&amp;gt;} SaleCount), [Product]) &amp;gt; 2,1))&lt;/P&gt;
&lt;P&gt;on my bar graph, a product is only counted on one of the months, not all consecutives months afterwards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2023 03:18:20 GMT</pubDate>
    <dc:creator>7KD</dc:creator>
    <dc:date>2023-12-05T03:18:20Z</dc:date>
    <item>
      <title>12 month rolling sum</title>
      <link>https://community.qlik.com/t5/App-Development/12-month-rolling-sum/m-p/2144113#M93081</link>
      <description>&lt;P&gt;Hi, I have seen rolling sum examples of an accumulated field, however I need to do something similar by product and a condition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Product, Date, SaleCount&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;A, 11/02/2023, 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;A, 14/04/2023, 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;A, 16/06/2023, 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;B, 16/04/2023, 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;B, 18/04/2023, 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;How to do a rolling 12 month, counting products in the last 12 month that have sold more than 2 times.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I want to build a bar chart with months and a count of how many met the condition in the last 12 months. So for example all months after the 11/02/2023 should count 2. The 12th month after the 16/06/2023 would count 0.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 23:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/12-month-rolling-sum/m-p/2144113#M93081</guid>
      <dc:creator>7KD</dc:creator>
      <dc:date>2023-12-04T23:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: 12 month rolling sum</title>
      <link>https://community.qlik.com/t5/App-Development/12-month-rolling-sum/m-p/2144138#M93082</link>
      <description>&lt;P&gt;UPDATE:&lt;/P&gt;
&lt;P&gt;I have tried to create an asoftable as deomnstrated here &lt;A href="https://community.qlik.com/t5/Design/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;https://community.qlik.com/t5/Design/The-As-Of-Table/ba-p/1466130&lt;/A&gt; which seems to work in the data model ok.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;however cant get the set analysis right. this is what i have below.&lt;/P&gt;
&lt;P&gt;sum(if(aggr(Sum({&amp;lt;MonthDiff={"&amp;lt;12"}&amp;gt;} SaleCount), [Product]) &amp;gt; 2,1))&lt;/P&gt;
&lt;P&gt;on my bar graph, a product is only counted on one of the months, not all consecutives months afterwards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 03:18:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/12-month-rolling-sum/m-p/2144138#M93082</guid>
      <dc:creator>7KD</dc:creator>
      <dc:date>2023-12-05T03:18:20Z</dc:date>
    </item>
  </channel>
</rss>

