<?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 new table from existing data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-new-table-from-existing-data/m-p/399073#M148533</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;Try like use crosstable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; crosstable(time,value)&lt;/P&gt;&lt;P&gt; load * from tablename;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Dec 2012 10:38:29 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2012-12-03T10:38:29Z</dc:date>
    <item>
      <title>Create new table from existing data</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-table-from-existing-data/m-p/399072#M148532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some data in Excel, structured as a Pivot, containing 2 fields, with a value per combination - like the example below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="256"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl76" width="64"&gt;TIME&lt;/TD&gt;&lt;TD class="xl73" width="64"&gt; &lt;/TD&gt;&lt;TD class="xl74" width="64"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl75" height="20"&gt;Field X&lt;/TD&gt;&lt;TD class="xl77" style="border-left: medium none;"&gt;t0&lt;/TD&gt;&lt;TD class="xl78"&gt;t1&lt;/TD&gt;&lt;TD class="xl79"&gt;t2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl80" height="20" style="border-top: medium none;"&gt;AA&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl81" height="20"&gt;BB&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-left: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl81" height="20"&gt;CC&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-left: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl81" height="20"&gt;XX&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-left: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl81" height="20"&gt;YY&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-left: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl82" height="20"&gt;ZZ&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-left: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl71"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereby "Field X" and "Time" are the fields, and the values (in this example) are all 1, 2, and 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I want is to convert this table into something usable in QV, so that all combinations of values are automatically prepared in a new table in the script, like so:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl74" height="20" width="64"&gt;FIELD X&lt;/TD&gt;&lt;TD class="xl74" style="border-left: medium none;" width="64"&gt;TIME&lt;/TD&gt;&lt;TD class="xl74" style="border-left: medium none;" width="64"&gt;VALUE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;"&gt;AA&lt;/TD&gt;&lt;TD class="xl71" style="border-top: medium none;"&gt;t1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20"&gt;AA&lt;/TD&gt;&lt;TD class="xl72"&gt;t2&lt;/TD&gt;&lt;TD align="right" class="xl68"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20"&gt;AA&lt;/TD&gt;&lt;TD class="xl72"&gt;t3&lt;/TD&gt;&lt;TD align="right" class="xl68"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20"&gt;BB&lt;/TD&gt;&lt;TD class="xl72"&gt;t1&lt;/TD&gt;&lt;TD align="right" class="xl68"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20"&gt;BB&lt;/TD&gt;&lt;TD class="xl72"&gt;t2&lt;/TD&gt;&lt;TD align="right" class="xl68"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20"&gt;BB&lt;/TD&gt;&lt;TD class="xl73"&gt;t3&lt;/TD&gt;&lt;TD align="right" class="xl70"&gt;3&lt;/TD&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;I understood that Loop could help, but no idea on how to actually script this, as there are hundreds of values with long historical values to include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 10:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-table-from-existing-data/m-p/399072#M148532</guid>
      <dc:creator />
      <dc:date>2012-12-03T10:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create new table from existing data</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-table-from-existing-data/m-p/399073#M148533</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;Try like use crosstable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; crosstable(time,value)&lt;/P&gt;&lt;P&gt; load * from tablename;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 10:38:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-table-from-existing-data/m-p/399073#M148533</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-12-03T10:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create new table from existing data</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-table-from-existing-data/m-p/399074#M148534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That function seems to do what I want, but I seem to have a problem in the script (shows a Syntax error)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the Crosstable wizard to generate the script, but the whole Crosstable section shows up as an error (including the CROSSTABLE function itself...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 11:08:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-table-from-existing-data/m-p/399074#M148534</guid>
      <dc:creator />
      <dc:date>2012-12-03T11:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create new table from existing data</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-table-from-existing-data/m-p/399075#M148535</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;If you want help in debugging your script, it would be a help if you posted the relevant portion of the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 11:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-table-from-existing-data/m-p/399075#M148535</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-12-03T11:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create new table from existing data</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-table-from-existing-data/m-p/399076#M148536</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;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/134713#134713#134713"&gt;http://community.qlik.com/message/134713#134713&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/82902#82902#82902"&gt;http://community.qlik.com/message/82902#82902&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example for crosstable..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the syntax in this.. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 11:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-table-from-existing-data/m-p/399076#M148536</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-12-03T11:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create new table from existing data</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-table-from-existing-data/m-p/399077#M148537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mayil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Silly error - used bad fieldnames in the script!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Made a small amendment and now it works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 11:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-table-from-existing-data/m-p/399077#M148537</guid>
      <dc:creator />
      <dc:date>2012-12-03T11:29:46Z</dc:date>
    </item>
  </channel>
</rss>

