<?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 Dynamically create tables in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamically-create-tables-in-script/m-p/244530#M93255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I'll try this out. It looks like it might be what i'm looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Nov 2011 20:24:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-21T20:24:53Z</dc:date>
    <item>
      <title>Dynamically create tables in script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-create-tables-in-script/m-p/244528#M93253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Say I have a table with some pretty standard fields:&lt;/P&gt;&lt;P&gt;ID (prim key)&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;Type_ID (for key)&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I would like to create a different table within qlikview for each unique type_id. How would I do this? Obv I can always add a where clause in my SELECT statement and just assign different names to each field where applicable and name the tables, but the number of types may grow. Can this be done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 18:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-create-tables-in-script/m-p/244528#M93253</guid>
      <dc:creator />
      <dc:date>2011-11-21T18:37:46Z</dc:date>
    </item>
    <item>
      <title>Dynamically create tables in script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-create-tables-in-script/m-p/244529#M93254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I fully understood, but maybe like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ID, Name, Type_ID, Value&lt;/P&gt;&lt;P&gt;1, One, Number, 10&lt;/P&gt;&lt;P&gt;2, Two, String, 20&lt;/P&gt;&lt;P&gt;3, Three, Number, 30&lt;/P&gt;&lt;P&gt;4, Four, String, 40&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TypeTable:&lt;/P&gt;&lt;P&gt;LOAD Distinct Type_ID as TypeName resident Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i = 0 to NoOfRows('TypeTable')-1 step 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let type = peek('TypeName', $(i), 'TypeTable');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[$(type)]:&lt;/P&gt;&lt;P&gt;NOCONCATENATE Load ID, Name as $(type)Name, Value as $(type)Value resident Table where Type_ID = '$(type)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 20:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-create-tables-in-script/m-p/244529#M93254</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-21T20:22:13Z</dc:date>
    </item>
    <item>
      <title>Dynamically create tables in script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-create-tables-in-script/m-p/244530#M93255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I'll try this out. It looks like it might be what i'm looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 20:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-create-tables-in-script/m-p/244530#M93255</guid>
      <dc:creator />
      <dc:date>2011-11-21T20:24:53Z</dc:date>
    </item>
  </channel>
</rss>

