<?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: Load Max Month in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Max-Month-in-Script/m-p/50667#M783960</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;The best way to do this is by using Max() function:&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;Load:&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="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Max(Month) as Month&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM &lt;C&gt; (qvd);&lt;/C&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2018 15:09:40 GMT</pubDate>
    <dc:creator>micheledenardi</dc:creator>
    <dc:date>2018-03-19T15:09:40Z</dc:date>
    <item>
      <title>Load Max Month in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Max-Month-in-Script/m-p/50665#M783957</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 have a QVD where it will have all months but i always i want to take latest month data from that QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month Format : 201802&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;where Month=Max(Month);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used above condition but it always fails, can some one guide me how can i give where clause condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Hk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Max-Month-in-Script/m-p/50665#M783957</guid>
      <dc:creator>dunnalahk123</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load Max Month in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Max-Month-in-Script/m-p/50666#M783958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&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;Month=Date(Max(Month),'YYYYMM')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 15:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Max-Month-in-Script/m-p/50666#M783958</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-03-19T15:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Load Max Month in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Max-Month-in-Script/m-p/50667#M783960</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;The best way to do this is by using Max() function:&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;Load:&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="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Max(Month) as Month&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM &lt;C&gt; (qvd);&lt;/C&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 15:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Max-Month-in-Script/m-p/50667#M783960</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2018-03-19T15:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Load Max Month in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Max-Month-in-Script/m-p/50668#M783962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use as &lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load Month(Max(Date(Date#(Date_Field,'YYYYMM')))) as Max_Month_Date&lt;/P&gt;&lt;P&gt;Resident your_table_name;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * &lt;/P&gt;&lt;P&gt;Resident Your_Table_name&lt;/P&gt;&lt;P&gt;where Exists (Month(Date_Field,&lt;SPAN style="font-size: 13.3333px;"&gt;Max_Month_Date);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Drop Table Temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2 way :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load Month(Max(Date(Date#(Date_Field,'YYYYMM')))) as Max_Month_Date&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident your_table_name;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Let vMaxMonth=Peek('&lt;SPAN style="font-size: 13.3333px;"&gt;Max_Month_Date&lt;/SPAN&gt;',0,'Temp');&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load * &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident Your_Table_name&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;where Month(Date_Field)='$(&lt;SPAN style="font-size: 13.3333px;"&gt;vMaxMonth)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;CY&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 15:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Max-Month-in-Script/m-p/50668#M783962</guid>
      <dc:creator>ychaitanya</dc:creator>
      <dc:date>2018-03-19T15:12:06Z</dc:date>
    </item>
  </channel>
</rss>

