<?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 divided data as one column in different fields? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/divided-data-as-one-column-in-different-fields/m-p/273533#M102364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;divided&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;data&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;as&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;one column in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;different fields&lt;/SPAN&gt;, that are &lt;SPAN class="hps"&gt;related&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in the same&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;table&lt;/SPAN&gt;? &lt;SPAN class="hps"&gt;Attachment&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;file.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Thank you&lt;/SPAN&gt;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jan 2012 12:28:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-13T12:28:17Z</dc:date>
    <item>
      <title>divided data as one column in different fields?</title>
      <link>https://community.qlik.com/t5/QlikView/divided-data-as-one-column-in-different-fields/m-p/273533#M102364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;divided&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;data&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;as&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;one column in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;different fields&lt;/SPAN&gt;, that are &lt;SPAN class="hps"&gt;related&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in the same&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;table&lt;/SPAN&gt;? &lt;SPAN class="hps"&gt;Attachment&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;file.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Thank you&lt;/SPAN&gt;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 12:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/divided-data-as-one-column-in-different-fields/m-p/273533#M102364</guid>
      <dc:creator />
      <dc:date>2012-01-13T12:28:17Z</dc:date>
    </item>
    <item>
      <title>divided data as one column in different fields?</title>
      <link>https://community.qlik.com/t5/QlikView/divided-data-as-one-column-in-different-fields/m-p/273534#M102365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;LOAD Customer, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Com,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(trim(mid(Customer,3,2))='.-',trim(mid(Customer,5)),peek(Group)) as Group,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(trim(mid(Customer,3,2))='.-',1,0) as IsHeader&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[.\Pregunta_Foro.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Hoja1, filters(&lt;/P&gt;&lt;P&gt;Remove(Row, Pos(Top, 22)),&lt;/P&gt;&lt;P&gt;Remove(Row, Pos(Top, 21)),&lt;/P&gt;&lt;P&gt;Remove(Row, Pos(Top, 20)),&lt;/P&gt;&lt;P&gt;Remove(Row, Pos(Top, 19)),&lt;/P&gt;&lt;P&gt;Remove(Row, Pos(Top, 18)),&lt;/P&gt;&lt;P&gt;Remove(Row, Pos(Top, 17)),&lt;/P&gt;&lt;P&gt;Remove(Row, Pos(Top, 16)),&lt;/P&gt;&lt;P&gt;Remove(Row, Pos(Top, 15)),&lt;/P&gt;&lt;P&gt;Remove(Row, Pos(Top, 14))&lt;/P&gt;&lt;P&gt;));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;LOAD Customer, Sales, Group, Com resident INPUT where not IsHeader;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table INPUT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The important part are these two lines:&lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt; if(trim(mid(Customer,3,2))='.-',trim(mid(Customer,5)),peek(Group)) as Group,&lt;/P&gt;&lt;P&gt;if(trim(mid(Customer,3,2))='.-',1,0) as IsHeader&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first is creating your Group by parsing the Customer string for the sub-string '.-', you may need to adapt the mid() function index and sub-string to look for to your actual data.&lt;/P&gt;&lt;P&gt;Second line is creating a flag to filter your table in a subsequent resident load, removing the header lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 12:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/divided-data-as-one-column-in-different-fields/m-p/273534#M102365</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-13T12:53:09Z</dc:date>
    </item>
  </channel>
</rss>

