<?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 Help wanted!!! I have to import vertical data into horizontal recordset. How can I do this? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-wanted-I-have-to-import-vertical-data-into-horizontal/m-p/301601#M707997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John's come back ! Great !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was sure the solution was tricky but it's a great one.&lt;/P&gt;&lt;P&gt;Thanks John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Nov 2011 20:14:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-07T20:14:58Z</dc:date>
    <item>
      <title>Help wanted!!! I have to import vertical data into horizontal recordset. How can I do this?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-wanted-I-have-to-import-vertical-data-into-horizontal/m-p/301597#M707993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is the table &lt;STRONG&gt;CustOrdValues &lt;/STRONG&gt;in the MSSQL-database:&lt;/P&gt;&lt;P&gt;Fields:&lt;STRONG&gt; customer, order, kind of value, amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 10 recordsets per customer and order and I need all the amounts in one single recordset like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;customer, order, &lt;/STRONG&gt;&lt;STRONG&gt;amount of kind1, &lt;/STRONG&gt;&lt;STRONG&gt;amount of kind2, &lt;/STRONG&gt;&lt;STRONG&gt;amount of kind3, &lt;/STRONG&gt;&lt;STRONG&gt;amount of kind4, &lt;/STRONG&gt;&lt;STRONG&gt;amount of kind5, &lt;/STRONG&gt;&lt;STRONG&gt;amount of kind6, ...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it should be very easy but I have no idea...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for quick answers..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jörn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 19:36:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-wanted-I-have-to-import-vertical-data-into-horizontal/m-p/301597#M707993</guid>
      <dc:creator />
      <dc:date>2011-11-07T19:36:14Z</dc:date>
    </item>
    <item>
      <title>Help wanted!!! I have to import vertical data into horizontal recordset. How can I do this?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-wanted-I-have-to-import-vertical-data-into-horizontal/m-p/301598#M707994</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;I don't think it's easy ! I wait for a long time to find a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, I create a pivot table with 3 dimensions : Customer, Order, Kind&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I put Kind in the header of the pivot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I export the file in excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I read the new file &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not very satisfy but it works !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 19:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-wanted-I-have-to-import-vertical-data-into-horizontal/m-p/301598#M707994</guid>
      <dc:creator />
      <dc:date>2011-11-07T19:59:03Z</dc:date>
    </item>
    <item>
      <title>Help wanted!!! I have to import vertical data into horizontal recordset. How can I do this?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-wanted-I-have-to-import-vertical-data-into-horizontal/m-p/301599#M707995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jörn, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you simply want to display the data in QlikView with columns customer, order, amount of kind1, amount of kind2 etc. you could load the original table unaltered, and then create a pivot table in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say you had the following data:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="jorn_data.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/8474_jorn_data.png" /&gt;&lt;/P&gt;&lt;P&gt;Just load it as it is into QlikView. Then create a pivot table with dimensions Customer, Order and Kind, and the expression sum(Amount).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then drag the Kind column to the top, which would give you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="jorn_pivot.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/8475_jorn_pivot.png" /&gt;&lt;/P&gt;&lt;P&gt;Is that what you were after?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 20:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-wanted-I-have-to-import-vertical-data-into-horizontal/m-p/301599#M707995</guid>
      <dc:creator />
      <dc:date>2011-11-07T20:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help wanted!!! I have to import vertical data into horizontal recordset. How can I do this?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-wanted-I-have-to-import-vertical-data-into-horizontal/m-p/301600#M707996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you'll want to do a generic load followed by a loop to combine the generic tables back into a single table.&amp;nbsp; See the attached example of how to do that.&amp;nbsp; Here's the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[Table]:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Invoice No.,Product&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;1,ball&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;1,spoon&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2,shirt&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2,spoon&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2,ticket&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;3,shirt&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LEFT JOIN ([Table])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,if("Invoice No."=previous("Invoice No."),peek("Product Number")+1,1) as "Product Number"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT [Table]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ORDER BY "Invoice No."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[Generic]:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;GENERIC LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;"Invoice No."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,'Product ' &amp;amp; "Product Number" as "Product Number"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,"Product"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT [Table]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[Final]:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD DISTINCT "Invoice No." // add other key fields to this list&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT [Table]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FOR I = nooftables() TO 0 STEP -1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vTable = tablename(I);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF&amp;nbsp; wildmatch('$(vTable)','Generic.*') THEN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTER JOIN ([Final])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESIDENT [$(vTable)];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP TABLE [$(vTable)];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; END IF&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;NEXT&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;DROP TABLE &lt;TABLE&gt;;&lt;P&gt;&lt;/P&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 20:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-wanted-I-have-to-import-vertical-data-into-horizontal/m-p/301600#M707996</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-07T20:08:52Z</dc:date>
    </item>
    <item>
      <title>Help wanted!!! I have to import vertical data into horizontal recordset. How can I do this?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-wanted-I-have-to-import-vertical-data-into-horizontal/m-p/301601#M707997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John's come back ! Great !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was sure the solution was tricky but it's a great one.&lt;/P&gt;&lt;P&gt;Thanks John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 20:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-wanted-I-have-to-import-vertical-data-into-horizontal/m-p/301601#M707997</guid>
      <dc:creator />
      <dc:date>2011-11-07T20:14:58Z</dc:date>
    </item>
    <item>
      <title>Help wanted!!! I have to import vertical data into horizontal recordset. How can I do this?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-wanted-I-have-to-import-vertical-data-into-horizontal/m-p/301602#M707998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank vou very much John and khs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John's solution works fine. That ist what I was looking for. It is not as easy as I thought&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes from Hambrug, Germany&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jörn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 20:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-wanted-I-have-to-import-vertical-data-into-horizontal/m-p/301602#M707998</guid>
      <dc:creator />
      <dc:date>2011-11-07T20:34:37Z</dc:date>
    </item>
  </channel>
</rss>

