<?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 Quarter Formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052085#M933070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116331_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The number should get me close to 1.00 (positive). You can do choose and calculate on whatever calendar fields you want Sunny, I used Month and NumMonth because I was told by a senior Developer in order for you to have a Rolling Quarter you have to use iterno() in the scripting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Feb 2016 19:31:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-29T19:31:58Z</dc:date>
    <item>
      <title>Rolling Quarter Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052076#M933061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do a Rolling Quarter SET Analysis. I have two scenarios I am done with one, which is the correct Quarter 1.2.3 and 4. I need help with when I have to do deal with irregular quarter such as Dec to Feb or Feb to Apr. I have created a Text Box in which I want to click on Month field and I want the Text Box to be filtered according to the DimMonth. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 16:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052076#M933061</guid>
      <dc:creator />
      <dc:date>2016-02-29T16:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Quarter Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052077#M933062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What exactly are you trying to accomplish? If someone selects Feb2016 you want to do something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Feb2016 - Dec2015)/Feb 2016&lt;/STRONG&gt; ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 16:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052077#M933062</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-29T16:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Quarter Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052078#M933063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes if someone clicks on Feb 2016 in the month field 2 and dim year 2016 I want the text box under the Accounts Number to show me the formula from Dec 2015 to Feb 2016. The text box on the left has already been formatted with accordance to the proper Quarter cycles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 16:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052078#M933063</guid>
      <dc:creator />
      <dc:date>2016-02-29T16:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Quarter Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052079#M933064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Difference of Quarter from Jan 2016 - Nov 2015 between the quarter of Oct 2015 to Aug 2015.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 17:00:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052079#M933064</guid>
      <dc:creator />
      <dc:date>2016-02-29T17:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Quarter Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052080#M933065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't you have any date field in your application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 17:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052080#M933065</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-29T17:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Quarter Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052081#M933066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I do it is called the Accounting Date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 17:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052081#M933066</guid>
      <dc:creator />
      <dc:date>2016-02-29T17:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Quarter Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052082#M933067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this give the result you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=(Sum({[BookRev]&amp;lt;NumMonth, Month, [DimYear], accountingdate = {"$(='&amp;gt;=' &amp;amp; Date(MonthStart(Max(accountingdate))) &amp;amp; '&amp;lt;=' &amp;amp; Date(MonthEnd(Max(accountingdate))))"}&amp;gt;} grossamount) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({[BookRev]&amp;lt;NumMonth, Month, [DimYear], accountingdate = {"$(='&amp;gt;=' &amp;amp; Date(MonthStart(AddMonths(Max(accountingdate), -2))) &amp;amp; '&amp;lt;=' &amp;amp; Date(MonthEnd(AddMonths(Max(accountingdate), -2))))"}&amp;gt;} grossamount) * 4)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({[BookCost]&amp;lt;NumMonth, Month, [DimYear], accountingdate = {"$(='&amp;gt;=' &amp;amp; Date(MonthStart(AddMonths(Max(accountingdate), -2))) &amp;amp; '&amp;lt;=' &amp;amp; Date(MonthEnd(AddMonths(Max(accountingdate), -2))))"}&amp;gt;} grossamount)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 17:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052082#M933067</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-29T17:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Quarter Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052083#M933068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, thanks for all your effort thus far. I want to be able to click on a given month from the Month field , for argument sake Jan 2016 and I want to get the formula like the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I click on Jan 2016&lt;/P&gt;&lt;P&gt;2) The formula provides me with the total sum of (Book Rev of Jan 2016 to Nov 2015) subtracted by the (BookRev of Oct 2015 to Aug 2015) times by 4 divided by BookCost of Oct 2015 to Aug 2015.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116323_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;=num((Sum({[BookRev]&amp;lt;QuarterNum={"$(=Max({$}QuarterNum))"}, [DimYear] ={"$(=Max({$}[DimYear]))"}&amp;gt;} grossamount) &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Sum({[BookRev]&amp;lt;QuarterNum={"$(=If(Max({$}QuarterNum) - 1 = 0, 4, Max({$}QuarterNum)-1))"}, [DimYear] ={"$(=If(Max({$}QuarterNum) - 1 = 0, Max({$}[DimYear]) - 1, Max({$}[DimYear])))"}&amp;gt;} grossamount)) * 4&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Sum({[BookCost]&amp;lt;QuarterNum={"$(=If(Max({$}QuarterNum) - 1 = 0, 4, Max({$}QuarterNum)-1))"}, [DimYear] ={"$(=If(Max({$}QuarterNum) - 1 = 0, Max({$}[DimYear]) - 1, Max({$}[DimYear])))"}&amp;gt;} grossamount),'#,###.##')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You had provided me with the above formula for the proper Quarter cycle, which works perfectly but this formula is only feasible for a proper Quarter cycle such as first, second, third and fourth quarters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 18:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052083#M933068</guid>
      <dc:creator />
      <dc:date>2016-02-29T18:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Quarter Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052084#M933069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if you have the number that would be calculated once we select 2016 in DimYear and Jan in DimMonth, but I am getting -2.747 using the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=(Sum({[BookRev]&amp;lt;NumMonth, Month, [DimYear], accountingdate = {"$(='&amp;gt;=' &amp;amp; Date(MonthStart(AddMonths(Max(accountingdate), -2))) &amp;amp; '&amp;lt;=' &amp;amp; Date(MonthEnd(Max(accountingdate))))"}&amp;gt;} grossamount) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({[BookRev]&amp;lt;NumMonth, Month, [DimYear], accountingdate = {"$(='&amp;gt;=' &amp;amp; Date(MonthStart(AddMonths(Max(accountingdate), -5))) &amp;amp; '&amp;lt;=' &amp;amp; Date(MonthEnd(AddMonths(Max(accountingdate), -3))))"}&amp;gt;} grossamount) * 4)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({[BookCost]&amp;lt;NumMonth, Month, [DimYear], accountingdate = {"$(='&amp;gt;=' &amp;amp; Date(MonthStart(AddMonths(Max(accountingdate), -5))) &amp;amp; '&amp;lt;=' &amp;amp; Date(MonthEnd(AddMonths(Max(accountingdate), -3))))"}&amp;gt;} grossamount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you check if this gets you what you wanted?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 18:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052084#M933069</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-29T18:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Quarter Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052085#M933070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116331_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The number should get me close to 1.00 (positive). You can do choose and calculate on whatever calendar fields you want Sunny, I used Month and NumMonth because I was told by a senior Developer in order for you to have a Rolling Quarter you have to use iterno() in the scripting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 19:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Formula/m-p/1052085#M933070</guid>
      <dc:creator />
      <dc:date>2016-02-29T19:31:58Z</dc:date>
    </item>
  </channel>
</rss>

