<?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 Creating tables within a loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-tables-within-a-loop/m-p/345883#M1173550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know what you want exactly. But when i look through your script you are using wrong way of mapping concept. Through mapping concept we should match key values perfectly. For example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;map1: &lt;/P&gt;&lt;P class="Code"&gt;mapping load * inline [ &lt;/P&gt;&lt;P class="Code"&gt;x, y &lt;/P&gt;&lt;P class="Code"&gt;1, one &lt;/P&gt;&lt;P class="Code"&gt;2, two &lt;/P&gt;&lt;P class="Code"&gt;3, three ] ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 2 )&lt;/SPAN&gt; returns ' two'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 4 )&lt;/SPAN&gt; returns 4&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 5, 'xxx')&lt;/SPAN&gt; returns 'xxx'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 1, 'xxx')&lt;/SPAN&gt; returns 'one'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 5, null( ) )&lt;/SPAN&gt; returns NULL&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 3, null( ) )&lt;/SPAN&gt; returns 'three'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2012 11:52:07 GMT</pubDate>
    <dc:creator>jagannalla</dc:creator>
    <dc:date>2012-05-10T11:52:07Z</dc:date>
    <item>
      <title>Creating tables within a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-tables-within-a-loop/m-p/345882#M1173548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.. I am new to qlikview..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create tables within a loop and here is the code:..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a table Categories(CategoryID,CategoryName) and a table Products(ProductID,ProductName,CategoryID) which explains why i am joining the two tables to retrieve each product and their category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i want to create a table for each category and input the product names beloging to that category in the corresponding tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vCategory=' ' ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;catname:&lt;/P&gt;&lt;P&gt;mapping LOAD ProductName as PN,CategoryID&lt;/P&gt;&lt;P&gt;resident Products;&lt;/P&gt;&lt;P&gt;join(Categories)&lt;/P&gt;&lt;P&gt;LOAD CategoryID&lt;/P&gt;&lt;P&gt;RESIDENT Categories where exists(CategoryID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; For i=0 to NoOfRows('Categories')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vCategory = Peek('CategoryID',$(i),Categories);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NoConcatenate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For j=0 to NoOfRows('Products')-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRODUCT_$(vCategory):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPLYMAP('catname',CategoryID) as ProductName;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next j;&lt;/P&gt;&lt;P&gt; Next i;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just cannot understand what is wrong with that...i tried for a whole day.. please if you can help me out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 11:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-tables-within-a-loop/m-p/345882#M1173548</guid>
      <dc:creator />
      <dc:date>2012-05-10T11:35:16Z</dc:date>
    </item>
    <item>
      <title>Creating tables within a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-tables-within-a-loop/m-p/345883#M1173550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know what you want exactly. But when i look through your script you are using wrong way of mapping concept. Through mapping concept we should match key values perfectly. For example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code"&gt;map1: &lt;/P&gt;&lt;P class="Code"&gt;mapping load * inline [ &lt;/P&gt;&lt;P class="Code"&gt;x, y &lt;/P&gt;&lt;P class="Code"&gt;1, one &lt;/P&gt;&lt;P class="Code"&gt;2, two &lt;/P&gt;&lt;P class="Code"&gt;3, three ] ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 2 )&lt;/SPAN&gt; returns ' two'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 4 )&lt;/SPAN&gt; returns 4&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 5, 'xxx')&lt;/SPAN&gt; returns 'xxx'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 1, 'xxx')&lt;/SPAN&gt; returns 'one'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 5, null( ) )&lt;/SPAN&gt; returns NULL&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;ApplyMap ('map1', 3, null( ) )&lt;/SPAN&gt; returns 'three'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 11:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-tables-within-a-loop/m-p/345883#M1173550</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2012-05-10T11:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating tables within a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-tables-within-a-loop/m-p/345884#M1173551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okey...but i have a table Categories(CategoryID,CategoryName) and a table Products(ProductID,ProductName,CategoryID) and i want to create multiple tables starting with a constant like PRODUCT_&amp;lt;CategoryName&amp;gt; depending on the number of categories inside my Categories table. Then I want to fill in each table with the product which is in that category..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table PRODUCT_Baby&lt;/P&gt;&lt;P&gt;will have values aaa, bbb , ccc as product names&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i go about doing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 12:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-tables-within-a-loop/m-p/345884#M1173551</guid>
      <dc:creator />
      <dc:date>2012-05-10T12:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating tables within a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-tables-within-a-loop/m-p/345885#M1173552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't get what your saying, Can you elaborate little bit more. Otherwise show your two tables data with 3 or 4 rows individually and explain what you want next generating new tables i.e ( Product_1,Product_2, Product_3 ....)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 08:07:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-tables-within-a-loop/m-p/345885#M1173552</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2012-05-11T08:07:18Z</dc:date>
    </item>
    <item>
      <title>Creating tables within a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-tables-within-a-loop/m-p/345886#M1173553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's say i have a table &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Categories(CategoryID,CategoryName) and &lt;/SPAN&gt; table &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Products(ProductID,ProductName,CategoryID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;﻿&lt;IMG alt="aaaaaa.bmp" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/14073_aaaaaa.bmp" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;I want to create tables like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;&lt;IMG alt="aaaaaa.bmp" class="jive-image" src="https://community.qlik.com/legacyfs/online/14074_aaaaaa.bmp" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;I hope it is clear enough...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 10:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-tables-within-a-loop/m-p/345886#M1173553</guid>
      <dc:creator />
      <dc:date>2012-05-11T10:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating tables within a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-tables-within-a-loop/m-p/345887#M1173554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the attached file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 13:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-tables-within-a-loop/m-p/345887#M1173554</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2012-05-11T13:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating tables within a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-tables-within-a-loop/m-p/345888#M1173555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan, I have the personal edition of Qlikview and i have exceeded the limit of 4 attempts of recoveries. So i am not able to read your qlikview file...but thank you so much for your reply.If it is not asking to much..can you post the code directly here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2012 10:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-tables-within-a-loop/m-p/345888#M1173555</guid>
      <dc:creator />
      <dc:date>2012-05-12T10:53:55Z</dc:date>
    </item>
  </channel>
</rss>

