<?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: Manipulation of date fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Manipulation-of-date-fields/m-p/705164#M1071681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Heinko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no idea why you would want to do this but you can do it this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left(YearMonth,4) +1 &amp;amp; mid(YearMonth,6,2) as Field.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Aug 2014 12:30:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-19T12:30:47Z</dc:date>
    <item>
      <title>Manipulation of date fields</title>
      <link>https://community.qlik.com/t5/QlikView/Manipulation-of-date-fields/m-p/705163#M1071680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question concerning on how to manipulate date fields. Currently I have YearMonth in the format YYYY/MM ranging from 2012/10 to 2013/09:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="year months.png" class="jive-image" src="/legacyfs/online/64727_year months.png" /&gt;&lt;/P&gt;&lt;P&gt;Due to demonstration purposes I want to transform the YearMonth field in a way that I can analyse my data only for year 2012. So, how can we change for example 2012/10 to 2013/10 and 2012/11 to 2013/11?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 12:27:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manipulation-of-date-fields/m-p/705163#M1071680</guid>
      <dc:creator />
      <dc:date>2014-08-19T12:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulation of date fields</title>
      <link>https://community.qlik.com/t5/QlikView/Manipulation-of-date-fields/m-p/705164#M1071681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Heinko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no idea why you would want to do this but you can do it this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left(YearMonth,4) +1 &amp;amp; mid(YearMonth,6,2) as Field.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 12:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manipulation-of-date-fields/m-p/705164#M1071681</guid>
      <dc:creator />
      <dc:date>2014-08-19T12:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulation of date fields</title>
      <link>https://community.qlik.com/t5/QlikView/Manipulation-of-date-fields/m-p/705165#M1071682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, you would have to include '/' as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So do &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;left(YearMonth,4) +1 &amp;amp; '/' &amp;amp; mid(YearMonth,6,2) as Field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 12:33:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manipulation-of-date-fields/m-p/705165#M1071682</guid>
      <dc:creator />
      <dc:date>2014-08-19T12:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulation of date fields</title>
      <link>https://community.qlik.com/t5/QlikView/Manipulation-of-date-fields/m-p/705166#M1071683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your response. Could you please explain me shortly whats the mid function doing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 12:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manipulation-of-date-fields/m-p/705166#M1071683</guid>
      <dc:creator />
      <dc:date>2014-08-19T12:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulation of date fields</title>
      <link>https://community.qlik.com/t5/QlikView/Manipulation-of-date-fields/m-p/705167#M1071684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Heinko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use the mid function you specify which position in a string you want to pull values out of and how many caracters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meaning &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;mid(YearMonth,6 (Start at Caracter 6),2 (Fetch 2 caracters from position 6).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView's example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Substring of the string &lt;SPAN class="Italic"&gt;s&lt;/SPAN&gt;. The result is the string starting at character &lt;SPAN class="Italic"&gt;n1&lt;/SPAN&gt; with the length of &lt;SPAN class="Italic"&gt;n2&lt;/SPAN&gt; characters. If &lt;SPAN class="Italic"&gt;n2&lt;/SPAN&gt; is omitted, the function returns the rightmost part of the string starting at character &lt;SPAN class="Italic"&gt;n1&lt;/SPAN&gt;. The positions in the string are numbered from &lt;SPAN class="Italic"&gt;1&lt;/SPAN&gt; and up. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;mid('abcdef',3 )&lt;/SPAN&gt; returns &lt;SPAN class="Italic"&gt;'cdef'&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;mid('abcdef',3, 2 )&lt;/SPAN&gt; returns &lt;SPAN class="Italic"&gt;'cd'&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;mid( Date,3 )&lt;/SPAN&gt; where &lt;SPAN class="Italic"&gt;Date&lt;/SPAN&gt; = 970714 returns &lt;SPAN class="Italic"&gt;0714&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;mid( Date,3,2 )&lt;/SPAN&gt; where &lt;SPAN class="Italic"&gt;Date&lt;/SPAN&gt; = 970714 returns &lt;SPAN class="Italic"&gt;07&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 12:42:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manipulation-of-date-fields/m-p/705167#M1071684</guid>
      <dc:creator />
      <dc:date>2014-08-19T12:42:19Z</dc:date>
    </item>
  </channel>
</rss>

