<?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: Text String with different 'fields' within. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Text-String-with-different-fields-within/m-p/778261#M1030174</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does chop up the source text into different fields but they are still text and don't recognise the date element i.e. year. Therefore any of those created fields will still be ordered in text. Which is the original problem with just loading the one field 'Period'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I am looking to separate the information in the 'Period' Field into chronologically ordered separate components. I.e. recognise Aug-15, Jul-15, Q2 15, Q1 16, Summer15, Winter15 &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;as date values&lt;/EM&gt;&lt;/SPAN&gt; &amp;amp;split them out into different fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Feb 2015 10:16:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-13T10:16:38Z</dc:date>
    <item>
      <title>Text String with different 'fields' within.</title>
      <link>https://community.qlik.com/t5/QlikView/Text-String-with-different-fields-within/m-p/778259#M1030172</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 have an excel file with with data as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="width: 417px; height: 93px; border: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Period&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/14&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Apr15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/14&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Aug15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/14&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Q2 15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;20&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/14&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Q2 16&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/14&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Summer15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'Period' column contains text but rather than load one field as text I would like to convert this into date format. I can do this if the text was all 'Apr15,Aug15...etc.'&lt;/P&gt;&lt;P&gt;The problem is the column can contain Months 'Apr15' , Quarters 'Q2 15' , Seasons 'Summer15' or Years 'Dec12 - Dec13'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way in the script to convert this table field into different chronologically date fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Period as PeriodMonth&lt;/P&gt;&lt;P&gt;Period as PeriodQuarter&lt;/P&gt;&lt;P&gt;Period as PeriodSeason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would allow me to select different periods using different selectors and allow tables to be in chronological order rather than A-Z due to the text string at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 14:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-String-with-different-fields-within/m-p/778259#M1030172</guid>
      <dc:creator />
      <dc:date>2015-02-10T14:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Text String with different 'fields' within.</title>
      <link>https://community.qlik.com/t5/QlikView/Text-String-with-different-fields-within/m-p/778260#M1030173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(left(Period,1)='Q',left(Period,2)) as PeriodQuarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(left(Period,4)='Summ' or left(Period,4)='Wint' or left(Period,4)='Autu' or left(Period,4)='Spri',mid(Period,1,len(Period)-2)) as PeriodSeason,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(left(Period,3)='Sum' or left(Period,3)='Win' or left(Period,3)='Spr' or left(Period,3)='Aut' or left(Period,1)='Q',Null(),Left(Period,3)) as MonthPerdiod,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[151465.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 17:30:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-String-with-different-fields-within/m-p/778260#M1030173</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-02-10T17:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Text String with different 'fields' within.</title>
      <link>https://community.qlik.com/t5/QlikView/Text-String-with-different-fields-within/m-p/778261#M1030174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does chop up the source text into different fields but they are still text and don't recognise the date element i.e. year. Therefore any of those created fields will still be ordered in text. Which is the original problem with just loading the one field 'Period'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I am looking to separate the information in the 'Period' Field into chronologically ordered separate components. I.e. recognise Aug-15, Jul-15, Q2 15, Q1 16, Summer15, Winter15 &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;as date values&lt;/EM&gt;&lt;/SPAN&gt; &amp;amp;split them out into different fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 10:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-String-with-different-fields-within/m-p/778261#M1030174</guid>
      <dc:creator />
      <dc:date>2015-02-13T10:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Text String with different 'fields' within.</title>
      <link>https://community.qlik.com/t5/QlikView/Text-String-with-different-fields-within/m-p/778262#M1030175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What would be the date value for Q1 16 or Summer15?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 11:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-String-with-different-fields-within/m-p/778262#M1030175</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-02-13T11:37:15Z</dc:date>
    </item>
  </channel>
</rss>

