<?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: Splitting a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Splitting-a-field/m-p/878067#M306586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Share your file with some (example) data.&lt;/P&gt;&lt;P&gt;I'm sure you'll get the answer in a couple of minutes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2015 18:55:18 GMT</pubDate>
    <dc:creator>fred_s</dc:creator>
    <dc:date>2015-04-21T18:55:18Z</dc:date>
    <item>
      <title>Splitting a field</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-field/m-p/878066#M306585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am pulling data from SAP and in my File, the field OBJNR, is the key, but I need to split this into 4 separate fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Position 1-2 = Field 1&lt;/P&gt;&lt;P&gt;Position 3 - 6 = Field 2&lt;/P&gt;&lt;P&gt;Position 7 16 = Field 3&lt;/P&gt;&lt;P&gt;Position 16 - 22 = Field 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only need Field 2 and Field 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using Left and Right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left(OBJNR,6) as FIELD1&lt;/P&gt;&lt;P&gt;Right(FIELD1,4) as FIELD2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try and run this I get an error on the Right Statement that FIELD1 does not exist.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I can seen that my data is in FIELD1, but I then need to strip out the first two positions cause I do not need them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried subfield, but did not have luck with that either. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 18:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-field/m-p/878066#M306585</guid>
      <dc:creator />
      <dc:date>2015-04-21T18:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a field</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-field/m-p/878067#M306586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Share your file with some (example) data.&lt;/P&gt;&lt;P&gt;I'm sure you'll get the answer in a couple of minutes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 18:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-field/m-p/878067#M306586</guid>
      <dc:creator>fred_s</dc:creator>
      <dc:date>2015-04-21T18:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a field</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-field/m-p/878068#M306587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;since the load is reading from the current table,&amp;nbsp; 'FIELD1' does not exist because you are creating it on you current load&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; font-size: 13px; line-height: 1.5em;"&gt;try with this method &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Right(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Left(OBJNR,6)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,4)&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;as FIELD2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; 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-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;you could also try with peek but that is just adding complexity&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 18:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-field/m-p/878068#M306587</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-21T18:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a field</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-field/m-p/878069#M306588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FIELD1 cannot be referenced in the same load statement as it does yet exist as an input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the Mid() function four times on &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;OBJNR&lt;/SPAN&gt; to create your 4 required fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 19:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-field/m-p/878069#M306588</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-21T19:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a field</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-field/m-p/878070#M306589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use mid() function:&lt;/P&gt;&lt;P&gt;mid(OBJNR,3,4) as Field2&lt;/P&gt;&lt;P&gt;mid(OBJNR,7,10) as Field3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 19:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-field/m-p/878070#M306589</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-21T19:00:28Z</dc:date>
    </item>
  </channel>
</rss>

