<?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: Load nested CSV in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-nested-CSV/m-p/413032#M697289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf,&lt;/P&gt;&lt;P&gt;wow, that's really great and exactly what I was looking for!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is an additional question. The code only reads data from 2012. Is there a more general way, which also works with 2013 data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your effort!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Mar 2013 11:04:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-03-07T11:04:40Z</dc:date>
    <item>
      <title>Load nested CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Load-nested-CSV/m-p/413028#M697285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've got the problem, that I have CSV file with the structure:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 171px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="171"&gt;Data&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;Remark&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;0001 2012, 12345678&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;Time: 05.01.2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;Pos Time Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;1&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;41,5625&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 41 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;41,5687522888184&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;3&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 72 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;41,5687522888184&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;0002 2012, 12345678&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;Time: 06.01.2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;Pos Time Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;1&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 29 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;39,0499992370605&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 59 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;39,1312522888184&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;3&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 89 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;39,1937522888184&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;The list of values continues a lot of times. So this is only an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On loading the CSV, I would like to have a table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="240"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="80"&gt;Pos&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="80"&gt;0001 2012&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="80"&gt;0002 2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;41,5625&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;39,0499&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;41,5687&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;39,1312&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;41,5687&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;39,1937&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other blocks in the CSV file should result in an additional column. The header rows and the blank lines should be skip!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody has an idea to accomplish that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 12:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-nested-CSV/m-p/413028#M697285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-06T12:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load nested CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Load-nested-CSV/m-p/413029#M697286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is possible. You have to read the whole reacord as line and parse the columns of the data lines with subfield().&lt;/P&gt;&lt;P&gt;You have to switch between header and data section on a condition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you have read the whole file you can transpose the lines into positions and columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It makes only sense to develop an example on the real data. Maybe you can attache a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 14:57:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-nested-CSV/m-p/413029#M697286</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-03-06T14:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Load nested CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Load-nested-CSV/m-p/413030#M697287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf,&lt;/P&gt;&lt;P&gt;here is an example file from the original data.&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 09:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-nested-CSV/m-p/413030#M697287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-07T09:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Load nested CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Load-nested-CSV/m-p/413031#M697288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please see attached solution. The whole ETL process is done with several steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. load related lines&lt;/P&gt;&lt;P&gt;2. mark blocks for columns&lt;/P&gt;&lt;P&gt;3. split data lines into fields&lt;/P&gt;&lt;P&gt;4. transpose with generic load&lt;/P&gt;&lt;P&gt;5. create target table&lt;/P&gt;&lt;P&gt;6. collect auto created generic tables&lt;/P&gt;&lt;P&gt;7. join everything together to finalize target table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 10:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-nested-CSV/m-p/413031#M697288</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-03-07T10:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Load nested CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Load-nested-CSV/m-p/413032#M697289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf,&lt;/P&gt;&lt;P&gt;wow, that's really great and exactly what I was looking for!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is an additional question. The code only reads data from 2012. Is there a more general way, which also works with 2013 data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your effort!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 11:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-nested-CSV/m-p/413032#M697289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-07T11:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Load nested CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Load-nested-CSV/m-p/413033#M697290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, of course. Just replace the wildmatch in Step1 with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step1:&lt;/P&gt;&lt;P&gt;LOAD if(wildmatch(Line, '* &lt;STRONG&gt;201?&lt;/STRONG&gt;,*', -1, 0), subfield(Line, ',', 1), peek(Col)) as Col, Line &lt;/P&gt;&lt;P&gt;Resident RawData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 11:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-nested-CSV/m-p/413033#M697290</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-03-07T11:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Load nested CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Load-nested-CSV/m-p/413034#M697291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Ralf,&lt;/P&gt;&lt;P&gt;now it's exactly what I needed!&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 12:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-nested-CSV/m-p/413034#M697291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-07T12:24:22Z</dc:date>
    </item>
  </channel>
</rss>

