<?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 Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063928#M935196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does are date and time function just used to manipulate the date range you want to look at. You can get more help on them here: &lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/date-time-functions.htm?q=date%20and%20time" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/date-time-functions.htm?q=date%20and%20time"&gt;Date and time functions ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2016 17:32:01 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-03-01T17:32:01Z</dc:date>
    <item>
      <title>Rolling Quarter Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063921#M935189</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;Please tell me if the below formula is the right formula for the rolling quarter. I want to be able to click on MonthYear field (Book Rev) from Jan 2016 to Nov 2015 subtracted by the results (Book Rev) from Oct 2015 to Aug 2015 divided by Book Cost from Oct 2015 to Aug 2015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&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 style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&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 style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&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 style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;When I manually calculated the formula came out to around 1.15 but this formula comes to -2.747.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;Thanks,&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 16:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063921#M935189</guid>
      <dc:creator />
      <dc:date>2016-03-01T16:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Quarter Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063922#M935190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what how your manual calculation is going, but can you check which one of these don't match:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(8818559.46 - (66101177.01 * 4))/6414342.83&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the only thing I you can change is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;(8818559.46 - 66101177.01) * 4/6414342.83 &lt;/STRONG&gt;&lt;/SPAN&gt;which gives 1.377&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 16:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063922#M935190</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-01T16:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Quarter Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063923#M935191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny for your awesome answer. One last piece of the pie I have, if possible and out of courtesy can you please briefly explain me the formula?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 16:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063923#M935191</guid>
      <dc:creator />
      <dc:date>2016-03-01T16:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Quarter Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063924#M935192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there anything specific you don't understand. I mean there are a lot of things going on in the formula, it would be easier to explain parts then to go over the whole thing in detail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063924#M935192</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-01T17:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Quarter Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063925#M935193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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({[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 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;/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;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 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;/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;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 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;Can we explain the negative numbers -3,-5,-2, etc.... please?&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063925#M935193</guid>
      <dc:creator />
      <dc:date>2016-03-01T17:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Quarter Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063926#M935194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure. The best way to understand the negative number is to create text box object and add each of the below to see what they give&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt; ='&amp;gt;=' &amp;amp; Date(MonthStart(AddMonths(Max(accountingdate), -2))) &amp;amp; '&amp;lt;=' &amp;amp; Date(MonthEnd(Max(accountingdate)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2) &lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;='&amp;gt;=' &amp;amp; Date(MonthStart(AddMonths(Max(accountingdate), -5))) &amp;amp; '&amp;lt;=' &amp;amp; Date(MonthEnd(AddMonths(Max(accountingdate), -3)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on your selection these will give you different range of data. Assuming you selected Jan-2016,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st one will give you &lt;STRONG&gt;&amp;gt;=11/01/2015 &amp;lt;= 01/31/2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2nd one will give you &lt;STRONG&gt;&amp;gt;=08/01/2016 &amp;lt;= 10/31/2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now these are being use in the set analysis of your expression to restrict the sums to those date ranges to get you the output you were looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063926#M935194</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-01T17:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Quarter Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063927#M935195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It makes things so much easier...now the monthend, monthstart and addmonths please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063927#M935195</guid>
      <dc:creator />
      <dc:date>2016-03-01T17:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Quarter Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063928#M935196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does are date and time function just used to manipulate the date range you want to look at. You can get more help on them here: &lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/date-time-functions.htm?q=date%20and%20time" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/date-time-functions.htm?q=date%20and%20time"&gt;Date and time functions ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063928#M935196</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-01T17:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Quarter Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063929#M935197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all your help Sunny!!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter-Issue/m-p/1063929#M935197</guid>
      <dc:creator />
      <dc:date>2016-03-01T17:34:51Z</dc:date>
    </item>
  </channel>
</rss>

