<?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: MonthStart function help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MonthStart-function-help/m-p/715439#M1074697</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your effort in R &amp;amp; D it helped me to....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thanks a lot!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the hyphen(-) in between 'MMM-YYYY' is just a separator so it can also be included in the code if required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date(MonthStart(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Treatment Start Date]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;), 'MMM-YYYY') as &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TreatmentDate&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Nov 2014 13:26:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-21T13:26:24Z</dc:date>
    <item>
      <title>MonthStart function help</title>
      <link>https://community.qlik.com/t5/QlikView/MonthStart-function-help/m-p/715433#M1074691</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;My script loads the data from an excel file and one field contains date values. I need to convert this date in to the 'MMM-YYYY' format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line of code is:&lt;/P&gt;&lt;P&gt;Date(MonthStart([Treatment Start Date], 'MMM-YYYY'))as TreatmentDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the dates do not appear in the list box after the script is executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Gayan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 12:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthStart-function-help/m-p/715433#M1074691</guid>
      <dc:creator />
      <dc:date>2014-08-05T12:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: MonthStart function help</title>
      <link>https://community.qlik.com/t5/QlikView/MonthStart-function-help/m-p/715434#M1074692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be you need to convert excel field (according to excel format, ?????) using Date# and then Date(Date#...........) &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Date#([Treatment Start Date], '????')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Here some detail&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;A href="https://community.qlik.com/docs/DOC-3102"&gt;QlikView Date fields&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;"&gt;&lt;A href="https://community.qlik.com/docs/DOC-2811"&gt;Primer for QlikView Date fields&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or post some rows of your excel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 13:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthStart-function-help/m-p/715434#M1074692</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-08-05T13:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: MonthStart function help</title>
      <link>https://community.qlik.com/t5/QlikView/MonthStart-function-help/m-p/715435#M1074693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;for numerical date fields in excel:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;Date(MonthStart([Treatment Start Date]), 'MMM-YYYY') as TreatmentDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;for date fields formated as text in excel:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;Date(MonthStart(date#([Treatment Start Date],'MM/DD/YYYY')), 'MMM-YYYY') as TreatmentDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;adjust the first format string to your excel source&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 13:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthStart-function-help/m-p/715435#M1074693</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-08-05T13:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: MonthStart function help</title>
      <link>https://community.qlik.com/t5/QlikView/MonthStart-function-help/m-p/715436#M1074694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If u need your output in "MMM-YYYY" format, then why do u need to use MonthStart()?&lt;/P&gt;&lt;P&gt;First check whether your raw data is in default Date format or not,if not,then u have to use Date#() before using Date().&lt;/P&gt;&lt;P&gt;Date(Date#([Treatment start date],'format of rawa data'),'MMM-YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is in default date format&lt;/P&gt;&lt;P&gt;Use date() directlly.&lt;/P&gt;&lt;P&gt;Date([Treatment Start Date],'MMM-YYYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 13:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthStart-function-help/m-p/715436#M1074694</guid>
      <dc:creator>mahesh_agrawal</dc:creator>
      <dc:date>2014-08-05T13:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: MonthStart function help</title>
      <link>https://community.qlik.com/t5/QlikView/MonthStart-function-help/m-p/715437#M1074695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that you don't get results in your listbox suggests, that the excel values are not recognized as dates.&lt;/P&gt;&lt;P&gt;Check your date format in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adjust the line&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;SET DateFormat='M/D/YYYY'&lt;/STRONG&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;"&gt;to your excel date format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;the monthstart function in your script will not change the textual representation of your dates, but it will set the numerical representation to the first millisecond in this month, i,e, all dates in this month will get the exact same value for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TreatmentDate&lt;/SPAN&gt;, so TreatmentDates can be used as a common dimension for monthly aggregation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 23:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthStart-function-help/m-p/715437#M1074695</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-08-05T23:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: MonthStart function help</title>
      <link>https://community.qlik.com/t5/QlikView/MonthStart-function-help/m-p/715438#M1074696</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;First of all thank you for the input given with regard to my question. Your responses gave me an insight into experimenting with the date related functions. The functions did get me somewhere but it was not getting the desired results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I came across a line of code which was strangely close to the one I posted which was&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date(MonthStart([Treatment Start Date], 'MMM-YYYY')) as TreatmentDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;The code I found online was&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Date(MonthStart(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Treatment Start Date]&lt;/SPAN&gt;), 'MMM YYYY') as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TreatmentDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Amazingly this gave the correct result set I needed. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&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;"&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;"&gt;It was the incorrect closure of brackets that caused the problem. In the original code the MonthStart gets the date input and the format where the output is passed on to the Date function. The revised code gets the date input and the formatting part is done by the Date function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm no pro in this area but the help given by you guys and the bit of R&amp;amp;D helped to achieve the needed result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again thank you all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 08:14:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthStart-function-help/m-p/715438#M1074696</guid>
      <dc:creator />
      <dc:date>2014-08-06T08:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: MonthStart function help</title>
      <link>https://community.qlik.com/t5/QlikView/MonthStart-function-help/m-p/715439#M1074697</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your effort in R &amp;amp; D it helped me to....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thanks a lot!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the hyphen(-) in between 'MMM-YYYY' is just a separator so it can also be included in the code if required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date(MonthStart(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Treatment Start Date]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;), 'MMM-YYYY') as &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TreatmentDate&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 13:26:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthStart-function-help/m-p/715439#M1074697</guid>
      <dc:creator />
      <dc:date>2014-11-21T13:26:24Z</dc:date>
    </item>
  </channel>
</rss>

