<?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: Rolling 12 months for sum and count in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rolling-12-months-for-sum-and-count/m-p/1637155#M47488</link>
    <description>&lt;P&gt;Finally with some trail and error method i came up with right fix.&lt;/P&gt;&lt;P&gt;Please find the script below-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM({&amp;lt; Period = {"&amp;gt;=$(=Date(MonthStart(Today(),-12),'MMM-YYYY'))&amp;lt;=$(=Date(MonthStart(Today()),'MMM-YYYY'))"} &amp;gt;}[Sales})&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Sale= {'External'}, Period = {"&amp;gt;=$(=Date(MonthStart(Today(),-12),'MMM-YYYY'))&amp;lt;=$(=Date(MonthStart(Today()),'MMM-YYYY'))"} &amp;gt;} ExternalSale)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to myself! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2019 12:20:54 GMT</pubDate>
    <dc:creator>LP27</dc:creator>
    <dc:date>2019-10-18T12:20:54Z</dc:date>
    <item>
      <title>Rolling 12 months for sum and count</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-12-months-for-sum-and-count/m-p/1637110#M47478</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I want to have rolling 12 months on Sum and Count measure.&lt;/P&gt;&lt;P&gt;I have seen many post related to this, but nothing worked well with my scenario-&lt;/P&gt;&lt;P&gt;here is my scenario -&lt;/P&gt;&lt;P&gt;I have field as =&lt;/P&gt;&lt;P&gt;This is my Datefield =&lt;STRONG&gt;Period&lt;/STRONG&gt;("MMM-YYYY")&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Sale= {'External'} &amp;gt;} ExternalSale)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So now i need to have rolling 12 months(From this October 2019 to October 2018)&amp;nbsp; in the above sum and Count measure.&lt;/P&gt;&lt;P&gt;what is the best way ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-12-months-for-sum-and-count/m-p/1637110#M47478</guid>
      <dc:creator>LP27</dc:creator>
      <dc:date>2024-11-16T04:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 months for sum and count</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-12-months-for-sum-and-count/m-p/1637155#M47488</link>
      <description>&lt;P&gt;Finally with some trail and error method i came up with right fix.&lt;/P&gt;&lt;P&gt;Please find the script below-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM({&amp;lt; Period = {"&amp;gt;=$(=Date(MonthStart(Today(),-12),'MMM-YYYY'))&amp;lt;=$(=Date(MonthStart(Today()),'MMM-YYYY'))"} &amp;gt;}[Sales})&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Sale= {'External'}, Period = {"&amp;gt;=$(=Date(MonthStart(Today(),-12),'MMM-YYYY'))&amp;lt;=$(=Date(MonthStart(Today()),'MMM-YYYY'))"} &amp;gt;} ExternalSale)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to myself! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 12:20:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-12-months-for-sum-and-count/m-p/1637155#M47488</guid>
      <dc:creator>LP27</dc:creator>
      <dc:date>2019-10-18T12:20:54Z</dc:date>
    </item>
  </channel>
</rss>

