<?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 table during load? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902791#M657269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I totally forgot this was Qlik Sense discussion. But the idea might still work. Let me paste the script here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CrossTable(Measurement, Data, 3)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Dim1, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim2, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim3, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Price 1] &amp;amp; '|' &amp;amp; [Quantity 1], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Price 2] &amp;amp; '|' &amp;amp; [Quantity 2]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Crosstable.xlsx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Dim1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Dim2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Dim3,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Replace(PurgeChar(SubField(Measurement, '|', 1), '[]'), ' &amp;amp; ' &amp;amp; Chr(39), '') as PriceType,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Replace(PurgeChar(SubField(Measurement, '&amp;amp;', -1), '[]'), ' &amp;amp; ' &amp;amp; Chr(39), '')&amp;nbsp; as QuantityType,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; SubField(Data, '|', 1) as Price,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(Data, '|', 2) as Quantity&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2015 17:31:28 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-05-21T17:31:28Z</dc:date>
    <item>
      <title>Splitting a table during load?</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902786#M657264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am quite new to Qlik (Sense) and am wondering if there is an easier way to "vertically" split a table.&lt;/P&gt;&lt;P&gt;The situation I am in, is:&lt;/P&gt;&lt;P&gt;I have got tables that contain data for several different products in different columns.&lt;/P&gt;&lt;P&gt;colA1, ..., colAn, colB1, ..., colBn, colC1, ..., colC3,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where colA1, ... contain data for product A&lt;/P&gt;&lt;P&gt;Where colB1, ... contain data for product B&lt;/P&gt;&lt;P&gt;and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in order to do some of my reporting I have split the tables like this&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; columns for prod A&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; columnA &amp;gt; 0&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; columns for prod B&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; columnB &amp;gt; 0&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which results in the original table being read several times during load. Is there any known way to have the split in one go?&lt;/P&gt;&lt;P&gt;Any suggestions or hints are appreciated&lt;/P&gt;&lt;P&gt;Ralph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 09:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902786#M657264</guid>
      <dc:creator />
      <dc:date>2015-05-21T09:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a table during load?</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902787#M657265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, one load statement can generate only one table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 16:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902787#M657265</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-21T16:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a table during load?</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902788#M657266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌Is it the speed that concerns you or is it the number of load statements that is cumbersome? Both can be addressed. Not completely but quite significantly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 17:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902788#M657266</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-05-21T17:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a table during load?</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902789#M657267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an example which you might find useful.&lt;/P&gt;&lt;P&gt;Please have a look and see if this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 17:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902789#M657267</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-21T17:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a table during load?</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902790#M657268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌Actually you gain very little by splitting one table into many. The way Qlik Sense works with its associative database and de-duplication (compression) it&amp;nbsp; will be more efficient and speedier in keeping it in one table. So why do you need to split it in the first place?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 17:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902790#M657268</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-05-21T17:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a table during load?</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902791#M657269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I totally forgot this was Qlik Sense discussion. But the idea might still work. Let me paste the script here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CrossTable(Measurement, Data, 3)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Dim1, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim2, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim3, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Price 1] &amp;amp; '|' &amp;amp; [Quantity 1], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Price 2] &amp;amp; '|' &amp;amp; [Quantity 2]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Crosstable.xlsx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Dim1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Dim2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Dim3,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Replace(PurgeChar(SubField(Measurement, '|', 1), '[]'), ' &amp;amp; ' &amp;amp; Chr(39), '') as PriceType,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Replace(PurgeChar(SubField(Measurement, '&amp;amp;', -1), '[]'), ' &amp;amp; ' &amp;amp; Chr(39), '')&amp;nbsp; as QuantityType,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; SubField(Data, '|', 1) as Price,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(Data, '|', 2) as Quantity&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 17:31:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902791#M657269</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-21T17:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a table during load?</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902792#M657270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are referring to a crosstable load, that pivots the column values into a single field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do it and Michael made a helpful video on it for qlik sense users:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8231"&gt;Power of Qlik Script - Reshaping Data with Crosstable (video)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 17:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902792#M657270</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-05-21T17:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a table during load?</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902793#M657271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter,&lt;/P&gt;&lt;P&gt;it's not the load of the table itself, that is bothering me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later on in the script I do some calculations which are different dependent on the product and each record can contain info on each of the products. So I have to:&lt;/P&gt;&lt;P&gt;For every record check if it contains product A data; then do this&lt;/P&gt;&lt;P&gt;For every record check if it contains product B data; then do that&lt;/P&gt;&lt;P&gt;and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I already gained some speed because I decided to split the table and have to do the checking only once instead of several times (and by reducing the amount rows that I have to read not even containing any relevant data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was just wondering if I could gain some more speed, by being able to have the split in one go. But I see the point that a simple LOAD cannot provide this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 15:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902793#M657271</guid>
      <dc:creator />
      <dc:date>2015-05-22T15:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a table during load?</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902794#M657272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually I am turning the data into a cross table further down the road to be able to do other things in the reporting itself. It's what I do (have to do) with the data before I can convert it to a cross table, that's bothering me and makes me wonder if a cross table what help at that point. But it's worth some additional thinking. I'll keep you updated, if it helped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 15:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902794#M657272</guid>
      <dc:creator />
      <dc:date>2015-05-22T15:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a table during load?</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902795#M657273</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;as I replied to Jonathan further down - I will investigate into changing the order of cations in my script and see if turning the table into a cross table first, could help me. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 15:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-a-table-during-load/m-p/902795#M657273</guid>
      <dc:creator />
      <dc:date>2015-05-22T15:39:18Z</dc:date>
    </item>
  </channel>
</rss>

