<?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 QTD and Previous QTD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883147#M993272</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;Can any one help me to calculate QTD and Previous QTD?&lt;/P&gt;&lt;P&gt;I am following Fiscal year, Apr to March,&lt;/P&gt;&lt;P&gt;Calculating Quarterstart and Quarter end&amp;nbsp; as below&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt; Date(QuarterStart([DATE]))&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;AS [Quarter Start],&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(QuarterEnd([DATE]))&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;AS [Quarter End],&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({&amp;lt; [Quarter Start] = {'&amp;gt;=$(=QuarterStart(max([Quarter Start]))) &amp;lt;=$(=(max([Quarter End])))'}&amp;gt;}[Credit In Company Currency])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-sum({&amp;lt; [Quarter Start] = {'&amp;gt;=$(=QuarterStart(max([Quarter Start]))) &amp;lt;=$(=(max([Quarter End])))'}&amp;gt;}[Debit In Company Currency]) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know if required any thing else from my side..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Abhay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Jul 2015 09:48:00 GMT</pubDate>
    <dc:creator>abhaysingh</dc:creator>
    <dc:date>2015-07-04T09:48:00Z</dc:date>
    <item>
      <title>QTD and Previous QTD</title>
      <link>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883147#M993272</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;Can any one help me to calculate QTD and Previous QTD?&lt;/P&gt;&lt;P&gt;I am following Fiscal year, Apr to March,&lt;/P&gt;&lt;P&gt;Calculating Quarterstart and Quarter end&amp;nbsp; as below&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt; Date(QuarterStart([DATE]))&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;AS [Quarter Start],&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(QuarterEnd([DATE]))&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;AS [Quarter End],&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({&amp;lt; [Quarter Start] = {'&amp;gt;=$(=QuarterStart(max([Quarter Start]))) &amp;lt;=$(=(max([Quarter End])))'}&amp;gt;}[Credit In Company Currency])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-sum({&amp;lt; [Quarter Start] = {'&amp;gt;=$(=QuarterStart(max([Quarter Start]))) &amp;lt;=$(=(max([Quarter End])))'}&amp;gt;}[Debit In Company Currency]) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know if required any thing else from my side..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Abhay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2015 09:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883147#M993272</guid>
      <dc:creator>abhaysingh</dc:creator>
      <dc:date>2015-07-04T09:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: QTD and Previous QTD</title>
      <link>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883148#M993273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look on these posting &lt;A href="https://community.qlik.com/docs/DOC-8843"&gt;How to use - Master-Calendar and Date-Values&lt;/A&gt;. The last three links led to excellent posting about the advanced comparing from periods. And I think the other topics there will be helpful for you, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2015 10:44:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883148#M993273</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-07-04T10:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: QTD and Previous QTD</title>
      <link>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883149#M993274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like for QTD&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({&amp;lt; [DATE] = {"&amp;gt;=$(=QuarterStart(Today()))&amp;lt;=$(=Today())"}&amp;gt;} [Credit In Company Currency])&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({&amp;lt; [DATE] = {"&amp;gt;=$(=QuarterStart(Today()))&amp;lt;=$(=Today())"}&amp;gt;}[Debit In Company Currency])&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; You may need to clear selections in all calendar fields, the user may select in (assuming the stated four fields as example only):&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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({&amp;lt; [DATE] = {"&amp;gt;=$(=QuarterStart(Today()))&amp;lt;=$(=Today())"}, [Quarter Start], [Quarter End], Month, Year &amp;gt;} [Credit In Company Currency])&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({&amp;lt; [DATE] = {"&amp;gt;=$(=QuarterStart(Today()))&amp;lt;=$(=Today())"}&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;, [Quarter Start], [Quarter End], Month, Year &lt;/STRONG&gt;&amp;gt;}[Debit In Company Currency])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Similar for previous QTD:&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({&amp;lt; [DATE] = {"&amp;gt;=$(=QuarterStart(Today(),-1))&amp;lt;=$(=Addmonths(Today(),-3))"}&amp;gt;} [Credit In Company Currency])&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({&amp;lt; [DATE] = {"&amp;gt;=$(=QuarterStart(Today(),-1))&amp;lt;=$(=Addmonths(Today(),-3))"}&amp;gt;}[Debit In Company Currency])&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;Again, you'll need to clear selections in other calendar fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2015 11:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883149#M993274</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-04T11:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: QTD and Previous QTD</title>
      <link>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883150#M993275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks For revert but getting one issue, &lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;Addmonths(Today(),-3)) , always will give me current date minus three month .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but i want it should give me 01-04-2015 to 30-06-2015.. could you pls help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;abhay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2015 11:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883150#M993275</guid>
      <dc:creator>abhaysingh</dc:creator>
      <dc:date>2015-07-04T11:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: QTD and Previous QTD</title>
      <link>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883151#M993276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use Addmonths(max(DATE),-3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2015 11:56:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883151#M993276</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-07-04T11:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: QTD and Previous QTD</title>
      <link>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883152#M993277</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;See the image i am able to get the Delta period of in Between Dates but not getting value.. can any help me in this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2015 12:06:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883152#M993277</guid>
      <dc:creator>abhaysingh</dc:creator>
      <dc:date>2015-07-04T12:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: QTD and Previous QTD</title>
      <link>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883153#M993278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have calendar dates in that range?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For previous quarter (but that's not called previous QTD), you can use:&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;Similar for previous Quarter:&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({&amp;lt; [DATE] = {"&amp;gt;=$(=QuarterStart(Today(),-1))&amp;lt;=$(=QuarterEnd(Today(),-1))"}&amp;gt;} [Credit In Company Currency])&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({&amp;lt; [DATE] = {"&amp;gt;=$(=QuarterStart(Today(),-1))&amp;lt;=$(=QuarterEnd(Today(),-1))"}&amp;gt;}[Debit In Company Currency])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2015 12:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883153#M993278</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-04T12:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: QTD and Previous QTD</title>
      <link>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883154#M993279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See My Calender&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vNoOfRows = Null();&lt;/P&gt;&lt;P&gt;LET vFileSize = Null();&lt;/P&gt;&lt;P&gt;LET vFileTime = Null();&lt;/P&gt;&lt;P&gt;LET vFileTracker_TableName = Null();&lt;/P&gt;&lt;P&gt;LET vTableName = Null();&lt;/P&gt;&lt;P&gt;LET vFileTrackerPath = Null();&lt;/P&gt;&lt;P&gt;LET FiscalMonthStart = Null();&lt;/P&gt;&lt;P&gt;LET DatabaseStartYear = Null();&lt;/P&gt;&lt;P&gt;LET FiscalMonthAdjust = Null();&lt;/P&gt;&lt;P&gt;LET DAYS = Null();&lt;/P&gt;&lt;P&gt;LET vStartTime=Now();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Variable Declarations&lt;/P&gt;&lt;P&gt;LET vTableName = 'Stage2_Common_Calendar';&lt;/P&gt;&lt;P&gt;//LET vFileTracker_TableName = 'FileTracker_$(vTableName)';&lt;/P&gt;&lt;P&gt;//LET vFileTrackerPath = '$(FileTracker_Stage2)';&lt;/P&gt;&lt;P&gt;LET FiscalMonthStart = '4';&lt;/P&gt;&lt;P&gt;LET DatabaseStartYear = year(yearend(today()-1,0,$(FiscalMonthStart)))-1;&lt;/P&gt;&lt;P&gt;LET FiscalMonthAdjust = $(FiscalMonthStart)-1;&lt;/P&gt;&lt;P&gt;LET DAYS = ceil(YearEnd(Today())-MakeDate($(DatabaseStartYear)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar1:&lt;/P&gt;&lt;P&gt;LOAD date(Makedate($(DatabaseStartYear))+recno()-1) AS [DATE],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year(date(makedate($(DatabaseStartYear))+recno()-1)) AS [YEAR],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month(date(makedate($(DatabaseStartYear))+recno()-1)) AS [MONTH]&lt;/P&gt;&lt;P&gt;AUTOGENERATE ($(DAYS));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar2:&lt;/P&gt;&lt;P&gt;LOAD date([DATE],'DD-MM-YYYY') AS [Calendar Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date([DATE],'DD-MM-YYYY') AS [link_Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; day([DATE]) AS Days,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; week([DATE]) AS Weeks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekDay([DATE]) AS WeekDays,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor(WeekStart([DATE])),'DD-MMM') AS [Week Start],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor(WeekEnd([DATE])),'DD-MMM') AS [Week End],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [YEAR] AS [Calendar Year],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [MONTH] AS [Calendar Month],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (month([DATE])&amp;lt;=$(FiscalMonthAdjust),month([DATE])+(12-$(FiscalMonthAdjust)), month([DATE])-$(FiscalMonthAdjust)) AS [Fiscal Month Num],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUM(month([DATE])) AS [Calendar Month Num],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(if(MONTH&amp;gt;=1,'Q')&amp;amp; ceil(if(MONTH&amp;lt;=$(FiscalMonthAdjust),MONTH+12-$(FiscalMonthAdjust),MONTH-$(FiscalMonthAdjust))/3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ceil(if(MONTH&amp;lt;=$(FiscalMonthAdjust),MONTH+12-$(FiscalMonthAdjust),MONTH-$(FiscalMonthAdjust))/3)) AS [Fiscal Quarter],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year(yearname([DATE],0,$(FiscalMonthStart))) AS [Fiscal Year],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yearname(DATE,0,$(FiscalMonthStart) ) as FYTEst,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left(yearname([DATE],0,$(FiscalMonthStart)),5)&amp;amp;right(yearname([DATE],0,$(FiscalMonthStart)),2) AS [FY Year Name],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(MonthStart([DATE]),'DD-MM-YYYY') AS [Month Start],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(MonthEnd([DATE]),'DD-MM-YYYY') AS [Month End],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(QuarterStart([DATE])) AS [Quarter Start],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(QuarterEnd([DATE])) AS [Quarter End],&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(YearName([DATE],0,$(FiscalMonthStart)))*100+(if (month([DATE])&amp;lt;=$(FiscalMonthAdjust),month([DATE])+(12-$(FiscalMonthAdjust)),month([DATE])-$(FiscalMonthAdjust))) AS [Fiscal YYYYMM]&lt;/P&gt;&lt;P&gt;RESIDENT Calendar1;&lt;/P&gt;&lt;P&gt;DROP TABLE Calendar1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar_Final:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; dual([Calendar Month]&amp;amp;chr(39)&amp;amp;right([Calendar Year],2),[Fiscal YYYYMM]) AS [Calendar Month Year],&lt;/P&gt;&lt;P&gt;&amp;nbsp; dual([Calendar Month],[Fiscal Month Num]) AS [Fiscal Month]&lt;/P&gt;&lt;P&gt;RESIDENT Calendar2;&lt;/P&gt;&lt;P&gt;DROP TABLE Calendar2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2015 12:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883154#M993279</guid>
      <dc:creator>abhaysingh</dc:creator>
      <dc:date>2015-07-04T12:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: QTD and Previous QTD</title>
      <link>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883155#M993280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want me to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I intended to ask if there are &lt;EM&gt;facts&lt;/EM&gt; within the time range you are requesting, because you are essentially summing up these credt and debit values that need to have records related to these time range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you upload a small sample QVW, this would make it much easier to help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2015 12:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QTD-and-Previous-QTD/m-p/883155#M993280</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-04T12:26:19Z</dc:date>
    </item>
  </channel>
</rss>

