<?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: create a new table in script by manipulating an existing table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/create-a-new-table-in-script-by-manipulating-an-existing-table/m-p/689094#M249532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response Rob, this solution worked but how would I manipulate the numbers for this option? For example, I need 3 amounts - amount/1000, amount/1000*.2, and amount/1000*.4.&lt;/P&gt;&lt;P&gt;It also loaded all rows of the table but my original load only loads specific rows. how would I get around this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2014 21:07:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-12T21:07:29Z</dc:date>
    <item>
      <title>create a new table in script by manipulating an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-new-table-in-script-by-manipulating-an-existing-table/m-p/689090#M249528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an existing table with the columns as seen below (there are many more columns)&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Q1&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Q2&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Q3&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Q4&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a new table in script as follows:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Quarter&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Amount&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Q1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Q1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Q2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Q2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Q3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Q3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Q4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Q4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where the Quarter column tells me which Quarter based on the column header in the first table (Q1, Q2, etc) and Amount captures the number value in that column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no idea where to even begin with this, please help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 20:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-new-table-in-script-by-manipulating-an-existing-table/m-p/689090#M249528</guid>
      <dc:creator />
      <dc:date>2014-09-12T20:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: create a new table in script by manipulating an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-new-table-in-script-by-manipulating-an-existing-table/m-p/689091#M249529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="p05.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/66633_p05.png" style="width: 620px; height: 278px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;ID, Q1, Q2, Q3, Q4&lt;/P&gt;&lt;P&gt;1, 5, 2, 3, 2&lt;/P&gt;&lt;P&gt;2, 15, 10, 10, 8&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D_Q:&lt;/P&gt;&lt;P&gt;Load ID, 'Q1' as Quarter, Q1 as Value&lt;/P&gt;&lt;P&gt;resident DATA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load ID, 'Q2' as Quarter, Q2 as Value&lt;/P&gt;&lt;P&gt;resident DATA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load ID, 'Q3' as Quarter, Q3 as Value&lt;/P&gt;&lt;P&gt;resident DATA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load ID, 'Q4' as Quarter, Q4 as Value&lt;/P&gt;&lt;P&gt;resident DATA;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 20:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-new-table-in-script-by-manipulating-an-existing-table/m-p/689091#M249529</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2014-09-12T20:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: create a new table in script by manipulating an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-new-table-in-script-by-manipulating-an-existing-table/m-p/689092#M249530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A Cross Table is what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEmpData:&lt;/P&gt;&lt;P&gt;CrossTable(Quarter, Amount,1)&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q4&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\ProgramData\QlikTech\QlikView\QVExample.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="66625" alt="Capture.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/66625_Capture.JPG" style="width: 620px; height: 357px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 20:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-new-table-in-script-by-manipulating-an-existing-table/m-p/689092#M249530</guid>
      <dc:creator>rob_insley</dc:creator>
      <dc:date>2014-09-12T20:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: create a new table in script by manipulating an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-new-table-in-script-by-manipulating-an-existing-table/m-p/689093#M249531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Enrique this worked perfectly!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 21:04:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-new-table-in-script-by-manipulating-an-existing-table/m-p/689093#M249531</guid>
      <dc:creator />
      <dc:date>2014-09-12T21:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: create a new table in script by manipulating an existing table</title>
      <link>https://community.qlik.com/t5/QlikView/create-a-new-table-in-script-by-manipulating-an-existing-table/m-p/689094#M249532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response Rob, this solution worked but how would I manipulate the numbers for this option? For example, I need 3 amounts - amount/1000, amount/1000*.2, and amount/1000*.4.&lt;/P&gt;&lt;P&gt;It also loaded all rows of the table but my original load only loads specific rows. how would I get around this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 21:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-a-new-table-in-script-by-manipulating-an-existing-table/m-p/689094#M249532</guid>
      <dc:creator />
      <dc:date>2014-09-12T21:07:29Z</dc:date>
    </item>
  </channel>
</rss>

