<?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: Setting date to first in a month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Setting-date-to-first-in-a-month/m-p/1435033#M609221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you!&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I found the Monthstart function (waiting for moderation of the question) and it's acctually possible to just write:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Let vFirstEveryMonth= Monthstart (date(today()));&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;A href="http://help.qlikview.com/en-US/sense/September2017/Subsystems/Hub/Content/Scripting/DateAndTimeFunctions/monthsstart.htm" title="http://help.qlikview.com/en-US/sense/September2017/Subsystems/Hub/Content/Scripting/DateAndTimeFunctions/monthsstart.htm"&gt;monthsstart - script and chart function ‒ Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Date format etc is allready specified earlier in the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Dec 2017 10:24:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-06T10:24:44Z</dc:date>
    <item>
      <title>Setting date to first in a month</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-date-to-first-in-a-month/m-p/1435030#M609218</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 set a variable so it's the first in the current month. &lt;/P&gt;&lt;P&gt;So today 2017-12-06 the variable should read 2017-12-01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;Let vFirstEveryMonth = Date (Year(Today())+Month(Today())+01,'YYYY-MM-DD hh:mm:ss');&lt;/P&gt;&lt;P&gt;Which returns: 1905-07-22 00:00:00 &lt;/P&gt;&lt;P&gt;I assume since it just adds 2017+12+1=2030 which is the day &lt;SPAN style="font-size: 13.3333px;"&gt;1905-07-22.&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;Thankful for any help&lt;/P&gt;&lt;P&gt;Kathrine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 09:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-date-to-first-in-a-month/m-p/1435030#M609218</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-06T09:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Setting date to first in a month</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-date-to-first-in-a-month/m-p/1435031#M609219</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;STRONG&gt;Let vFirstEveryMonth = Date(MonthStart(MakeDate(Year(Today()),Month(Today()),01)));&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 10:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-date-to-first-in-a-month/m-p/1435031#M609219</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-06T10:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Setting date to first in a month</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-date-to-first-in-a-month/m-p/1435032#M609220</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;Have you tried using the MonthsStart function? It looks like it will do the kind of thing you want, with the correct parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 10:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-date-to-first-in-a-month/m-p/1435032#M609220</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2017-12-06T10:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Setting date to first in a month</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-date-to-first-in-a-month/m-p/1435033#M609221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you!&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I found the Monthstart function (waiting for moderation of the question) and it's acctually possible to just write:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Let vFirstEveryMonth= Monthstart (date(today()));&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;A href="http://help.qlikview.com/en-US/sense/September2017/Subsystems/Hub/Content/Scripting/DateAndTimeFunctions/monthsstart.htm" title="http://help.qlikview.com/en-US/sense/September2017/Subsystems/Hub/Content/Scripting/DateAndTimeFunctions/monthsstart.htm"&gt;monthsstart - script and chart function ‒ Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Date format etc is allready specified earlier in the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 10:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-date-to-first-in-a-month/m-p/1435033#M609221</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-06T10:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Setting date to first in a month</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-date-to-first-in-a-month/m-p/1435034#M609222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.... I just tried MonthsStart(1, TODAY()) and it seems to work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 10:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-date-to-first-in-a-month/m-p/1435034#M609222</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2017-12-06T10:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Setting date to first in a month</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-date-to-first-in-a-month/m-p/1435035#M609223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even better &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 16:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-date-to-first-in-a-month/m-p/1435035#M609223</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2017-12-06T16:40:48Z</dc:date>
    </item>
  </channel>
</rss>

