<?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: Addmonths functions while pulling data from QVD? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Addmonths-functions-while-pulling-data-from-QVD/m-p/1212265#M388669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicholas, try with this script:&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;LOAD ID, Date#(Date, 'MM/DD/YYYY') as Date, Status Inline [&lt;/P&gt;&lt;P&gt;ID, Date, Status&lt;/P&gt;&lt;P&gt;1,7/12/2016,Y&lt;/P&gt;&lt;P&gt;1,8/10/2016,Y&lt;/P&gt;&lt;P&gt;1,9/09/2016,Y&lt;/P&gt;&lt;P&gt;1,10/12/2016,Y&lt;/P&gt;&lt;P&gt;2,7/18/2016,Y&lt;/P&gt;&lt;P&gt;2,8/22/2016,Y&lt;/P&gt;&lt;P&gt;2,9/02/2016,Y&lt;/P&gt;&lt;P&gt;2,10/13/2016,Y];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxDate_LastMonth:&lt;/P&gt;&lt;P&gt;LOAD AddMonths(Max(Date), -1) as MaxDate_LastMonth&lt;/P&gt;&lt;P&gt;Resident data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMinDate = MonthStart(Peek('MaxDate_LastMonth'));&lt;/P&gt;&lt;P&gt;LET vMaxDate = MonthEnd(Peek('MaxDate_LastMonth'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxDateToFilter:&lt;/P&gt;&lt;P&gt;LOAD Max(Date) as DateToFilter&lt;/P&gt;&lt;P&gt;Resident data Where Date&amp;gt;='$(vMinDate)' and Date&amp;lt;='$(vMaxDate)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Tables data, MaxDate_LastMonth;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// &lt;SPAN style="font-size: 13.3333px;"&gt;DateToFilter contains the date, you can extract to a variable for use in 'where condition' with: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;// LET v&lt;SPAN style="font-size: 13.3333px;"&gt;DateToFilter&lt;/SPAN&gt; = Peek('&lt;SPAN style="font-size: 13.3333px;"&gt;DateToFilter&lt;/SPAN&gt;');&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Nov 2016 10:51:36 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2016-11-08T10:51:36Z</dc:date>
    <item>
      <title>Addmonths functions while pulling data from QVD?</title>
      <link>https://community.qlik.com/t5/QlikView/Addmonths-functions-while-pulling-data-from-QVD/m-p/1212263#M388667</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 am trying to load data from a QVD where records are equal to one m,onth less than max (date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go through the attached QVW, which explains my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 21:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Addmonths-functions-while-pulling-data-from-QVD/m-p/1212263#M388667</guid>
      <dc:creator>qlikuser222</dc:creator>
      <dc:date>2016-11-07T21:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Addmonths functions while pulling data from QVD?</title>
      <link>https://community.qlik.com/t5/QlikView/Addmonths-functions-while-pulling-data-from-QVD/m-p/1212264#M388668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max date is 10/13/2016 and one month before that date would 9/13/2016? Why are you looking to pull 9/9/2016? Is it because it is the closest date to the Max Date - 1? So you would always want to pull one record in total? I think you will have to provide some more details, before one of us can help you out here &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 10:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Addmonths-functions-while-pulling-data-from-QVD/m-p/1212264#M388668</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-08T10:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Addmonths functions while pulling data from QVD?</title>
      <link>https://community.qlik.com/t5/QlikView/Addmonths-functions-while-pulling-data-from-QVD/m-p/1212265#M388669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicholas, try with this script:&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;LOAD ID, Date#(Date, 'MM/DD/YYYY') as Date, Status Inline [&lt;/P&gt;&lt;P&gt;ID, Date, Status&lt;/P&gt;&lt;P&gt;1,7/12/2016,Y&lt;/P&gt;&lt;P&gt;1,8/10/2016,Y&lt;/P&gt;&lt;P&gt;1,9/09/2016,Y&lt;/P&gt;&lt;P&gt;1,10/12/2016,Y&lt;/P&gt;&lt;P&gt;2,7/18/2016,Y&lt;/P&gt;&lt;P&gt;2,8/22/2016,Y&lt;/P&gt;&lt;P&gt;2,9/02/2016,Y&lt;/P&gt;&lt;P&gt;2,10/13/2016,Y];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxDate_LastMonth:&lt;/P&gt;&lt;P&gt;LOAD AddMonths(Max(Date), -1) as MaxDate_LastMonth&lt;/P&gt;&lt;P&gt;Resident data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMinDate = MonthStart(Peek('MaxDate_LastMonth'));&lt;/P&gt;&lt;P&gt;LET vMaxDate = MonthEnd(Peek('MaxDate_LastMonth'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxDateToFilter:&lt;/P&gt;&lt;P&gt;LOAD Max(Date) as DateToFilter&lt;/P&gt;&lt;P&gt;Resident data Where Date&amp;gt;='$(vMinDate)' and Date&amp;lt;='$(vMaxDate)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Tables data, MaxDate_LastMonth;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// &lt;SPAN style="font-size: 13.3333px;"&gt;DateToFilter contains the date, you can extract to a variable for use in 'where condition' with: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;// LET v&lt;SPAN style="font-size: 13.3333px;"&gt;DateToFilter&lt;/SPAN&gt; = Peek('&lt;SPAN style="font-size: 13.3333px;"&gt;DateToFilter&lt;/SPAN&gt;');&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 10:51:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Addmonths-functions-while-pulling-data-from-QVD/m-p/1212265#M388669</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-11-08T10:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Addmonths functions while pulling data from QVD?</title>
      <link>https://community.qlik.com/t5/QlikView/Addmonths-functions-while-pulling-data-from-QVD/m-p/1212266#M388670</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;&lt;/P&gt;&lt;P&gt;Sorry about the insuffie QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My example data is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;ID, Date, Status1,Status2&lt;/P&gt;&lt;P&gt;1,7/30/2016,Y,Y&lt;/P&gt;&lt;P&gt;1,8/30/2016,Y,N&lt;/P&gt;&lt;P&gt;1,9/30/2016,Y,Y&lt;/P&gt;&lt;P&gt;1,10/30/2016,Y,Y&lt;/P&gt;&lt;P&gt;2,7/30/2016,Y,N&lt;/P&gt;&lt;P&gt;2,8/30/2016,N,Y&lt;/P&gt;&lt;P&gt;2,9/30/2016,Y,Y&lt;/P&gt;&lt;P&gt;2,10/30/2016,Y,Y];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above data is in QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want load only&lt;/P&gt;&lt;P&gt;1,9/30/2016,Y,Y and 2,9/30/2016,Y,Y into QVW from the above QVD data. (records which are associated to&amp;nbsp; one month less than max month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 15:53:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Addmonths-functions-while-pulling-data-from-QVD/m-p/1212266#M388670</guid>
      <dc:creator>qlikuser222</dc:creator>
      <dc:date>2016-11-08T15:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Addmonths functions while pulling data from QVD?</title>
      <link>https://community.qlik.com/t5/QlikView/Addmonths-functions-while-pulling-data-from-QVD/m-p/1212267#M388671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something along these lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load * inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID, Date, Status1,Status2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1,7/30/2016,Y,Y&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1,8/30/2016,Y,N&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1,9/30/2016,Y,Y&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1,10/30/2016,Y,Y&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2,7/30/2016,Y,N&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2,8/30/2016,N,Y&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2,9/30/2016,Y,Y&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2,10/30/2016,Y,Y];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MaxLoad:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD AddMonths(Max(Date), -1) as ReqDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vReqDate = Num(Peek('ReqDate'));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRACE $(vReqDate);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table MaxLoad;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Date = $(vReqDate);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 16:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Addmonths-functions-while-pulling-data-from-QVD/m-p/1212267#M388671</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-08T16:56:24Z</dc:date>
    </item>
  </channel>
</rss>

