<?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: Interesting challenge: How to create a real table from a list of field names? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134363#M635117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there John &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can export your structure to a file and use it in your dashboard like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125554_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Hope it helps &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2016 11:46:12 GMT</pubDate>
    <dc:creator>miguelbraga</dc:creator>
    <dc:date>2016-05-24T11:46:12Z</dc:date>
    <item>
      <title>Interesting challenge: How to create a real table from a list of field names?</title>
      <link>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134362#M635116</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;Let's say I have a table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;FieldName&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;DataFormat&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Dependency&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;OrderID&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Numeric&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;None&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;OrderDate&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Datetime&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;None&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;CustomerID&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;String&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;None&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;CustomerName&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;String&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;None&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;DispatchDate&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Date&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;OrderDate&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to load the table above, and then create an actual 'real' table with fields from the FieldName column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above table need can have any given number of fields. So for example at the moment it's 5, but tomorrow a user might add 3 more so it would be 8 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'real' table from above needs to reflect every field from the above table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to do that please? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The end result from the above example would be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;OrderID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;OrderDate&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;CustomerID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;CustomerName&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;DispatchDate&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 11:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134362#M635116</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-05-24T11:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Interesting challenge: How to create a real table from a list of field names?</title>
      <link>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134363#M635117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there John &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can export your structure to a file and use it in your dashboard like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125554_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Hope it helps &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 11:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134363#M635117</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-05-24T11:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Interesting challenge: How to create a real table from a list of field names?</title>
      <link>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134364#M635118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, however I am not looking to export my data, I am looking to &lt;EM&gt;​import &lt;/EM&gt;​the fields from a file and create the table in QlikView.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 12:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134364#M635118</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-05-24T12:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Interesting challenge: How to create a real table from a list of field names?</title>
      <link>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134365#M635119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a load-statement on the fly with something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LoadStatement:&lt;/P&gt;&lt;P&gt;load concat(Fieldname, ', ') as FieldsForLoadStatement From Yourtable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vFieldsForLoadStatement = peek('FieldsForLoadStatement', 0, 'LoadStatement');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FinalTable:&lt;/P&gt;&lt;P&gt;Load $(vFieldsForLoadStatement) From XYZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you will need a bit more to make such approach really useful like the including of the TableNames, data-sorces and some informations for the to applying formatings (for example, beside the format-function like num/date ... also the format-string like '#.##0,0' or 'MM/DD/YYYY') - and of course now will it be a bit more complex to combine these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 12:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134365#M635119</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-05-24T12:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Interesting challenge: How to create a real table from a list of field names?</title>
      <link>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134366#M635120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using this ?&lt;/P&gt;&lt;P&gt;I have created an Excel file with your table and used 'Rotate' -&amp;gt; 'Transpose' to get the data in QlikView.&lt;/P&gt;&lt;P&gt;Here's the Excel - and qvw file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 12:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134366#M635120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-24T12:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Interesting challenge: How to create a real table from a list of field names?</title>
      <link>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134367#M635121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two remarks with respect to your request:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;AFAIK it's difficult to create a table in QlikView that hasn't got a single row. AUTOGENERATE 0 will help you&lt;/LI&gt;&lt;LI&gt;QlikView manages field types dynamically and cell-by-cell. QV is not some sort of RDBMS where you assign a single data type to a entire column. And without even a single row of data, there isn't even a cell type to speak about as you will only have headers. The cell characteristics can be manipulated as soon as you load real values.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although Marcus' example is way more elegant, this one shows some other techniques&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ColumnTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FieldName, DataFormat, Dependency&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;OrderID, Numeric, None&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;OrderDate, Datetime, None&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CustomerID, String, None&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CustomerName, String, None&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DispatchDate, Date, OrderDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vColumnList = '';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FOR i = 1 TO FieldValueCount('FieldName')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vFieldName = FieldValue('FieldName', i);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF (i &amp;gt; 1) THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vColumnList = vColumnList &amp;amp; ', ';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; END IF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vColumnList = vColumnList &amp;amp; '0 AS [$(vFieldName)]';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NEXT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NewTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD $(vColumnList)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;AUTOGENERATE 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do add the square bracket stuff. As soon as you store a field name with spaces in your table definition file, the earlier script will break down. This one will not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 12:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134367#M635121</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-05-24T12:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Interesting challenge: How to create a real table from a list of field names?</title>
      <link>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134368#M635122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After taking a lesson from Mr; Sommer &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ColumnTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FieldName, DataFormat, Dependency&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;OrderID, Numeric, None&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;OrderDate, Datetime, None&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CustomerID, String, None&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CustomerName, String, None&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DispatchDate, Date, OrderDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FieldList:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD Concat('0 AS [' &amp;amp; FieldName &amp;amp; ']', ', ') AS ColumnList RESIDENT ColumnTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vColumnList = peek('ColumnList');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NewTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD $(vColumnList)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;AUTOGENERATE 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 12:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134368#M635122</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-05-24T12:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Interesting challenge: How to create a real table from a list of field names?</title>
      <link>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134369#M635123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since your table is just meta data of a real table and you are asking of for a real table, I assume you want to create a (mock up, sample data) table based on the meta data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ColumnTable:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;FieldName, DataFormat, Dependency&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;OrderID, Numeric, None&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;OrderDate, Datetime, None&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;CustomerID, String, None&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;CustomerName, String, None&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;DispatchDate, Date, OrderDate&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;FieldList:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD Concat( &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; Pick(Match(DataFormat,'Numeric','Datetime','String','Date'),&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; 'Round(100*Rand())',&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; 'Timestamp(Makedate(2016)+Rand()*366)',&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; 'CHR(ORD(''A'')+floor(Rand()*26))',&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; 'Date(Makedate(2016)+floor(Rand()*366))'&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; ) &amp;amp; ' AS [' &amp;amp; FieldName &amp;amp; ']', ', ') AS ColumnList RESIDENT ColumnTable;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LET vColumnList = peek('ColumnList');&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;NewTable:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD $(vColumnList)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;AUTOGENERATE 1000;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Adjust the functions to create your sample data as needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 13:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134369#M635123</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-24T13:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Interesting challenge: How to create a real table from a list of field names?</title>
      <link>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134370#M635124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right, it needs to be extend to such cases with spaces or special chars within the field/table-names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 13:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134370#M635124</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-05-24T13:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Interesting challenge: How to create a real table from a list of field names?</title>
      <link>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134371#M635125</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;another solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="125670" alt="QlikCommunity_Thread_218093_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125670_QlikCommunity_Thread_218093_Pic1.JPG" style="height: 387px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1464128616648224" jivemacro_uid="_1464128616648224"&gt;
&lt;P&gt;mapFormatValues:&lt;/P&gt;
&lt;P&gt;Mapping LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Format,&amp;nbsp; Value&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Numeric,&amp;nbsp; Ceil(Rand()*1000)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; String,&amp;nbsp; "KeepChar(Hash256(Rand()),'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Datetime, TimeStamp(YearStart(Today())+Rand()*(Now()-YearStart(Today())))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(YearStart(Today())+Floor(Rand()*DayNumberOfYear(Today())))&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;Generic&lt;/P&gt;
&lt;P&gt;LOAD IterNo() as ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Evaluate(ApplyMap('mapFormatValues',DataFormat))&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2061" data-containertype="14" data-objectid="218093" data-objecttype="1" href="https://community.qlik.com/thread/218093"&gt;https://community.qlik.com/thread/218093&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;While IterNo() &amp;lt;= 100;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 22:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interesting-challenge-How-to-create-a-real-table-from-a-list-of/m-p/1134371#M635125</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-05-24T22:24:17Z</dc:date>
    </item>
  </channel>
</rss>

