<?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: Calling table from a QVD into a script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343604#M494511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Klaus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that you are loading the same table structure twice, the first using the SalesDetails label and doing the STORE, then the LOAD * not using the label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's the case, the thing to note is that QlikView concatenates automatically two or more tables when they have the same number of fields and all these fields are named alike.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So probably your script work if written like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;SalesDetails:&lt;BR /&gt;LOAD&lt;BR /&gt;SHDCTO &amp;amp; '_' &amp;amp; SHDOCO &amp;amp; '_' &amp;amp; SHKCOO as SalesHeaderKey,&amp;nbsp; // Link Header to Detail&lt;BR /&gt;SHKCOO As [Order Company],&lt;/P&gt;&lt;P&gt;SHVR01 as [PO Number],&lt;BR /&gt;SHVR02 as [Lock Box Info],&lt;BR /&gt;SHCARS as [Check Number],&lt;BR /&gt;SHCNID as [Ordered By],&lt;BR /&gt;SHTRDC as [Trade Discount],&lt;BR /&gt;SHTKBY as [Order Taken By],&lt;BR /&gt;SHDEL1 as [Delivery Instructions 1],&lt;BR /&gt;SHDEL2 as [Delivery Instructions 2]&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM F4201&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;STORE SalesDetails INTO All_4201.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[...] // more script here if any &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesDetails2:&lt;/P&gt;&lt;P&gt;NOCONCATENATE LOAD * // Note the NOCONCATENATE&lt;/P&gt;&lt;P&gt;FROM D:\Client View\AllClients\All_4201.qvd (qvd)&lt;/P&gt;&lt;P&gt;where [Order Company]= '$(CompanyLimit)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YTD:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;YTDKey,&lt;/P&gt;&lt;P&gt;Sum(if(EXISTS([Current YTD Date], Date), [Net Sales Amount])) as [YTD Net Sales Amount], &lt;/P&gt;&lt;P&gt;Sum(if(EXISTS([Current YTD Date], Date), [Net Sales Quantity])) as [YTD Net Sales Quantity],&lt;/P&gt;&lt;P&gt;Sum(if(EXISTS([Current YTD Date], Date), [Sales Margin Amount])) as [YTD Sales Margin Amount],&lt;/P&gt;&lt;P&gt;Sum(if(EXISTS([Current YTD Date], Date), [Sales Cost Amount])) as [YTD Sales Cost Amount],&lt;/P&gt;&lt;P&gt;RESIDENT SalesDetails2 // Note the 2&lt;/P&gt;&lt;P&gt;WHERE EXISTS([YTD Date], Date)&lt;/P&gt;&lt;P&gt;GROUP BY YTDKey;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the table labelled as "SalesDetails2" is preceded by the NOCONCATENATE clause, that will prevent this automatic concatenation to take place. Note as well that the RESIDENT load is done on this "SalesDetails2" table instead of the SalesDetails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Apr 2012 12:25:02 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2012-04-10T12:25:02Z</dc:date>
    <item>
      <title>Calling table from a QVD into a script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343601#M494507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running into issues calling a table (&lt;STRONG&gt;SalesDetails&lt;/STRONG&gt;) from a QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contents of QVD:&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SalesDetails&lt;/STRONG&gt;:&lt;BR /&gt;LOAD&lt;BR /&gt;SHDCTO &amp;amp; '_' &amp;amp; SHDOCO &amp;amp; '_' &amp;amp; SHKCOO as SalesHeaderKey,&amp;nbsp; // Link Header to Detail&lt;BR /&gt;SHKCOO As [Order Company], &lt;/P&gt;&lt;P&gt;SHVR01 as [PO Number],&lt;BR /&gt;SHVR02 as [Lock Box Info],&lt;BR /&gt;SHCARS as [Check Number],&lt;BR /&gt;SHCNID as [Ordered By],&lt;BR /&gt;SHTRDC as [Trade Discount],&lt;BR /&gt;SHTKBY as [Order Taken By],&lt;BR /&gt;SHDEL1 as [Delivery Instructions 1],&lt;BR /&gt;SHDEL2 as [Delivery Instructions 2]&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM F4201&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;STORE &lt;STRONG&gt;SalesDetails&lt;/STRONG&gt; INTO All_4201.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the following script, where I trying to call the SalesHeader table, I am getting an error, saying that the resident table can't be found.&lt;/P&gt;&lt;P&gt;Could anyone cast a quick look and see where I am going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * &lt;/P&gt;&lt;P&gt;FROM D:\Client View\AllClients\All_4201.qvd (qvd)&lt;/P&gt;&lt;P&gt;where [Order Company]= '$(CompanyLimit)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YTD:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;YTDKey,&lt;/P&gt;&lt;P&gt;Sum(if(EXISTS([Current YTD Date], Date), [Net Sales Amount])) as [YTD Net Sales Amount],&amp;nbsp; &lt;/P&gt;&lt;P&gt;Sum(if(EXISTS([Current YTD Date], Date), [Net Sales Quantity])) as [YTD Net Sales Quantity],&lt;/P&gt;&lt;P&gt;Sum(if(EXISTS([Current YTD Date], Date), [Sales Margin Amount])) as [YTD Sales Margin Amount],&lt;/P&gt;&lt;P&gt;Sum(if(EXISTS([Current YTD Date], Date), [Sales Cost Amount])) as [YTD Sales Cost Amount],&lt;/P&gt;&lt;P&gt;RESIDENT &lt;STRONG&gt;SalesDetails&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;WHERE EXISTS([YTD Date], Date)&lt;/P&gt;&lt;P&gt;GROUP BY YTDKey;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 02:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343601#M494507</guid>
      <dc:creator>klaus_feldam</dc:creator>
      <dc:date>2012-04-10T02:32:04Z</dc:date>
    </item>
    <item>
      <title>Calling table from a QVD into a script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343602#M494508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess that the table name us missing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;SalesDetail:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;LOAD *&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;FROM D:\Client View\AllClients\All_4201.qvd (qvd)&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;where [Order Company]= '$(CompanyLimit)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps you&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 03:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343602#M494508</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2012-04-10T03:09:30Z</dc:date>
    </item>
    <item>
      <title>Calling table from a QVD into a script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343603#M494509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Fernando: Thanks for your suggestion. Unfortunately, adding the table name SalesDetails (as below) brings up the same script error - missing table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;SalesDetails:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-family: Arial; color: #636363; font-size: 12px;"&gt;LOAD *&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-family: Arial; color: #636363; font-size: 12px;"&gt;FROM D:\Client View\AllClients\All_4201.qvd (qvd)&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-family: Arial; color: #636363; font-size: 12px;"&gt;where [Order Company]= '$(CompanyLimit)';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 12:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343603#M494509</guid>
      <dc:creator>klaus_feldam</dc:creator>
      <dc:date>2012-04-10T12:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calling table from a QVD into a script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343604#M494511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Klaus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that you are loading the same table structure twice, the first using the SalesDetails label and doing the STORE, then the LOAD * not using the label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's the case, the thing to note is that QlikView concatenates automatically two or more tables when they have the same number of fields and all these fields are named alike.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So probably your script work if written like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;SalesDetails:&lt;BR /&gt;LOAD&lt;BR /&gt;SHDCTO &amp;amp; '_' &amp;amp; SHDOCO &amp;amp; '_' &amp;amp; SHKCOO as SalesHeaderKey,&amp;nbsp; // Link Header to Detail&lt;BR /&gt;SHKCOO As [Order Company],&lt;/P&gt;&lt;P&gt;SHVR01 as [PO Number],&lt;BR /&gt;SHVR02 as [Lock Box Info],&lt;BR /&gt;SHCARS as [Check Number],&lt;BR /&gt;SHCNID as [Ordered By],&lt;BR /&gt;SHTRDC as [Trade Discount],&lt;BR /&gt;SHTKBY as [Order Taken By],&lt;BR /&gt;SHDEL1 as [Delivery Instructions 1],&lt;BR /&gt;SHDEL2 as [Delivery Instructions 2]&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM F4201&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;STORE SalesDetails INTO All_4201.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[...] // more script here if any &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesDetails2:&lt;/P&gt;&lt;P&gt;NOCONCATENATE LOAD * // Note the NOCONCATENATE&lt;/P&gt;&lt;P&gt;FROM D:\Client View\AllClients\All_4201.qvd (qvd)&lt;/P&gt;&lt;P&gt;where [Order Company]= '$(CompanyLimit)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YTD:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;YTDKey,&lt;/P&gt;&lt;P&gt;Sum(if(EXISTS([Current YTD Date], Date), [Net Sales Amount])) as [YTD Net Sales Amount], &lt;/P&gt;&lt;P&gt;Sum(if(EXISTS([Current YTD Date], Date), [Net Sales Quantity])) as [YTD Net Sales Quantity],&lt;/P&gt;&lt;P&gt;Sum(if(EXISTS([Current YTD Date], Date), [Sales Margin Amount])) as [YTD Sales Margin Amount],&lt;/P&gt;&lt;P&gt;Sum(if(EXISTS([Current YTD Date], Date), [Sales Cost Amount])) as [YTD Sales Cost Amount],&lt;/P&gt;&lt;P&gt;RESIDENT SalesDetails2 // Note the 2&lt;/P&gt;&lt;P&gt;WHERE EXISTS([YTD Date], Date)&lt;/P&gt;&lt;P&gt;GROUP BY YTDKey;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the table labelled as "SalesDetails2" is preceded by the NOCONCATENATE clause, that will prevent this automatic concatenation to take place. Note as well that the RESIDENT load is done on this "SalesDetails2" table instead of the SalesDetails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 12:25:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343604#M494511</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-04-10T12:25:02Z</dc:date>
    </item>
    <item>
      <title>Calling table from a QVD into a script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343605#M494512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Miguel: Thanks for taking your time to respond.&lt;/P&gt;&lt;P&gt;I have tried applying your suggestions, but the script is unfortunately stalling and I eventually have to kill the reload. Removing NOCONCATENATE lets the script run, but with the following error message, which tells me that the following reference to SalesDetails2 doesn't work with a QVD file. Any further advise would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesDetails2:&lt;/P&gt;&lt;P&gt;LOAD * &lt;/P&gt;&lt;P&gt;FROM D:\Client View\AllClients\All_4211.qvd (qvd)&lt;/P&gt;&lt;P&gt;where [Order Company]= '$(CompanyLimit)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table not found&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;YTD:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt; YTDKey,&lt;/P&gt;&lt;P&gt; Sum(if(EXISTS([Current YTD Date], Date), [Net Sales Amount])) as [YTD Net Sales Amount],&amp;nbsp; &lt;/P&gt;&lt;P&gt; Sum(if(EXISTS([Current YTD Date], Date), [Net Sales Quantity])) as [YTD Net Sales Quantity],&lt;/P&gt;&lt;P&gt; Sum(if(EXISTS([Current YTD Date], Date), [Sales Margin Amount])) as [YTD Sales Margin Amount],&lt;/P&gt;&lt;P&gt; Sum(if(EXISTS([Current YTD Date], Date), [Sales Cost Amount])) as [YTD Sales Cost Amount],&lt;/P&gt;&lt;P&gt;RESIDENT SalesDetails2&lt;/P&gt;&lt;P&gt;WHERE EXISTS([YTD Date], Date)&lt;/P&gt;&lt;P&gt;GROUP BY YTDKey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 03:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343605#M494512</guid>
      <dc:creator>klaus_feldam</dc:creator>
      <dc:date>2012-04-11T03:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calling table from a QVD into a script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343606#M494513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;SalesDetails&lt;/STRONG&gt;:&lt;BR /&gt;LOAD&lt;BR /&gt;SHDCTO &amp;amp; '_' &amp;amp; SHDOCO &amp;amp; '_' &amp;amp; SHKCOO as SalesHeaderKey,&amp;nbsp; // Link Header to Detail&lt;BR /&gt;SHKCOO As [Order Company], &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SHVR01 as [PO Number],&lt;BR /&gt;SHVR02 as [Lock Box Info],&lt;BR /&gt;SHCARS as [Check Number],&lt;BR /&gt;SHCNID as [Ordered By],&lt;BR /&gt;SHTRDC as [Trade Discount],&lt;BR /&gt;SHTKBY as [Order Taken By],&lt;BR /&gt;SHDEL1 as [Delivery Instructions 1],&lt;BR /&gt;SHDEL2 as [Delivery Instructions 2]&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM F4201&lt;BR /&gt;;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;STORE &lt;STRONG&gt;SalesDetails&lt;/STRONG&gt; INTO All_4201.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;DROP Table SalesDetails; //DROP the table to avoid merging with the next load.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;SalesDetails: //Name the new table load as SalesDetails.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LOAD * &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;FROM D:\Client View\AllClients\All_4201.qvd (qvd)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;where [Order Company]= '$(CompanyLimit)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;YTD:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Load&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;YTDKey,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Sum(if(EXISTS([Current YTD Date], Date), [Net Sales Amount])) as [YTD Net Sales Amount],&amp;nbsp; &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Sum(if(EXISTS([Current YTD Date], Date), [Net Sales Quantity])) as [YTD Net Sales Quantity],&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Sum(if(EXISTS([Current YTD Date], Date), [Sales Margin Amount])) as [YTD Sales Margin Amount],&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Sum(if(EXISTS([Current YTD Date], Date), [Sales Cost Amount])) as [YTD Sales Cost Amount],&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;RESIDENT &lt;STRONG&gt;SalesDetails&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;WHERE EXISTS([YTD Date], Date)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;GROUP BY YTDKey;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Andrew Hudson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 03:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343606#M494513</guid>
      <dc:creator>adhudson</dc:creator>
      <dc:date>2012-04-11T03:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calling table from a QVD into a script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343607#M494514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Klaus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your script dies at the end, it's likely because of the unwanted creation of a huge synthetic table linking the original SalesDetails table with the SalesDetails2 table. There is a quick workaroud that I didn't add in my code, that is adding the following line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;SalesDetails:&lt;BR /&gt;LOAD&lt;BR /&gt;SHDCTO &amp;amp; '_' &amp;amp; SHDOCO &amp;amp; '_' &amp;amp; SHKCOO as SalesHeaderKey,&amp;nbsp; // Link Header to Detail&lt;BR /&gt;SHKCOO As [Order Company],&lt;BR /&gt;SHVR01 as [PO Number],&lt;BR /&gt;SHVR02 as [Lock Box Info],&lt;BR /&gt;SHCARS as [Check Number],&lt;BR /&gt;SHCNID as [Ordered By],&lt;BR /&gt;SHTRDC as [Trade Discount],&lt;BR /&gt;SHTKBY as [Order Taken By],&lt;BR /&gt;SHDEL1 as [Delivery Instructions 1],&lt;BR /&gt;SHDEL2 as [Delivery Instructions 2]&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM F4201&lt;BR /&gt;;&lt;/CODE&gt;&lt;/P&gt;&lt;CODE class="jive-code"&gt;&lt;P&gt;&lt;BR /&gt;STORE SalesDetails INTO All_4201.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[...] // more script here if any &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SalesDetails2:&lt;BR /&gt;NOCONCATENATE LOAD * // Note the NOCONCATENATE&lt;BR /&gt;FROM D:\Client View\AllClients\All_4201.qvd (qvd)&lt;BR /&gt;where [Order Company]= '$(CompanyLimit)';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;YTD:&lt;BR /&gt;Load&lt;BR /&gt;YTDKey,&lt;BR /&gt;Sum(if(EXISTS([Current YTD Date], Date), [Net Sales Amount])) as [YTD Net Sales Amount], &lt;BR /&gt;Sum(if(EXISTS([Current YTD Date], Date), [Net Sales Quantity])) as [YTD Net Sales Quantity],&lt;BR /&gt;Sum(if(EXISTS([Current YTD Date], Date), [Sales Margin Amount])) as [YTD Sales Margin Amount],&lt;BR /&gt;Sum(if(EXISTS([Current YTD Date], Date), [Sales Cost Amount])) as [YTD Sales Cost Amount],&lt;BR /&gt;RESIDENT SalesDetails2 // Note the 2&lt;BR /&gt;WHERE EXISTS([YTD Date], Date)&lt;/P&gt;&lt;P&gt;GROUP BY YTDKey;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE SalesDetails2; // This is the new line that removes from memory the table, leaving the YTD table&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 08:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343607#M494514</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-04-11T08:58:23Z</dc:date>
    </item>
    <item>
      <title>Calling table from a QVD into a script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343608#M494516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have same problem and i dont understand how to fix it &lt;/P&gt;&lt;P&gt;Please look for my script :&lt;/P&gt;&lt;P&gt;binary orange_koszty_april2012.qvw;&lt;/P&gt;&lt;P&gt;SET ThousandSep=' ';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=' ';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='# ##0.00 zł;-# ##0.00 zł';&lt;/P&gt;&lt;P&gt;SET TimeFormat='hh:mm:ss';&lt;/P&gt;&lt;P&gt;SET DateFormat='YYYY-MM-DD';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='YYYY-MM-DD hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;SET MonthNames='sty;lut;mar;kwi;maj;cze;lip;sie;wrz;paź;lis;gru';&lt;/P&gt;&lt;P&gt;SET DayNames='Pn;Wt;Śr;Cz;Pt;So;N';&lt;/P&gt;&lt;P&gt;SET Directory=C:\Users\silarow\Desktop\qv;&lt;/P&gt;&lt;P&gt;SET NullInterpret='POZA';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LISTA:&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD [Nr telefonu] as [Nr Tel], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MPK&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;orange_test_mpk.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Dane dla TRINITY]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LISTA2:&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD [Nr telefonu] as [numer do], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MPK,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; opis&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;orange_test_mpk.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Dane dla TRINITY]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Koszty:&lt;/P&gt;&lt;P&gt;inner join (LISTA) buffer LOAD [numer do], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Nr Tel], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Typ, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; godzina, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sieć, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; impulsy, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [koszt jedn], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [koszt jedn1], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [koszt netto], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [koszt burtto]&lt;/P&gt;&lt;P&gt;FROM &lt;/P&gt;&lt;P&gt;komórki\Book1.xlsx (ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join (LISTA2) buffer LOAD [Nr Tel], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Typ, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; godzina, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sieć, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [numer do], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; impulsy, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [koszt jedn], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [koszt jedn1], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [koszt netto], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [koszt burtto]&lt;/P&gt;&lt;P&gt;FROM &lt;/P&gt;&lt;P&gt;komórki\Book1.xlsx (ooxml, embedded labels)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE Koszty INTO 1x.qvd; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error message is :&lt;/P&gt;&lt;P&gt;Table not found&lt;/P&gt;&lt;P&gt;STORE Koszty INTO 1x.qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me ... i dont know what i did wrong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 12:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343608#M494516</guid>
      <dc:creator />
      <dc:date>2012-05-09T12:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calling table from a QVD into a script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343609#M494517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your QVW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 12:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343609#M494517</guid>
      <dc:creator />
      <dc:date>2012-05-09T12:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calling table from a QVD into a script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343610#M494518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes sure , here you have it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 12:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343610#M494518</guid>
      <dc:creator />
      <dc:date>2012-05-09T12:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calling table from a QVD into a script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343611#M494519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FInd the attached updated App. It should work now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 11:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343611#M494519</guid>
      <dc:creator />
      <dc:date>2012-05-10T11:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calling table from a QVD into a script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343612#M494520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank's man&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working but i still don't understand why it wasn't working when i did it:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain it to me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 11:06:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343612#M494520</guid>
      <dc:creator />
      <dc:date>2012-05-10T11:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calling table from a QVD into a script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343613#M494521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you see the code, I have changed the structure. When the structure of a table is same and if you want to create an other table with the same structure then you can add some junk field and achieve and drop the field later.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 11:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343613#M494521</guid>
      <dc:creator />
      <dc:date>2012-05-10T11:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calling table from a QVD into a script</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343614#M494522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK&lt;/P&gt;&lt;P&gt;i understand your structure. &lt;/P&gt;&lt;P&gt;But i dont understand why code which i have wrote didnt work.&lt;/P&gt;&lt;P&gt;Is it because i wanted to store table which was linked to sources from files ?&lt;/P&gt;&lt;P&gt;Or because of something different?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 12:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-table-from-a-QVD-into-a-script/m-p/343614#M494522</guid>
      <dc:creator />
      <dc:date>2012-05-10T12:10:52Z</dc:date>
    </item>
  </channel>
</rss>

