<?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: MTD Flag help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MTD-Flag-help/m-p/1360441#M417045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&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(Date &amp;gt;= MonthStart(AddYears(Today(),-1),0) and Date &amp;lt;= WeekEnd(AddYears(Today(),-1),&lt;SPAN style="color: #ff0000;"&gt;0&lt;/SPAN&gt;,0), 1, 0) as PMTDFlag,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jun 2017 16:50:38 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-06-26T16:50:38Z</dc:date>
    <item>
      <title>MTD Flag help</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-Flag-help/m-p/1360440#M417044</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;I'm trying to derive MTD Flag for Current Year and also for Last Year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MTD Flag is from Current Year Month Start Date to Last Sunday&lt;/P&gt;&lt;P&gt;PMTD Flag is Previous Year Month Start Date to Last Sunday in Previous Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MTD Flag : 6/1/2017 - 6/25/2017&lt;/P&gt;&lt;P&gt;PMTD Flag: 6/1/2016 - 6/26/2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MTD Flag is working but PMTD Flag is ranging from 6/1/2016 - 6/19/2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using below logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(MonthName(Today())=MonthName(Date) and Date &amp;gt;= MonthStart(Today(),0) and Date &amp;lt;= WeekEnd(Today(),-1,0), 1, 0) as MTDFlag,&lt;/P&gt;&lt;P&gt;if(Date &amp;gt;= MonthStart(AddYears(Today(),-1),0) and Date &amp;lt;= WeekEnd(AddYears(Today(),-1),-1,0), 1, 0) as PMTDFlag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request to please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 16:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-Flag-help/m-p/1360440#M417044</guid>
      <dc:creator>satishkurra</dc:creator>
      <dc:date>2017-06-26T16:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: MTD Flag help</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-Flag-help/m-p/1360441#M417045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&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(Date &amp;gt;= MonthStart(AddYears(Today(),-1),0) and Date &amp;lt;= WeekEnd(AddYears(Today(),-1),&lt;SPAN style="color: #ff0000;"&gt;0&lt;/SPAN&gt;,0), 1, 0) as PMTDFlag,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 16:50:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-Flag-help/m-p/1360441#M417045</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-26T16:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: MTD Flag help</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-Flag-help/m-p/1360442#M417046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny for your response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will it work every week going forward&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason behind the ask is i'm performing this check on Monday which is why i'm setting -1 to get Last day of WeekEnd which is Sunday every time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 16:55:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-Flag-help/m-p/1360442#M417046</guid>
      <dc:creator>satishkurra</dc:creator>
      <dc:date>2017-06-26T16:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: MTD Flag help</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-Flag-help/m-p/1360443#M417047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also i do have problem with Previous Year Week Start Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WeekStart(AddYears(Today(),-1),0,0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 17:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-Flag-help/m-p/1360443#M417047</guid>
      <dc:creator>satishkurra</dc:creator>
      <dc:date>2017-06-26T17:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: MTD Flag help</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-Flag-help/m-p/1360444#M417048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So next week the&amp;nbsp; &amp;lt;= part will be 07/03/2017... if that is correct, then you have nothing to worry about&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 17:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-Flag-help/m-p/1360444#M417048</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-26T17:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: MTD Flag help</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-Flag-help/m-p/1360445#M417049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 17:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-Flag-help/m-p/1360445#M417049</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-26T17:10:31Z</dc:date>
    </item>
  </channel>
</rss>

