<?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 Date/Time Grouping in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-Time-Grouping/m-p/809564#M11197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would i take a date column named CREAT_DTTM that outputs (from SQL Server) as the below format... &lt;/P&gt;&lt;P&gt;Creat_DTTM&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------&lt;/P&gt;&lt;P&gt;2013-06-14 12:48:11.000&lt;/P&gt;&lt;P&gt;2014-03-22 09:24:12.000&lt;/P&gt;&lt;P&gt;2014-11-28 16:11:50.000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And have it come out grouped by month with it specified as the 1st of each month, i.e.&lt;/P&gt;&lt;P&gt;2013-06-14 12:48:11.000 = 6/1/2013&lt;/P&gt;&lt;P&gt;2014-03-22 09:24:12.000 = 3/1/2014&lt;/P&gt;&lt;P&gt;2014-11-28 16:11:50.000 = 11/1/2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The days of the month do not matter, as the users only want to see MONTHLY.&amp;nbsp; This is my script i wrote to perform this method in SQL: select CAST(MONTH(Creat_Dttm) AS VARCHAR(2)) + '/1/' + CAST(YEAR(Creat_Dttm) AS VARCHAR(4)) as MONTH&amp;nbsp; &lt;/P&gt;&lt;P&gt;But i need to know how i would do that in QlikView!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also:&amp;nbsp; As a sidenote, is there any code that could take the result of this and instead of outputting date by numbers, it could output the months by name and year?&amp;nbsp; I.e. (This question is far less important than the one above, i just thought it would be cool if it was possible).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2013-06-14 12:48:11.000 = 6/1/2013 = June 2013&lt;/P&gt;&lt;P&gt;2014-03-22 09:24:12.000 = 3/1/2014 = March 2014&lt;/P&gt;&lt;P&gt;2014-11-28 16:11:50.000 = 11/1/2014 = November 2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks to those of you who will take the time out of your busy schedules to help me out &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, 10 Dec 2014 20:26:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-10T20:26:40Z</dc:date>
    <item>
      <title>Date/Time Grouping</title>
      <link>https://community.qlik.com/t5/App-Development/Date-Time-Grouping/m-p/809564#M11197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would i take a date column named CREAT_DTTM that outputs (from SQL Server) as the below format... &lt;/P&gt;&lt;P&gt;Creat_DTTM&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------&lt;/P&gt;&lt;P&gt;2013-06-14 12:48:11.000&lt;/P&gt;&lt;P&gt;2014-03-22 09:24:12.000&lt;/P&gt;&lt;P&gt;2014-11-28 16:11:50.000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And have it come out grouped by month with it specified as the 1st of each month, i.e.&lt;/P&gt;&lt;P&gt;2013-06-14 12:48:11.000 = 6/1/2013&lt;/P&gt;&lt;P&gt;2014-03-22 09:24:12.000 = 3/1/2014&lt;/P&gt;&lt;P&gt;2014-11-28 16:11:50.000 = 11/1/2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The days of the month do not matter, as the users only want to see MONTHLY.&amp;nbsp; This is my script i wrote to perform this method in SQL: select CAST(MONTH(Creat_Dttm) AS VARCHAR(2)) + '/1/' + CAST(YEAR(Creat_Dttm) AS VARCHAR(4)) as MONTH&amp;nbsp; &lt;/P&gt;&lt;P&gt;But i need to know how i would do that in QlikView!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also:&amp;nbsp; As a sidenote, is there any code that could take the result of this and instead of outputting date by numbers, it could output the months by name and year?&amp;nbsp; I.e. (This question is far less important than the one above, i just thought it would be cool if it was possible).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2013-06-14 12:48:11.000 = 6/1/2013 = June 2013&lt;/P&gt;&lt;P&gt;2014-03-22 09:24:12.000 = 3/1/2014 = March 2014&lt;/P&gt;&lt;P&gt;2014-11-28 16:11:50.000 = 11/1/2014 = November 2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks to those of you who will take the time out of your busy schedules to help me out &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, 10 Dec 2014 20:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-Time-Grouping/m-p/809564#M11197</guid>
      <dc:creator />
      <dc:date>2014-12-10T20:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Date/Time Grouping</title>
      <link>https://community.qlik.com/t5/App-Development/Date-Time-Grouping/m-p/809565#M11198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may read the field using the TIMESTAMP#-function, to teach QV that this is a timestamp, for the 1st of each month you may use the MONTHSTART-function, e.g.:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATE(FLOOR(MONTHSTART(MyTimestamp)))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS MonthStart;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;TIMESTAMP(TIMESTAMP(YourField, '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YYYY-MM-DD hh:mm:ss.000')&amp;nbsp;&amp;nbsp;&amp;nbsp; AS MyTimestamp&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;/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;HTH Peter&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;&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; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 21:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-Time-Grouping/m-p/809565#M11198</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2014-12-10T21:01:50Z</dc:date>
    </item>
  </channel>
</rss>

