<?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: Working with Tables in the Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Working-with-Tables-in-the-Script/m-p/444312#M697554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! This worked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A follow up question: I simplified my example a bit - I had actually added a new field to my table in the LOAD statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Auto' as BusinessLine &lt;/P&gt;&lt;P&gt;FROM .....&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that I have the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CROSSTABLE (.......) Load, the new field doesn't get added properly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've addressed this by loading a new table including all fields of the crosstable, adding this new field and dropping the old table. This works, but it makes my code quite long.&amp;nbsp; Is this the only alternative? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2013 19:09:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-22T19:09:51Z</dc:date>
    <item>
      <title>Working with Tables in the Script</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-Tables-in-the-Script/m-p/444309#M697551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a new user to QlikView.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table in a source Excel file (which I can't change) with fields as follows: Company, 1990, 1991, 1992, 1993, etc. where "Company" is the name of the applicable company and the year fields contain sales information.&amp;nbsp; There are about 30 years in total. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For workability, I would like to change the structure of the table during the load to have only 3 fields: Company, Year, Sales and "stack" the year fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else tried this? Could you recommend an efficient solution? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 14:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-Tables-in-the-Script/m-p/444309#M697551</guid>
      <dc:creator />
      <dc:date>2013-01-22T14:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Tables in the Script</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-Tables-in-the-Script/m-p/444310#M697552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a CROSSTABLE LOAD prefix, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CROSSTABLE (Year, Sales,1) LOAD * FROM YourTable;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the Help for more details on CROSSTABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;To make this work, your input fields need to be in order: Company, 1990, 1991, 1992, ...&lt;/P&gt;&lt;P&gt;i.e. Company should be first in order when loading from your source. You may need to specify your field order explicitely, if needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 14:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-Tables-in-the-Script/m-p/444310#M697552</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-22T14:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Tables in the Script</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-Tables-in-the-Script/m-p/444311#M697553</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;Try a CROSSTABLE concept,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CROSSTABLE (Year, Sales,1)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; LOAD * FROM YourTableName;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 14:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-Tables-in-the-Script/m-p/444311#M697553</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-01-22T14:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Tables in the Script</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-Tables-in-the-Script/m-p/444312#M697554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! This worked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A follow up question: I simplified my example a bit - I had actually added a new field to my table in the LOAD statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Auto' as BusinessLine &lt;/P&gt;&lt;P&gt;FROM .....&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that I have the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CROSSTABLE (.......) Load, the new field doesn't get added properly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've addressed this by loading a new table including all fields of the crosstable, adding this new field and dropping the old table. This works, but it makes my code quite long.&amp;nbsp; Is this the only alternative? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 19:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-Tables-in-the-Script/m-p/444312#M697554</guid>
      <dc:creator />
      <dc:date>2013-01-22T19:09:51Z</dc:date>
    </item>
  </channel>
</rss>

