<?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 Script to transform Exceltable with slow moving categories in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-to-transform-Exceltable-with-slow-moving-categories/m-p/999735#M339908</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 have a inputtable in excel with categories and then datarows below. On each datarow I would like to know the category that the datarow belongs to. Se the pictures as sample input. I also attach a small samplefile in excel. &lt;SPAN style="font-size: 13.3333px;"&gt;How can I make the resulttable with script in Qlikview. Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="input.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/108784_input.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="result.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/108785_result.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Dec 2015 16:02:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-12-11T16:02:24Z</dc:date>
    <item>
      <title>Script to transform Exceltable with slow moving categories</title>
      <link>https://community.qlik.com/t5/QlikView/Script-to-transform-Exceltable-with-slow-moving-categories/m-p/999735#M339908</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 have a inputtable in excel with categories and then datarows below. On each datarow I would like to know the category that the datarow belongs to. Se the pictures as sample input. I also attach a small samplefile in excel. &lt;SPAN style="font-size: 13.3333px;"&gt;How can I make the resulttable with script in Qlikview. Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="input.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/108784_input.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="result.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/108785_result.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 16:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-to-transform-Exceltable-with-slow-moving-categories/m-p/999735#M339908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-11T16:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Script to transform Exceltable with slow moving categories</title>
      <link>https://community.qlik.com/t5/QlikView/Script-to-transform-Exceltable-with-slow-moving-categories/m-p/999736#M339909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14498593682764512" jivemacro_uid="_14498593682764512"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD *&lt;/P&gt;
&lt;P&gt;WHERE Qty &amp;lt;&amp;gt; 'Qty' ;&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If(Previous(B)='Qty' ,Previous(A),Peek(Category)) as Category,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; A as Item,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; B as Qty,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; C as Value&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[Sample_data.xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, no labels, table is Input)&lt;/P&gt;
&lt;P&gt;WHERE Len(Trim(B))&amp;gt;0;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 18:42:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-to-transform-Exceltable-with-slow-moving-categories/m-p/999736#M339909</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-12-11T18:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Script to transform Exceltable with slow moving categories</title>
      <link>https://community.qlik.com/t5/QlikView/Script-to-transform-Exceltable-with-slow-moving-categories/m-p/999737#M339910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's wokring. Thank you Gysbert for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 19:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-to-transform-Exceltable-with-slow-moving-categories/m-p/999737#M339910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-11T19:01:15Z</dc:date>
    </item>
  </channel>
</rss>

