<?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 Subquery on a Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181499#M588576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My data are refreshed every 15 minutes, so I do 2 Loads the first with month data and the refresh is only daily datas.&lt;/P&gt;&lt;P&gt;I have other table with budget. like you sad with clint like Key&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Aug 2010 21:17:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-31T21:17:37Z</dc:date>
    <item>
      <title>Subquery on a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181491#M588566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;Is it possible create a subquery like this example?&lt;/P&gt;&lt;P&gt;I need aggregate data of two or more tables. Tks&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;STRONG&gt;create table&lt;/STRONG&gt; Test&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from&lt;/STRONG&gt; ( &lt;EM&gt;table1:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load&lt;/STRONG&gt; column1, column2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from&lt;/STRONG&gt; Text_file1;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;add load&lt;/STRONG&gt; column1, column2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from&lt;/STRONG&gt; textfile2)&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 23:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181491#M588566</guid>
      <dc:creator />
      <dc:date>2010-08-30T23:22:17Z</dc:date>
    </item>
    <item>
      <title>Subquery on a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181492#M588567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexandre,&lt;/P&gt;&lt;P&gt;Two QlikView LOAD statements will do just what you need - CONCATENATE or append the data from one table to another. You don't need to use any CREATE TABLE... Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab3:&lt;/P&gt;&lt;P&gt;load C1, C2 from ...;&lt;/P&gt;&lt;P&gt;load C1, C2 from ...;&lt;/P&gt;&lt;P&gt;While your fields are exactly the same, the Concatenation will happen automatically. If the fields are slightly different, use prefix CONCATENATE for your subsequent loads.&lt;/P&gt;&lt;P&gt;good luck,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 23:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181492#M588567</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-08-30T23:33:41Z</dc:date>
    </item>
    <item>
      <title>Subquery on a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181493#M588570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;But how Do I do to aggregate this data on other table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 23:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181493#M588570</guid>
      <dc:creator />
      <dc:date>2010-08-30T23:38:46Z</dc:date>
    </item>
    <item>
      <title>Subquery on a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181494#M588571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Alexandre,&lt;/P&gt;&lt;P&gt;Once the tables are loaded and concatenated as Oleg describes any expressions you write in a chart will aggregate data across both of the source tables.&lt;/P&gt;&lt;P&gt;If you wish to aggregate the data on the way in then you can use SUM statements in the load script and do a LOAD DISTINCT or GROUP BY. The syntax for GROUP BY needs to be precise - so it is worth referring to the help file.&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 00:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181494#M588571</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2010-08-31T00:31:24Z</dc:date>
    </item>
    <item>
      <title>Subquery on a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181495#M588572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I have two loads in a same table firt Day-1 and after Day each one houer, and I need the data keep aggregated by customer by example.&lt;/P&gt;&lt;P&gt;on a first load&lt;/P&gt;&lt;P&gt;Client |sale&lt;/P&gt;&lt;P&gt;AAAA |50000&lt;/P&gt;&lt;P&gt;after the second Load&lt;/P&gt;&lt;P&gt;Client |sale&lt;/P&gt;&lt;P&gt;AAAA |50000&lt;/P&gt;&lt;P&gt;AAAA |30000&lt;/P&gt;&lt;P&gt;The problem is I have other table BUDGET with:&lt;/P&gt;&lt;P&gt;Client | Budget&lt;/P&gt;&lt;P&gt;AAAAA | 900000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When QlikView make the relationship the data keep Worng&lt;/P&gt;&lt;P&gt;Client | Sale | Budget&lt;/P&gt;&lt;P&gt;AAAA | 50000 |900000&lt;/P&gt;&lt;P&gt;AAAA | 30000 |900000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my Budget keeps Duplicated&lt;/P&gt;&lt;P&gt;You Got me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 20:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181495#M588572</guid>
      <dc:creator />
      <dc:date>2010-08-31T20:25:30Z</dc:date>
    </item>
    <item>
      <title>Subquery on a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181496#M588573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually is not duplicated.....just show two times because has a two reference!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 20:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181496#M588573</guid>
      <dc:creator />
      <dc:date>2010-08-31T20:49:03Z</dc:date>
    </item>
    <item>
      <title>Subquery on a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181497#M588574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok but my dinamic table show me&lt;/P&gt;&lt;P&gt;Client | Sale | Budget&lt;/P&gt;&lt;P&gt;AAAA | 80000 | 1800000&lt;/P&gt;&lt;P&gt;And the correct must be&lt;/P&gt;&lt;P&gt;Client | Sale | Budget&lt;/P&gt;&lt;P&gt;AAAA | 80000 | 900000&lt;/P&gt;&lt;P&gt;But for this I have to aggreg my data in LOAD time By Client&lt;/P&gt;&lt;P&gt;Right?&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 20:59:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181497#M588574</guid>
      <dc:creator />
      <dc:date>2010-08-31T20:59:16Z</dc:date>
    </item>
    <item>
      <title>Subquery on a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181498#M588575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why did you load two times?Is the same table right? (on a first load Client |sale AAAA |50000 after the second Load Client |sale AAAA |50000 AAAA |30000)&lt;/P&gt;&lt;P&gt;You need put all sales on the same table.....and in another table you put a budget.....and two tables must has a Client like a key??&lt;/P&gt;&lt;P&gt;Did you do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 21:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181498#M588575</guid>
      <dc:creator />
      <dc:date>2010-08-31T21:06:10Z</dc:date>
    </item>
    <item>
      <title>Subquery on a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181499#M588576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My data are refreshed every 15 minutes, so I do 2 Loads the first with month data and the refresh is only daily datas.&lt;/P&gt;&lt;P&gt;I have other table with budget. like you sad with clint like Key&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 21:17:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181499#M588576</guid>
      <dc:creator />
      <dc:date>2010-08-31T21:17:37Z</dc:date>
    </item>
    <item>
      <title>Subquery on a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181500#M588577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fisrt you put on QVD.....and second you concatenate with QVD on the same table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 21:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181500#M588577</guid>
      <dc:creator />
      <dc:date>2010-08-31T21:22:55Z</dc:date>
    </item>
    <item>
      <title>Subquery on a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181501#M588578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes!! correct!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 21:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181501#M588578</guid>
      <dc:creator />
      <dc:date>2010-08-31T21:34:08Z</dc:date>
    </item>
    <item>
      <title>Subquery on a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181502#M588579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;You do not need to be concatenating or joining the tables at all in the load script. In fact you need to be sure that you don't. The two tables should be loaded separately and will be joined in the data model by virtue of the fact that the field Client exists in both tables.&lt;/P&gt;&lt;P&gt;Check the table viewer after a reload to check that this is happening.&lt;/P&gt;&lt;P&gt;Once the data is in create a chart with a dimension of Client and two expressions SUM(Sale) and SUM(Budget). You can select to show your chart as a 'Straight Table'. This should give you the results that you are after.&lt;/P&gt;&lt;P&gt;If you add the values in a Table Box then the numbers will not be aggregated and you will get the scenario where you see the two separate values for Sale and the value for Budget shown twice. It is rare that you will ever want to put a numeric value in a Table Box - it is almost always preferable to use a Chart with a Chart Type of straight table.&lt;/P&gt;&lt;P&gt;I can post up an example of this working if you require.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 22:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181502#M588579</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2010-08-31T22:30:53Z</dc:date>
    </item>
    <item>
      <title>Subquery on a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181503#M588580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could You post this example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 22:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181503#M588580</guid>
      <dc:creator />
      <dc:date>2010-08-31T22:55:14Z</dc:date>
    </item>
    <item>
      <title>Subquery on a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181504#M588581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tks Steve! It is ok!!&lt;/P&gt;&lt;P&gt;QlikView is the best BI tool!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 00:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181504#M588581</guid>
      <dc:creator />
      <dc:date>2010-09-01T00:02:22Z</dc:date>
    </item>
    <item>
      <title>Subquery on a Script</title>
      <link>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181505#M588582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexandre,&lt;/P&gt;&lt;P&gt;Glad it is now working for you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 07:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subquery-on-a-Script/m-p/181505#M588582</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2010-09-01T07:46:15Z</dc:date>
    </item>
  </channel>
</rss>

