<?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 Create Table Loop Question in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-Table-Loop-Question/m-p/1292008#M27249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems like it should be simple but its not acting as expected.&amp;nbsp; I am trying to loop through what is essentially a generic table looking for certain name/value pairs.&amp;nbsp; I would like to create a table for each name in my list with the value and identifier from the source data. I am aware of the Generic Load but want to performance test this strategy against it.&amp;nbsp; Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//This is my list of names from the source table.&lt;/P&gt;&lt;P&gt;UniqueAffiliateDataNames:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; DataNames&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'IPAddress'&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'ListID',&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'SubID',&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'RepID',&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'CampaignId',&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'SubCampaignId',&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'UniqueId',&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'StudentId'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// date is simply to keep the table lean&lt;/P&gt;&lt;P&gt;LET vStartDate = DATE('2017-02-01', 'YYYY-MM-DD hh:mm:ss');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR EACH vDataName IN FieldValueList('DataNames')&lt;/P&gt;&lt;P&gt;&amp;nbsp; [$(vDataName)]: &lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD LeadId, Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(vFilePath)LeadSharedData.qvd] (qvd)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE Name = '$(vDataName)'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND Category = 'F'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND DateEntered &amp;gt; '$(vStartDate)';&lt;/P&gt;&lt;P&gt;NEXT vDataName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE UniqueAffiliateDataNames;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run this script in the debugger I see the names populate in the Table name and in the Where clause as expected.&amp;nbsp; However, when the job finishes, I only seem to get one table (with the first value from the list).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel like I am missing something simple here.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2017 19:05:55 GMT</pubDate>
    <dc:creator>flottmen</dc:creator>
    <dc:date>2017-02-16T19:05:55Z</dc:date>
    <item>
      <title>Create Table Loop Question</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Table-Loop-Question/m-p/1292008#M27249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems like it should be simple but its not acting as expected.&amp;nbsp; I am trying to loop through what is essentially a generic table looking for certain name/value pairs.&amp;nbsp; I would like to create a table for each name in my list with the value and identifier from the source data. I am aware of the Generic Load but want to performance test this strategy against it.&amp;nbsp; Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//This is my list of names from the source table.&lt;/P&gt;&lt;P&gt;UniqueAffiliateDataNames:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; DataNames&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'IPAddress'&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'ListID',&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'SubID',&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'RepID',&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'CampaignId',&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'SubCampaignId',&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'UniqueId',&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'StudentId'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// date is simply to keep the table lean&lt;/P&gt;&lt;P&gt;LET vStartDate = DATE('2017-02-01', 'YYYY-MM-DD hh:mm:ss');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR EACH vDataName IN FieldValueList('DataNames')&lt;/P&gt;&lt;P&gt;&amp;nbsp; [$(vDataName)]: &lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD LeadId, Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(vFilePath)LeadSharedData.qvd] (qvd)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE Name = '$(vDataName)'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND Category = 'F'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND DateEntered &amp;gt; '$(vStartDate)';&lt;/P&gt;&lt;P&gt;NEXT vDataName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE UniqueAffiliateDataNames;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run this script in the debugger I see the names populate in the Table name and in the Where clause as expected.&amp;nbsp; However, when the job finishes, I only seem to get one table (with the first value from the list).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel like I am missing something simple here.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 19:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Table-Loop-Question/m-p/1292008#M27249</guid>
      <dc:creator>flottmen</dc:creator>
      <dc:date>2017-02-16T19:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create Table Loop Question</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Table-Loop-Question/m-p/1292009#M27250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you need NoConcatenate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;FOR EACH vDataName IN FieldValueList('DataNames')&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; [$(vDataName)]:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; LOAD LeadId, Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(vFilePath)LeadSharedData.qvd] (qvd)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE Name = '$(vDataName)'&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND Category = 'F'&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND DateEntered &amp;gt; '$(vStartDate)';&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;NEXT vDataName&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 19:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Table-Loop-Question/m-p/1292009#M27250</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-16T19:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create Table Loop Question</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Table-Loop-Question/m-p/1292010#M27251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That seemed to do it.&amp;nbsp; Does Qlik simply ignore the Table name on the subsequent tables?&amp;nbsp; It seems like naming a table should tell Qlik that I want it to be separate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load Name, Value &lt;/P&gt;&lt;P&gt;FROM Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load Name, Value&lt;/P&gt;&lt;P&gt;FROM OtherData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like this should be loaded as two tables.&amp;nbsp; Qlik automatically joins them because they have the same field names?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 19:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Table-Loop-Question/m-p/1292010#M27251</guid>
      <dc:creator>flottmen</dc:creator>
      <dc:date>2017-02-16T19:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create Table Loop Question</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Table-Loop-Question/m-p/1292011#M27252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was just talking about this in another thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/250134"&gt;Difference between Synthetic Keys and Concatenation?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the two tables have same number of fields and all the fields are named the exact same, QlikView will Auto-Concatenate them unless you tell it otherwise. By supplying NoConcatenate, you are telling QlikView that you want these to be in separate tables and not put them all in one table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 19:54:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Table-Loop-Question/m-p/1292011#M27252</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-16T19:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create Table Loop Question</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Table-Loop-Question/m-p/1292012#M27253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.&amp;nbsp; Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 19:55:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Table-Loop-Question/m-p/1292012#M27253</guid>
      <dc:creator>flottmen</dc:creator>
      <dc:date>2017-02-16T19:55:39Z</dc:date>
    </item>
  </channel>
</rss>

