<?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: Pivot table -during the load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-during-the-load/m-p/432705#M161263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp; MATNR,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; date(monthstart("Bill.Date"), 'MMM-YY') as Month,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; sum(QTY) as QTY&lt;BR /&gt;FROM &amp;lt;your file&amp;gt;&lt;BR /&gt;GROUP BY MATNR, monthstart("Bill.Date");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Michael&lt;BR /&gt;PS: it will be a little different if you load from a database, but the logic is the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Apr 2013 20:40:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-04-08T20:40:04Z</dc:date>
    <item>
      <title>Pivot table -during the load</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-during-the-load/m-p/432704#M161262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Incoming data looks like below&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 278px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;BR /&gt;&lt;TD class="xl66" height="20" width="64"&gt;VBELN&lt;/TD&gt;&lt;BR /&gt;&lt;TD class="xl66" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="64"&gt;MATNR&lt;/TD&gt;&lt;BR /&gt;&lt;TD class="xl66" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="86"&gt;Bill.Date&lt;/TD&gt;&lt;BR /&gt;&lt;TD class="xl66" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="64"&gt;QTY&lt;/TD&gt;&lt;BR /&gt; &lt;/TR&gt;&lt;BR /&gt; &lt;TR&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;101&lt;/TD&gt;&lt;BR /&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;XX1&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl67" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1/3/2012&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;10&lt;/TD&gt;&lt;BR /&gt; &lt;/TR&gt;&lt;BR /&gt; &lt;TR&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;102&lt;/TD&gt;&lt;BR /&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;XX1&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl67" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1/5/2012&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;5&lt;/TD&gt;&lt;BR /&gt; &lt;/TR&gt;&lt;BR /&gt; &lt;TR&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;103&lt;/TD&gt;&lt;BR /&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;YYY&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl67" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1/4/2012&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;5&lt;/TD&gt;&lt;BR /&gt; &lt;/TR&gt;&lt;BR /&gt; &lt;TR&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;104&lt;/TD&gt;&lt;BR /&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;YYY&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl67" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1/6/2012&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;20&lt;/TD&gt;&lt;BR /&gt; &lt;/TR&gt;&lt;BR /&gt; &lt;TR&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;105&lt;/TD&gt;&lt;BR /&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;XX1&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl67" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;2/2/2012&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;50&lt;/TD&gt;&lt;BR /&gt; &lt;/TR&gt;&lt;BR /&gt; &lt;TR&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;106&lt;/TD&gt;&lt;BR /&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;XX1&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl67" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;2/28/2012&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;3&lt;/TD&gt;&lt;BR /&gt; &lt;/TR&gt;&lt;BR /&gt; &lt;TR&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;107&lt;/TD&gt;&lt;BR /&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;YYY&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl67" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;2/25/2012&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;2&lt;/TD&gt;&lt;BR /&gt; &lt;/TR&gt;&lt;BR /&gt; &lt;TR&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;108&lt;/TD&gt;&lt;BR /&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;XX1&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl67" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;3/3/2012&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;9&lt;/TD&gt;&lt;BR /&gt; &lt;/TR&gt;&lt;BR /&gt; &lt;TR&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;109&lt;/TD&gt;&lt;BR /&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;YYY&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl67" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;3/3/2012&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;10&lt;/TD&gt;&lt;BR /&gt; &lt;/TR&gt;&lt;BR /&gt; &lt;TR&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;110&lt;/TD&gt;&lt;BR /&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;XX1&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl67" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;3/19/2012&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;&lt;P&gt;6&lt;/P&gt;&lt;/TD&gt;&lt;BR /&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expecting Results - during the time of the dataload (script)&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 278px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;BR /&gt;&lt;TD class="xl66" height="20" width="64"&gt;MATNR&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl67" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="64"&gt;Jan-12&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl67" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="86"&gt;Feb-12&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl67" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="64"&gt;Mar-12&lt;/TD&gt;&lt;BR /&gt; &lt;/TR&gt;&lt;BR /&gt; &lt;TR&gt;&lt;BR /&gt;&lt;TD class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;XX1&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;15&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;53&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;19&lt;/TD&gt;&lt;BR /&gt; &lt;/TR&gt;&lt;BR /&gt; &lt;TR&gt;&lt;BR /&gt;&lt;TD class="xl65" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;YYY&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;25&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;2&lt;/TD&gt;&lt;BR /&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;10&lt;/TD&gt;&lt;BR /&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can do like this in the pivot table.The problem is -I have to&amp;nbsp; add additional few columns after Mar-12.&lt;/P&gt;&lt;P&gt;Pivot table will not work. Is there any better way to&amp;nbsp; handle&amp;nbsp; in the script.(Millions of record in the table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advance Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 16:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-during-the-load/m-p/432704#M161262</guid>
      <dc:creator />
      <dc:date>2013-04-08T16:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table -during the load</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-during-the-load/m-p/432705#M161263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp; MATNR,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; date(monthstart("Bill.Date"), 'MMM-YY') as Month,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; sum(QTY) as QTY&lt;BR /&gt;FROM &amp;lt;your file&amp;gt;&lt;BR /&gt;GROUP BY MATNR, monthstart("Bill.Date");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Michael&lt;BR /&gt;PS: it will be a little different if you load from a database, but the logic is the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 20:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-during-the-load/m-p/432705#M161263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-08T20:40:04Z</dc:date>
    </item>
  </channel>
</rss>

