<?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 How to create a table based on data from an existing table in script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-create-a-table-based-on-data-from-an-existing-table-in/m-p/1303259#M27680</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;Is it possible to create the right table based on the existing table on the left in a script ?&lt;/P&gt;&lt;P&gt;My guess is that it can be done with For..Next.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I need:&lt;/P&gt;&lt;P&gt;There is an record in an existing table with ID=A, start Date=June, Units=4 and Value =100.&lt;/P&gt;&lt;P&gt;Based on this I would like to create a new table which has 4 (=Units) lines, each with an amount of Value/Units and a date which starts at the start date and increases with 1 month&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;IMG alt="Snap31.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/170120_Snap31.png" style="width: 620px; height: 241px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jul 2017 11:08:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-13T11:08:27Z</dc:date>
    <item>
      <title>How to create a table based on data from an existing table in script</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-table-based-on-data-from-an-existing-table-in/m-p/1303259#M27680</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;Is it possible to create the right table based on the existing table on the left in a script ?&lt;/P&gt;&lt;P&gt;My guess is that it can be done with For..Next.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I need:&lt;/P&gt;&lt;P&gt;There is an record in an existing table with ID=A, start Date=June, Units=4 and Value =100.&lt;/P&gt;&lt;P&gt;Based on this I would like to create a new table which has 4 (=Units) lines, each with an amount of Value/Units and a date which starts at the start date and increases with 1 month&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;IMG alt="Snap31.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/170120_Snap31.png" style="width: 620px; height: 241px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 11:08:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-table-based-on-data-from-an-existing-table-in/m-p/1303259#M27680</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-13T11:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on data from an existing table in script</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-table-based-on-data-from-an-existing-table-in/m-p/1303260#M27681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there an upper limit for the unit field? &lt;/P&gt;&lt;P&gt;Tomasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 11:35:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-table-based-on-data-from-an-existing-table-in/m-p/1303260#M27681</guid>
      <dc:creator>tomasz_tru</dc:creator>
      <dc:date>2017-07-13T11:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on data from an existing table in script</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-table-based-on-data-from-an-existing-table-in/m-p/1303261#M27682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #800000;"&gt;ID&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;AddMonths&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Date#&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;StartDate&lt;/SPAN&gt;,'1-MMM'),&lt;SPAN style="color: #0000ff;"&gt;IterNo&lt;/SPAN&gt;()-1) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;StartDate&lt;/SPAN&gt;, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;/&lt;SPAN style="color: #800000;"&gt;Units&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Amount&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; ID,StartDate,Units,Value&lt;BR /&gt; A,1-jun,4,100&lt;BR /&gt; B,1-feb,2,200&lt;BR /&gt; C,1-jul,3,90]&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;While&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;IterNo&lt;/SPAN&gt;() &amp;lt;= &lt;SPAN style="color: #800000;"&gt;Units&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/170125_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 11:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-table-based-on-data-from-an-existing-table-in/m-p/1303261#M27682</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-07-13T11:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on data from an existing table in script</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-table-based-on-data-from-an-existing-table-in/m-p/1303262#M27683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not perse, but I don't expect it to be more than 36 (months)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 11:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-table-based-on-data-from-an-existing-table-in/m-p/1303262#M27683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-14T11:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on data from an existing table in script</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-table-based-on-data-from-an-existing-table-in/m-p/1303263#M27684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if I understand this fully. You put in the values of the existing table within the Inline statement (&lt;SPAN style="color: #800000;"&gt; A,1-jun,4,100&lt;BR /&gt; B,1-feb,2,200 and&amp;nbsp; C,1-jul,3,90 ).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;I need to replace this part of script by a reference to the Existing table as It need to read these lines from the table, right ? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Imagine the existing table name is : OPPS, how should the script look like ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 11:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-table-based-on-data-from-an-existing-table-in/m-p/1303263#M27684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-14T11:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on data from an existing table in script</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-a-table-based-on-data-from-an-existing-table-in/m-p/1303264#M27685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #800000;"&gt;ID&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;AddMonths&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Date#&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;StartDate&lt;/SPAN&gt;,'1-MMM'),&lt;SPAN style="color: #0000ff;"&gt;IterNo&lt;/SPAN&gt;()-1) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;StartDate&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;/&lt;SPAN style="color: #800000;"&gt;Units&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Amount&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Resident OPPS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // if already loaded or&amp;nbsp; From Path\Table.xls or From DB_Table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;While&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;IterNo&lt;/SPAN&gt;() &amp;lt;= &lt;SPAN style="color: #800000;"&gt;Units&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 11:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-a-table-based-on-data-from-an-existing-table-in/m-p/1303264#M27685</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-07-14T11:21:32Z</dc:date>
    </item>
  </channel>
</rss>

