<?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: How to convert Multiple fields in to Single field dynamically in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-convert-Multiple-fields-in-to-Single-field-dynamically/m-p/1943687#M77757</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46656"&gt;@SatyaPaleti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think you are too far off of what you are trying to achieve. It doesn't need a temporary table and a resident load, just a table stub that you always concatenate to:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Final_Tabel:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;null() as DropMe&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;AutoGenerate(1);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Tables:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Demo_Tables_test &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;from [lib://DataFiles/xyz.qvd] (qvd);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FOR i=0 to NoOfRows('Tables') -1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;let vTableName= Peek('Demo_Tables_test ',i, 'Tables');&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;CONCATENATE(Final_Tabel)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;*&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;SQL SELECT&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;*&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;FROM dbo.$(vTableName);&lt;BR /&gt;NEXT&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DROP TABLE Tables;&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;DROP FIELD DropMe;&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;let i =;&lt;BR /&gt;let vTableName =;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;This will leave a dummy row with no values, which you could remove with a RESIDENT LOAD or a LEFT KEEP statement, but to be honest the null row is not going to cause any harm. You may be able to use &lt;STRONG&gt;AUTOGENERATE(0)&lt;/STRONG&gt; in the first statement, but I am not sure it will work.&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 20:35:16 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2022-06-14T20:35:16Z</dc:date>
    <item>
      <title>How to convert Multiple fields in to Single field dynamically</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-Multiple-fields-in-to-Single-field-dynamically/m-p/1943536#M77748</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;I have following requirement could some one help me to resolve this issue&lt;/P&gt;
&lt;P&gt;we are having n no of tables. we have to load all the fields of all the tables and assign it to one field.&lt;/P&gt;
&lt;P&gt;Here is the example&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Demo_Table:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'' as Demo ID&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;AutoGenerate(0);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Tables:&lt;BR /&gt;load&lt;BR /&gt;Demo_Tables_test&amp;nbsp;&lt;BR /&gt;from xyz.qvd&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FOR i=0 to NoOfRows('Tables')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;let vTableName= Peek('Demo_Tables_test&amp;nbsp;',$(i));&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;$(vTableName):&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Select &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;FROM $(schema).$(vTableName);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Concatenate(Demo_Table)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Final_Tabel&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Load *&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Resident&amp;nbsp;$(vTableName);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now all the fields of all tables were coming in to Demo_Table.&lt;/P&gt;
&lt;P&gt;All these fields should assign to a single field. For example Field&amp;nbsp; name Dimension. If the user see Dimension then all the values should appear&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can some one help me to achieve this&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Satya&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 15:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-Multiple-fields-in-to-Single-field-dynamically/m-p/1943536#M77748</guid>
      <dc:creator>SatyaPaleti</dc:creator>
      <dc:date>2022-06-14T15:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert Multiple fields in to Single field dynamically</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-Multiple-fields-in-to-Single-field-dynamically/m-p/1943687#M77757</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46656"&gt;@SatyaPaleti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think you are too far off of what you are trying to achieve. It doesn't need a temporary table and a resident load, just a table stub that you always concatenate to:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Final_Tabel:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;null() as DropMe&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;AutoGenerate(1);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Tables:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Demo_Tables_test &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;from [lib://DataFiles/xyz.qvd] (qvd);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FOR i=0 to NoOfRows('Tables') -1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;let vTableName= Peek('Demo_Tables_test ',i, 'Tables');&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;CONCATENATE(Final_Tabel)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;*&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;SQL SELECT&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;*&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;FROM dbo.$(vTableName);&lt;BR /&gt;NEXT&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DROP TABLE Tables;&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;DROP FIELD DropMe;&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;let i =;&lt;BR /&gt;let vTableName =;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;This will leave a dummy row with no values, which you could remove with a RESIDENT LOAD or a LEFT KEEP statement, but to be honest the null row is not going to cause any harm. You may be able to use &lt;STRONG&gt;AUTOGENERATE(0)&lt;/STRONG&gt; in the first statement, but I am not sure it will work.&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 20:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-Multiple-fields-in-to-Single-field-dynamically/m-p/1943687#M77757</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2022-06-14T20:35:16Z</dc:date>
    </item>
  </channel>
</rss>

