<?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 Transform and Generate a new table in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Transform-and-Generate-a-new-table-in-script/m-p/1191757#M626437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I have an table with the position of the accounts (POS) to a certain date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Cuenta - Fecha - Posición&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;and another with the movements each day (MOV)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Cuenta - Fecha - Importe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I want to get a table with the following data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Cuenta - Fecha - Entradas - Salidas - Posición&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;with one record for each date. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Where "Entradas" = sum(Importe if &amp;gt;0) and "Salidas" = sum(Importe if &amp;lt;0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thank's for your help&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2016 03:55:05 GMT</pubDate>
    <dc:creator>ecolomer</dc:creator>
    <dc:date>2016-10-12T03:55:05Z</dc:date>
    <item>
      <title>Transform and Generate a new table in script</title>
      <link>https://community.qlik.com/t5/QlikView/Transform-and-Generate-a-new-table-in-script/m-p/1191757#M626437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I have an table with the position of the accounts (POS) to a certain date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Cuenta - Fecha - Posición&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;and another with the movements each day (MOV)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Cuenta - Fecha - Importe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I want to get a table with the following data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Cuenta - Fecha - Entradas - Salidas - Posición&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;with one record for each date. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Where "Entradas" = sum(Importe if &amp;gt;0) and "Salidas" = sum(Importe if &amp;lt;0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thank's for your help&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 03:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transform-and-Generate-a-new-table-in-script/m-p/1191757#M626437</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2016-10-12T03:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Transform and Generate a new table in script</title>
      <link>https://community.qlik.com/t5/QlikView/Transform-and-Generate-a-new-table-in-script/m-p/1191758#M626438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you are after?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Temp:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Cuenta,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Fecha,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Posición&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM ... ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Join(Temp)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Cuenta,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Fecha,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Importe&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM ... ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Final:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Cuenta,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Fecha,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Posición,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Sum(RangeMax(Importe, 0)) as Entradas,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Sum(RangeMin(Importe, 0)) as Salidas&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Temp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Group By Cuenta,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Fecha,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Posición;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP TABLE Temp;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 04:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transform-and-Generate-a-new-table-in-script/m-p/1191758#M626438</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-10-12T04:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Transform and Generate a new table in script</title>
      <link>https://community.qlik.com/t5/QlikView/Transform-and-Generate-a-new-table-in-script/m-p/1191759#M626439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank's for your response, but is not that.&lt;/P&gt;&lt;P&gt;I explain more.with an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table POS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 400px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="21" width="179"&gt;Cuenta&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="91"&gt;Fecha&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="130"&gt;Posición&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="21" style="border-top: none;"&gt;0128 9464 40 0100014362&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;11/10/2016&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.905,24&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table MOV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 393px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" width="162"&gt;Cuenta&lt;/TD&gt;&lt;TD class="xl63" width="106"&gt;Fecha&lt;/TD&gt;&lt;TD class="xl66" width="125"&gt;Importe&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;0128 9464 40 0100014362&lt;/TD&gt;&lt;TD class="xl64"&gt;06/10/2016&lt;/TD&gt;&lt;TD class="xl65"&gt;- 140,67 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;0128 9464 40 0100014362&lt;/TD&gt;&lt;TD class="xl64"&gt;06/10/2016&lt;/TD&gt;&lt;TD class="xl65"&gt;- 128,37 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;0128 9464 40 0100014362&lt;/TD&gt;&lt;TD class="xl64"&gt;03/10/2016&lt;/TD&gt;&lt;TD class="xl65"&gt;- 9,05 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;0128 9464 40 0100014362&lt;/TD&gt;&lt;TD class="xl64"&gt;03/10/2016&lt;/TD&gt;&lt;TD class="xl65"&gt;- 111,77 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;0128 9464 40 0100014362&lt;/TD&gt;&lt;TD class="xl64"&gt;03/10/2016&lt;/TD&gt;&lt;TD class="xl65"&gt;- 48,31 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;0128 9464 40 0100014362&lt;/TD&gt;&lt;TD class="xl64"&gt;03/10/2016&lt;/TD&gt;&lt;TD class="xl65"&gt;- 24,47 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;0128 9464 40 0100014362&lt;/TD&gt;&lt;TD class="xl64"&gt;30/09/2016&lt;/TD&gt;&lt;TD class="xl65"&gt;- 723,38 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;0128 9464 40 0100014362&lt;/TD&gt;&lt;TD class="xl64"&gt;30/09/2016&lt;/TD&gt;&lt;TD class="xl65"&gt;- 18,15 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;0128 9464 40 0100014362&lt;/TD&gt;&lt;TD class="xl64"&gt;28/09/2016&lt;/TD&gt;&lt;TD class="xl65"&gt;- 40,39 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;0128 9464 40 0100014362&lt;/TD&gt;&lt;TD class="xl64"&gt;28/09/2016&lt;/TD&gt;&lt;TD class="xl65"&gt;- 364,39 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;0128 9464 40 0100014362&lt;/TD&gt;&lt;TD class="xl64"&gt;28/09/2016&lt;/TD&gt;&lt;TD class="xl65"&gt;- 54,65 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;0128 9464 40 0100014362&lt;/TD&gt;&lt;TD class="xl64"&gt;28/09/2016&lt;/TD&gt;&lt;TD class="xl65"&gt;- 737,42 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;0128 9464 40 0100014362&lt;/TD&gt;&lt;TD class="xl64"&gt;28/09/2016&lt;/TD&gt;&lt;TD class="xl65"&gt;- 53,95 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;0128 9464 40 0100014362&lt;/TD&gt;&lt;TD class="xl64"&gt;26/09/2016&lt;/TD&gt;&lt;TD class="xl65"&gt;- 162,21 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;0128 9464 40 0100014362&lt;/TD&gt;&lt;TD class="xl64"&gt;26/09/2016&lt;/TD&gt;&lt;TD class="xl65"&gt;- 1.549,72 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;0128 9464 40 0100014362&lt;/TD&gt;&lt;TD class="xl64"&gt;21/09/2016&lt;/TD&gt;&lt;TD class="xl65"&gt;- 284,12 €&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expected result I upload an excel example &lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 05:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transform-and-Generate-a-new-table-in-script/m-p/1191759#M626439</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2016-10-12T05:00:24Z</dc:date>
    </item>
  </channel>
</rss>

