<?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: create last day of a month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022713#M465433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;=date(monthend(date#(&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;txnper &amp;amp;'-'&amp;amp;&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;txnyear,'MM-YYYY')),'DD/MM/YYYY')&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Mar 2016 08:42:30 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2016-03-18T08:42:30Z</dc:date>
    <item>
      <title>create last day of a month</title>
      <link>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022709#M465429</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 hope someone of you could help me.&lt;/P&gt;&lt;P&gt;I Need to create a datefield but I dont have everything needed.&lt;/P&gt;&lt;P&gt;I have a month-field (txnper = '2') and I have a year-field (txnyear = '2016'). This are not datefields.&lt;/P&gt;&lt;P&gt;How can i create from this two fields a new one called txndate with entry of the last day from February 2016 (29.02.2016)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got through many Posts here, but I could find anyone, which has not a dateformat as base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 08:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022709#M465429</guid>
      <dc:creator />
      <dc:date>2016-03-18T08:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: create last day of a month</title>
      <link>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022710#M465430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(MonthEnd(MakeDate(txnyear, txnper)), 'DD.MM.YYYY') as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt;: I would also add Floor in there to make sure that this is truly date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Date(&lt;SPAN style="color: #ff0000;"&gt;Floor(&lt;/SPAN&gt;MonthEnd(MakeDate(txnyear, txnper))&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;, 'DD.MM.YYYY') as Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 08:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022710#M465430</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-18T08:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: create last day of a month</title>
      <link>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022711#M465431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp; IF(Floor(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt; month-field &lt;/SPAN&gt;) = Floor(MonthEnd(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt; year-field &lt;/SPAN&gt;)),Value,0) as LastDay&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;chk below&lt;/SPAN&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;A href="https://community.qlik.com/message/548397"&gt;last day from dimension month&lt;/A&gt;&lt;/SPAN&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;A href="https://community.qlik.com/message/370721"&gt;Help - last day of Month&lt;/A&gt;&lt;/SPAN&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;A href="https://community.qlik.com/message/371531"&gt;Last day of month Value&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 08:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022711#M465431</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-03-18T08:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: create last day of a month</title>
      <link>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022712#M465432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When loading the txnper/txnyear fields, add this line to the load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor(MonthEnd(MakeDate(txnyear, txnper)))) as txndate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MakeDate - create a date of the 1st of the relevant period&lt;/P&gt;&lt;P&gt;MonthEnd - get the last day (including time to the last second) of the month&lt;/P&gt;&lt;P&gt;Floor - drop the time portion&lt;/P&gt;&lt;P&gt;Date - format the date using the default date format set in your environment (DateFormat variable)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 08:41:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022712#M465432</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-03-18T08:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: create last day of a month</title>
      <link>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022713#M465433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;=date(monthend(date#(&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;txnper &amp;amp;'-'&amp;amp;&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;txnyear,'MM-YYYY')),'DD/MM/YYYY')&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 08:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022713#M465433</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-18T08:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: create last day of a month</title>
      <link>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022714#M465434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Truely Date means?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No Time Involvement, is it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 08:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022714#M465434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-18T08:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: create last day of a month</title>
      <link>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022715#M465435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, MonthEnd includes time as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118509_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 08:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022715#M465435</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-18T08:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: create last day of a month</title>
      <link>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022716#M465436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, got it&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 08:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022716#M465436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-18T08:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: create last day of a month</title>
      <link>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022717#M465437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you so much for all your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 08:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022717#M465437</guid>
      <dc:creator />
      <dc:date>2016-03-23T08:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: create last day of a month</title>
      <link>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022718#M465438</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;Here you are your solution:&lt;/P&gt;&lt;P&gt;MonthEnd(AddMonths(MakeDate(Year(Today()),Month(Today())),0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It return the last day of current month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it help you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 15:12:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-last-day-of-a-month/m-p/1022718#M465438</guid>
      <dc:creator />
      <dc:date>2016-05-18T15:12:33Z</dc:date>
    </item>
  </channel>
</rss>

