<?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 Split data from single column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Split-data-from-single-column/m-p/295772#M1181670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Portolad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While loading data from CSV use Subfield function to split date and time. You can also convert date loaded in string format from CSV to date format using Date# function and Time# function. Use the below script for reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LeadSource, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OwnerId, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date#(subfield(CreatedDate,' ',1),'MM/DD/YYYY') as CreatedDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time#(subfield(CreatedDate,' ',2),'hh:mm') as CreatedTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreatedById, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LastModifiedDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LastModifiedById, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SystemModstamp, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LastStageChangeDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FiscalYear, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FiscalQuarter, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(Opp_Service_Type_925,';',1) as Opp_Service_Type1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(Opp_Service_Type_925,';',2) as Opp_Service_Type2&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Opportunity_QV example.csv]&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also take the below things into consideration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subfield(S, ';' ,1) returns NULL if S is an empty string&lt;/P&gt;&lt;P&gt;subfield(S, ';' ,1) returns an empty string if S is ';'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that in Qlikview 10 or earlier version the reference doc is avalible under C:\Programs Files\Qlikivew\Doc folder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Jan 2012 11:52:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-21T11:52:48Z</dc:date>
    <item>
      <title>Split data from single column</title>
      <link>https://community.qlik.com/t5/QlikView/Split-data-from-single-column/m-p/295771#M1181669</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;I am being provided with .csv documents which contain columns with composite information.&lt;/P&gt;&lt;P&gt;There are two fields that I need to work with, the first contains the date and time combined, e.g. 17/03/2011&amp;nbsp; 21:55:00.&lt;/P&gt;&lt;P&gt;I need to be able to extract the date and work with that. Later, I would like to be able to work with the time field also.&lt;/P&gt;&lt;P&gt;This one is my top priority.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second is a field containing two types of services, separated by a semi-colon e.g. Video; Audio.&lt;/P&gt;&lt;P&gt;I need to be able to split this info out also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the Personal Edition so unfortunately I can't view any qlikview docs!! I have attached an excel document with a sample record (highlighted in yellow) to demonstrate what I am working with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expect the best place to do this is in the script, however I have been unable to crack this to date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2012 10:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-data-from-single-column/m-p/295771#M1181669</guid>
      <dc:creator />
      <dc:date>2012-01-21T10:48:39Z</dc:date>
    </item>
    <item>
      <title>Split data from single column</title>
      <link>https://community.qlik.com/t5/QlikView/Split-data-from-single-column/m-p/295772#M1181670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Portolad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While loading data from CSV use Subfield function to split date and time. You can also convert date loaded in string format from CSV to date format using Date# function and Time# function. Use the below script for reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LeadSource, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OwnerId, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date#(subfield(CreatedDate,' ',1),'MM/DD/YYYY') as CreatedDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time#(subfield(CreatedDate,' ',2),'hh:mm') as CreatedTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreatedById, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LastModifiedDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LastModifiedById, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SystemModstamp, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LastStageChangeDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FiscalYear, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FiscalQuarter, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(Opp_Service_Type_925,';',1) as Opp_Service_Type1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(Opp_Service_Type_925,';',2) as Opp_Service_Type2&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Opportunity_QV example.csv]&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also take the below things into consideration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subfield(S, ';' ,1) returns NULL if S is an empty string&lt;/P&gt;&lt;P&gt;subfield(S, ';' ,1) returns an empty string if S is ';'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that in Qlikview 10 or earlier version the reference doc is avalible under C:\Programs Files\Qlikivew\Doc folder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2012 11:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-data-from-single-column/m-p/295772#M1181670</guid>
      <dc:creator />
      <dc:date>2012-01-21T11:52:48Z</dc:date>
    </item>
    <item>
      <title>Split data from single column</title>
      <link>https://community.qlik.com/t5/QlikView/Split-data-from-single-column/m-p/295773#M1181671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your suggestion works well for one occurrence in the table. Thanks!&lt;/P&gt;&lt;P&gt;What would you suggest for the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="215"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="215"&gt;Product 1, Category&amp;nbsp; 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Product 1, Category 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Product 2, Catergory 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Product 2, Category 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Product 3, Category 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Product 4, Category 1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, I cannot save the Product or the Category under the same title in the same table... yet, I only need to end up with 4 individual products in Category 1 and 2 individual products in Category 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assumption: I cannot change the data at the source (needs to be done in QV)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you think of any suggestions for the script and for the load separately?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Imi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Feb 2012 13:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-data-from-single-column/m-p/295773#M1181671</guid>
      <dc:creator />
      <dc:date>2012-02-11T13:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Split data from single column</title>
      <link>https://community.qlik.com/t5/QlikView/Split-data-from-single-column/m-p/295774#M1181672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is a simple scenario using an excel flatfile.&lt;/P&gt;&lt;P&gt;You wish to split this field into two seperate fields 1. CreatedDate, 2.CreatedTime for reporting purposes in qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;IMG __jive_id="16606" class="jive-image" alt="time field.png" src="/legacyfs/online/16606_time field.png" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Code snippet&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Directory&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,' ',1),'MM/DD/YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CreatedDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Time#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,' ',2),'hh:mm') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CreatedTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[in this case it is loaded from an excel sheet].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 15:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-data-from-single-column/m-p/295774#M1181672</guid>
      <dc:creator />
      <dc:date>2012-06-19T15:30:32Z</dc:date>
    </item>
  </channel>
</rss>

