<?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: LastDateOfMonth in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/LastDateOfMonth/m-p/450145#M1153597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should do the trick: monthend(makedate(MyYear, MyMonth)). Replace MyYear and MyMonth with your field names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Apr 2013 15:39:18 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-04-12T15:39:18Z</dc:date>
    <item>
      <title>LastDateOfMonth</title>
      <link>https://community.qlik.com/t5/QlikView/LastDateOfMonth/m-p/450144#M1153596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create a date spawn from 20000101 to last date in current year and month(period) 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My result have to be: 20130331&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have year field and a period field to get data from, but i don't have the last date in the month (period)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I how can i assign this value to a variable "LastDateInPeriod)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GunnarSchie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 14:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LastDateOfMonth/m-p/450144#M1153596</guid>
      <dc:creator />
      <dc:date>2013-04-12T14:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: LastDateOfMonth</title>
      <link>https://community.qlik.com/t5/QlikView/LastDateOfMonth/m-p/450145#M1153597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should do the trick: monthend(makedate(MyYear, MyMonth)). Replace MyYear and MyMonth with your field names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 15:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LastDateOfMonth/m-p/450145#M1153597</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-12T15:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: LastDateOfMonth</title>
      <link>https://community.qlik.com/t5/QlikView/LastDateOfMonth/m-p/450146#M1153598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank's for fast answer! How do I assign this to a variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMyLastdateofmonth = monthend (makedate (MyYear, MyMonth))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GunnarSchie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 17:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LastDateOfMonth/m-p/450146#M1153598</guid>
      <dc:creator />
      <dc:date>2013-04-12T17:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: LastDateOfMonth</title>
      <link>https://community.qlik.com/t5/QlikView/LastDateOfMonth/m-p/450147#M1153599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to create the variable in the script you can use&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;SET vMyLastdateofMonth = monthend(makedate(MyYear, MyMonth));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;You can also create the variable in the Variable Overview window by clicking on the Add button and entering a name for the variable. After you've created the variable select it in the Variables list and then enter the expression in the Definition box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Remember to replace MyYear and MyMonth with the field names of your document.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Apr 2013 07:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LastDateOfMonth/m-p/450147#M1153599</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-13T07:26:42Z</dc:date>
    </item>
  </channel>
</rss>

