<?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: Prior Year MTD and Prior Year QTD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356565#M416307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be flag like these... not sure what is the purpose of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;month(FDM)&amp;amp;' '&amp;amp;year(FDM):&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FDM &amp;gt;= MonthStart(Today(), -1) and &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FDM &amp;lt;= AddMonth(Today(), -1), &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;1, 0) as [Prior MTD Flag],&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FDM &amp;gt;= QuarterStart(Today(), -1) and &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FDM &amp;lt;= AddMonth(Today(), -1), &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;1, 0) as [Prior YTD Flag],&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FDM &amp;gt;= YearStart(Today(), -1) and &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FDM &amp;lt;= AddMonth(Today(), -1), &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;1, 0) as [Prior QTD Flag]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 May 2017 11:45:09 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-05-03T11:45:09Z</dc:date>
    <item>
      <title>Prior Year MTD and Prior Year QTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356562#M416304</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;Can Some one help me with below expression how to derive Prior MTD and Prior QTD.&lt;/P&gt;&lt;P&gt;FDM= First Day of Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below expression is giving me Prior YTD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(FDM &amp;gt;= AddYears(YearStart(today()),-1) and FDM &amp;lt;= AddYears(addmonths(MonthEnd(today()),-1),-1),month(FDM)&amp;amp;' '&amp;amp;year(FDM)) as [Prior YTD], &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any Pointers are helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 09:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356562#M416304</guid>
      <dc:creator>kishoreravi1983</dc:creator>
      <dc:date>2017-05-03T09:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Year MTD and Prior Year QTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356563#M416305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try out the following link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-6163"&gt;YTQ, QTD, MTD and WTD&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 11:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356563#M416305</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2017-05-03T11:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Year MTD and Prior Year QTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356564#M416306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer below link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-17974"&gt;Date Level Analysis - WTD, MTD, QTD &amp;amp;amp; YTD (Current Year &amp;amp;amp; Previous Year)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 11:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356564#M416306</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-05-03T11:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Year MTD and Prior Year QTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356565#M416307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be flag like these... not sure what is the purpose of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;month(FDM)&amp;amp;' '&amp;amp;year(FDM):&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FDM &amp;gt;= MonthStart(Today(), -1) and &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FDM &amp;lt;= AddMonth(Today(), -1), &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;1, 0) as [Prior MTD Flag],&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FDM &amp;gt;= QuarterStart(Today(), -1) and &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FDM &amp;lt;= AddMonth(Today(), -1), &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;1, 0) as [Prior YTD Flag],&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FDM &amp;gt;= YearStart(Today(), -1) and &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FDM &amp;lt;= AddMonth(Today(), -1), &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;1, 0) as [Prior QTD Flag]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 11:45:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356565#M416307</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-03T11:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Year MTD and Prior Year QTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356566#M416308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;month(FDM)&amp;amp;' '&amp;amp;year(FDM) this is to display the Value in Given format.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 06:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356566#M416308</guid>
      <dc:creator>kishoreravi1983</dc:creator>
      <dc:date>2017-05-04T06:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Year MTD and Prior Year QTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356567#M416309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, I am not getting the Right Result.&amp;nbsp; Prior QTD FLAG should give me 2016, Q1 and Q2&lt;/P&gt;&lt;P&gt;Prior MTD should give me 2016 April or May, which ever is my current month in 2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you plz relook if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Prior.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162140_Prior.JPG" style="height: 267px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 06:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356567#M416309</guid>
      <dc:creator>kishoreravi1983</dc:creator>
      <dc:date>2017-05-04T06:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Year MTD and Prior Year QTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356568#M416310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Was nice Post in term of Writing has an Expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i would like to Derive it at Script level. I am not giving the user any selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 06:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356568#M416310</guid>
      <dc:creator>kishoreravi1983</dc:creator>
      <dc:date>2017-05-04T06:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Year MTD and Prior Year QTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356569#M416311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it... try this&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;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;If(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;FDM &amp;gt;= MonthStart(AddYears(Today(), -1)) and &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;FDM &amp;lt;= AddYears(Today(), -1), &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;1, 0) as [Prior MTD Flag],&lt;/SPAN&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;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;If(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;FDM &amp;gt;= QuarterStart(&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;AddYears(&lt;/STRONG&gt;Today(), -1)) and &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;FDM &amp;lt;= &lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;AddYears&lt;/STRONG&gt;(Today(), -1), &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;1, 0) as [Prior QTD Flag],&lt;/SPAN&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;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;If(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;FDM &amp;gt;= YearStart(&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;AddYears(&lt;/STRONG&gt;Today(), -1)) and &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;FDM &amp;lt;= &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; font-style: inherit;"&gt;AddYears&lt;/STRONG&gt;(Today(), -1), &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;1, 0) as [Prior YTD Flag]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 11:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356569#M416311</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-04T11:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Year MTD and Prior Year QTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356570#M416312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny..It was very Helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 16:19:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356570#M416312</guid>
      <dc:creator>kishoreravi1983</dc:creator>
      <dc:date>2017-05-04T16:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Year MTD and Prior Year QTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356571#M416313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Hope you are doing good.&lt;/P&gt;&lt;P&gt;I am stuck with an Issue with Prior QTD.&lt;/P&gt;&lt;P&gt;Actually as per financial Year i am in Q3. First month&lt;/P&gt;&lt;P&gt;If(FirstDayofMonth &amp;gt;= QuarterStart(AddYears(Today(), -1)) and FirstDayofMonth &amp;lt;=Quarterend(AddYears(Today(), -1)), 1, 0) as [Prior QTD Flag],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when am using this Prior QTD Flag it is still calculating for 2016-Q2 where has its should show me 2016-Q3 1 Month Data.&lt;/P&gt;&lt;P&gt;How do i write an Expression or short out this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out. If you are free we can connect over the web or Go to meeting link for small call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 07:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356571#M416313</guid>
      <dc:creator>kishoreravi1983</dc:creator>
      <dc:date>2017-06-04T07:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Year MTD and Prior Year QTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356572#M416314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be helpful if you can share a sample which shows the problem you are seeing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 16:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356572#M416314</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-04T16:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Prior Year MTD and Prior Year QTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356573#M416315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find my Calendar script below for all your needs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Calendar":&lt;/P&gt;&lt;P&gt;LOAD [Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Day([Date]) AS [Day],&lt;/P&gt;&lt;P&gt;&amp;nbsp; WeekDay([Date]) AS [WeekDay],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Week([Date]) AS [WeekOfYear],&lt;/P&gt;&lt;P&gt;// Week([Date]) AS [Week],&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; WeekYear([Date]) AS [WeekYear], //Added 2012-05-15 - To fix week of month&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month([Date]) AS [Month],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year([Date]) AS [Year],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(Date([Date],'DD/MM/YYYY')) AS [Month Name],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(MonthStart([Date]),'MMM/YY') AS [MonthFiscal],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(YearStart([Date],0,0),'YYYY') AS [YearFiscal],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date([Date],'MM-YYYY') AS [YearMonth],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year([Date])*100+Month([Date]) AS [YearMonth2],&amp;nbsp;&amp;nbsp; //Added 2012-05-15 - To fix week of month&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Q' &amp;amp; Ceil(Month([Date])/3) AS [Quarter],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year([Date]) &amp;amp; '/' &amp;amp; 'Q' &amp;amp; Ceil(Month([Date])/3) AS [YearQuarter],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Num(WeekDay([Date])) AS [Weekday#],&lt;/P&gt;&lt;P&gt;&amp;nbsp; YearToDate([Date], 0,1) AS [CurrentYTDFlag],&lt;/P&gt;&lt;P&gt;&amp;nbsp; YearToDate([Date],-1,1) AS [LastYTDFlag],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;//=================================================LEAP YEAR=========================================================================//&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Mod(Date(YearStart([Date],1,0),'YYYY'),4) = 0 AND Mod(Date(YearStart([Date],1,0),'YYYY'),100) &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; OR Mod(Date(YearStart([Date],1,0),'YYYY'),400) = 0,'Yes','No') AS [LeapYearFlag],&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Year([Date]) = (Year(Today())), 1, 0) AS [CY_Flag],&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Year([Date]) = (Year(Today())-1), 1, 0) AS [LY_Flag]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;RESIDENT&amp;nbsp; "NonConformity"&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"WeekOfMonth":&lt;/P&gt;&lt;P&gt;LOAD DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp; [YearMonth2] AS [T1],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [WeekOfYear] AS [T2],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Date] AS [T3]&lt;/P&gt;&lt;P&gt;// If (isnull(peek("WeekOfYear")),1, if (peek("WeekOfYear") &amp;lt;&amp;gt; WeekOfYear, peek("MonthCount")+1,peek("MonthCount"))) as WeekOfMonth,&lt;/P&gt;&lt;P&gt;// If(YearMonth=Peek('T1',-1) And WeekOfYear=Peek('T2',-1)+1,Peek('WeekOfMonth',-1)+1,1) AS [WeekOfMonth]&lt;/P&gt;&lt;P&gt;RESIDENT "Calendar"&lt;/P&gt;&lt;P&gt;ORDER BY [YearMonth2], [Date]//, [WeekOfYear]&lt;/P&gt;&lt;P&gt;; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"New":&lt;/P&gt;&lt;P&gt;NOCONCATENATE LOAD DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp; T1, //AS [YearMonth],&lt;/P&gt;&lt;P&gt;&amp;nbsp; T2, //AS [WeekOfYear],&lt;/P&gt;&lt;P&gt;&amp;nbsp; //T3,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(T1=Peek('T1',-1), If(T2=Peek('T2',-1),Peek('WeekOfMonth',-1),Peek('WeekOfMonth',-1)+1) ,1) AS [WeekOfMonth],&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Week ' &amp;amp; If(T1=Peek('T1',-1), If(T2=Peek('T2',-1),Peek('WeekOfMonth',-1),Peek('WeekOfMonth',-1)+1) ,1) AS [WeekOfMonthCode]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT "WeekOfMonth";&lt;/P&gt;&lt;P&gt;DROP TABLE "WeekOfMonth"; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN ("Calendar")&lt;/P&gt;&lt;P&gt;//NOCONCATENATE &lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; [T1] AS YearMonth2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; [T2] AS WeekOfYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp; [WeekOfMonth],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [WeekOfMonthCode]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT "New";&lt;/P&gt;&lt;P&gt;DROP TABLE "New"; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 06:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prior-Year-MTD-and-Prior-Year-QTD/m-p/1356573#M416315</guid>
      <dc:creator>goro2010</dc:creator>
      <dc:date>2017-06-05T06:25:42Z</dc:date>
    </item>
  </channel>
</rss>

