<?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: Re: Separating records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679683#M246490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will attach a small sample file so you understand what my issue is and why I cannot use a regular RESIDENT LOAD.&lt;/P&gt;&lt;P&gt;I need to use that FROM_FIELD. There's no other way (that I can see).&lt;/P&gt;&lt;P&gt;And I get good results - QlikView neatly splits the field_contents into three records - only it uses the first of those records as the header.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2014 12:14:30 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2014-10-08T12:14:30Z</dc:date>
    <item>
      <title>Separating records</title>
      <link>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679677#M246484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have an Excel file that someone here on site draws from an Access-based tool that belongs to the customer - it is used by others and we can't influence what it looks like.&lt;/P&gt;&lt;P&gt;So here's the challenge (the first one, there are several, but this post is just for the first one):&lt;/P&gt;&lt;P&gt;=&amp;gt; The way it comes from the original tool, this list looks like sh...&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (meaning: In one record, there can be one item_number - or several) - AND&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; following the item_nr, there CAN be a nr. of items (like "1 Stk"), but it has no known separator (not always the same) and it&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; does not always have the suffix "St" - there might be only a number.&lt;/P&gt;&lt;P&gt;=&amp;gt; I have to somehow separate that into one item_number per record, for there's no way someone can do that manually as often as we need it (every 30min) - a colleague now does it once a day, but the data can change instantly, so every 30min is the current target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me there? Is there a function I can use to separate one record into several?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 09:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679677#M246484</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-08T09:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Separating records</title>
      <link>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679678#M246485</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;OK, I'm one little step further now.&lt;/P&gt;&lt;P&gt;I can use the FROM_FIELD loading option to load the contents of that field only.&lt;/P&gt;&lt;P&gt;=&amp;gt; Now I have to find a way to separate what is to be one record and what is to be the next.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (that will be a bit difficult because that list doesn't have anything like a fixed delimiter)&lt;/P&gt;&lt;P&gt;=&amp;gt; The best I can think of is - the item_nr. has 7 digits. The amount (that can, but doesn't need to be there) usually has less - there are rare exceptions, but usually that's correct - so I can say, the one nr. in that field that's 7 digits long is an item_nr and thus constitutes one record - the rest up to the next 7-digit-long number goes into the same record.&lt;/P&gt;&lt;P&gt;Can anyone help me with the formatting? I have never done this - and I need to get somewhere fast with this (as always)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 10:42:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679678#M246485</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-08T10:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Separating records</title>
      <link>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679679#M246486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would try the following steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- removing from letter-signs&lt;/P&gt;&lt;P&gt;- replacing from possible delimiters&lt;/P&gt;&lt;P&gt;- subfield load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load subfield(replace(replace(keepchar(ITEM, '0123456789,;+*-/\|'), ' ', ','), ';', ','), ',') as ITEM-New From xyz;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 10:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679679#M246486</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-10-08T10:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Separating records</title>
      <link>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679680#M246487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, I will try something like that.&lt;/P&gt;&lt;P&gt;Thanks for helping!&lt;/P&gt;&lt;P&gt;(so I don't actually need that formatting option shown in the help_file?)&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;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 11:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679680#M246487</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-08T11:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Separating records</title>
      <link>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679681#M246488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;KeepChar&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Mat&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, '0123456789') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Mat_Nrs&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;From_Field&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(SOFA_Liste, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Mat&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;BR /&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(right now, that is an alias name I have given to the field using the AS option - QlikView returns an error "field not found" - when I use the original name, the error is "error upon opening file"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;What am I doing wrong here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;P.S.: OK, it works now - I just load everything from that using the * - that gives me three neat records, one for every item_nr, complete with everything else, I can split it in the aftermath.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;=&amp;gt; My issue is: QlikView defines the first thing it finds in that field as the field_header. How can I tell QlikView to use the actual field_header?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 11:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679681#M246488</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-08T11:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Separating records</title>
      <link>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679682#M246489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think to load "From_Field" has a rather theoretical advantage towards a normal load from a table and I have struggeled with them every time I have tried it and so I don't use it - therefore take simply a resident load on your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 12:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679682#M246489</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-10-08T12:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Separating records</title>
      <link>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679683#M246490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will attach a small sample file so you understand what my issue is and why I cannot use a regular RESIDENT LOAD.&lt;/P&gt;&lt;P&gt;I need to use that FROM_FIELD. There's no other way (that I can see).&lt;/P&gt;&lt;P&gt;And I get good results - QlikView neatly splits the field_contents into three records - only it uses the first of those records as the header.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 12:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679683#M246490</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-08T12:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Separating records</title>
      <link>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679684#M246491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I have it - so far. Now I have a field with three separate records - now I have the issue that the remainder of the first line (I have loaded only one line for testing that) needs to be loaded three times - for I have split one field into three records - just populate it downwards.&lt;/P&gt;&lt;P&gt;Can you tell me how I can do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 12:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679684#M246491</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-08T12:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Separating records</title>
      <link>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679685#M246492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so far it's not very complicated - see attachment. If you have more various field-structures you need more from the preparing-steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 13:11:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Separating-records/m-p/679685#M246492</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-10-08T13:11:20Z</dc:date>
    </item>
  </channel>
</rss>

