<?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 New Tables using Existing table values (QV script) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-New-Tables-using-Existing-table-values-QV-script/m-p/234129#M85598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Am trying to manipulate existing tables in an exisiting QV doc, to create a new table that shares similar fields...&lt;/P&gt;&lt;P&gt;"Purchases" = is the existing table name that I would like to extract data into a new table.&lt;/P&gt;&lt;P&gt;Initial thoughts were that the following script should be able to return "Euros" as a single field in a new table:&lt;/P&gt;&lt;P&gt;RSTable:&lt;BR /&gt;Load Euros;&lt;BR /&gt;SQL Select *&lt;BR /&gt;From Purchases;&lt;/P&gt;&lt;P&gt;following a save, and then a reload, the following error message appears:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;ODBC connection failed&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;SQL Select*&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;From Purchases&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thinking that perhaps I have mis-specified the location of the "Purchases" table (which exists in the current QV file that I am using), tried to specify "Data from files" as "Qlikview File" (relative paths ticked), and created the following syntax:&lt;/P&gt;&lt;P&gt;Binary "allpurchases_rs 110301.qvw";&lt;BR /&gt;Load Euros;&lt;BR /&gt;SQL Select *&lt;BR /&gt;From Purchases;&lt;/P&gt;&lt;P&gt;The above returns the following error message:&lt;/P&gt;&lt;P&gt;"Unknown statement. Binary "allpurchases_rs 110301.qvw"&lt;/P&gt;&lt;P&gt;(the actual file that I am using does contain capital letters, although the wizard script automatically converts the file name to lower case. Have adjusted the script to reflect exact cases, but issue still remains.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the past, have completed the "developer 1" e-learing course and was able to access the various datasources, and load/manipulate data as per the excercises. However, trying to replicate this in an already existing QV doc, am expericancing a few issues.&lt;/P&gt;&lt;P&gt;Anyone have any thoughts in what I am doing wrong?&lt;/P&gt;&lt;P&gt;Please advise,&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2011 12:50:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-01T12:50:56Z</dc:date>
    <item>
      <title>Creating New Tables using Existing table values (QV script)</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-New-Tables-using-Existing-table-values-QV-script/m-p/234129#M85598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Am trying to manipulate existing tables in an exisiting QV doc, to create a new table that shares similar fields...&lt;/P&gt;&lt;P&gt;"Purchases" = is the existing table name that I would like to extract data into a new table.&lt;/P&gt;&lt;P&gt;Initial thoughts were that the following script should be able to return "Euros" as a single field in a new table:&lt;/P&gt;&lt;P&gt;RSTable:&lt;BR /&gt;Load Euros;&lt;BR /&gt;SQL Select *&lt;BR /&gt;From Purchases;&lt;/P&gt;&lt;P&gt;following a save, and then a reload, the following error message appears:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;ODBC connection failed&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;SQL Select*&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;From Purchases&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thinking that perhaps I have mis-specified the location of the "Purchases" table (which exists in the current QV file that I am using), tried to specify "Data from files" as "Qlikview File" (relative paths ticked), and created the following syntax:&lt;/P&gt;&lt;P&gt;Binary "allpurchases_rs 110301.qvw";&lt;BR /&gt;Load Euros;&lt;BR /&gt;SQL Select *&lt;BR /&gt;From Purchases;&lt;/P&gt;&lt;P&gt;The above returns the following error message:&lt;/P&gt;&lt;P&gt;"Unknown statement. Binary "allpurchases_rs 110301.qvw"&lt;/P&gt;&lt;P&gt;(the actual file that I am using does contain capital letters, although the wizard script automatically converts the file name to lower case. Have adjusted the script to reflect exact cases, but issue still remains.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the past, have completed the "developer 1" e-learing course and was able to access the various datasources, and load/manipulate data as per the excercises. However, trying to replicate this in an already existing QV doc, am expericancing a few issues.&lt;/P&gt;&lt;P&gt;Anyone have any thoughts in what I am doing wrong?&lt;/P&gt;&lt;P&gt;Please advise,&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 12:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-New-Tables-using-Existing-table-values-QV-script/m-p/234129#M85598</guid>
      <dc:creator />
      <dc:date>2011-03-01T12:50:56Z</dc:date>
    </item>
    <item>
      <title>SV:Creating New Tables using Existing table values (QV script)</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-New-Tables-using-Existing-table-values-QV-script/m-p/234130#M85599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If a table already exist in the load you need to use a resident load to access its data. I.E&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load Euros&lt;BR /&gt;RESIDENT Purchases;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A binary statement needs to be placed first in the script.&lt;/P&gt;&lt;P&gt;/Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 13:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-New-Tables-using-Existing-table-values-QV-script/m-p/234130#M85599</guid>
      <dc:creator />
      <dc:date>2011-03-01T13:42:55Z</dc:date>
    </item>
    <item>
      <title>SV:Creating New Tables using Existing table values (QV script)</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-New-Tables-using-Existing-table-values-QV-script/m-p/234131#M85600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;How should the above syntax be eddited when I want to add additional fields from a different table (ie 2 fields from "Purchases", and another from "Materials"&lt;/P&gt;&lt;P&gt;RSTable:&lt;/P&gt;&lt;P&gt;Load Euros,&lt;BR /&gt;Year&lt;BR /&gt;RESIDENT Purchases;&lt;BR /&gt;Load&lt;BR /&gt;Family&lt;BR /&gt;RESIDENT Materials;&lt;/P&gt;&lt;P&gt;My script above, currently creates 2 tables (but want just the one table, with 3 fields in the "RSTable".&lt;/P&gt;&lt;P&gt;Any thoughts greatly appreciated,&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 14:41:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-New-Tables-using-Existing-table-values-QV-script/m-p/234131#M85600</guid>
      <dc:creator />
      <dc:date>2011-03-01T14:41:33Z</dc:date>
    </item>
    <item>
      <title>Creating New Tables using Existing table values (QV script)</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-New-Tables-using-Existing-table-values-QV-script/m-p/234132#M85601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich,&lt;/P&gt;&lt;P&gt;I've not thought this through in great detail (which is never a good thing) but the first thing that jumps out at me is to use the Join statements:&lt;/P&gt;&lt;P&gt;2 Tables: Customers and Employees.&lt;/P&gt;&lt;P&gt;Lets say you want to create a new table of employees with the relevant Customer name within the same table - assuming there is a 'CustomerID' or similar on both tables then the way I'd go about it is as follows:&lt;/P&gt;&lt;P style="font-style: italic"&gt;NewTable:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Load&lt;/P&gt;&lt;P&gt;Employee,&lt;/P&gt;&lt;P&gt;CustomerID&lt;/P&gt;&lt;P&gt;&lt;B&gt;Resident&lt;/B&gt; Employees;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Left&lt;/B&gt; &lt;B&gt;Join&lt;/B&gt; (&lt;I&gt;NewTable&lt;/I&gt;)&lt;/P&gt;&lt;P&gt;&lt;B&gt;Load&lt;/B&gt; CustomerID,&lt;/P&gt;&lt;P&gt;CustomerName&lt;/P&gt;&lt;P&gt;&lt;B&gt;Resident&lt;/B&gt; Customers;&lt;/P&gt;&lt;P&gt;Qlikview will make the 'association' on the 'CustomerID' field and attach the CustomerName where there's a match onto Employee.&lt;/P&gt;&lt;P&gt;Take a look in the help file under 'Joins'.&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Matt - Visual Analytics Ltd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 15:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-New-Tables-using-Existing-table-values-QV-script/m-p/234132#M85601</guid>
      <dc:creator>matt_crowther</dc:creator>
      <dc:date>2011-03-01T15:46:34Z</dc:date>
    </item>
  </channel>
</rss>

