<?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: Create a table with data from 2 tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264633#M99490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vijay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know, i have the same problem with some of the mails i receive from qliktech (even in the community site some of my mails are in a strange format).&lt;/P&gt;&lt;P&gt;Nevertheless i send you an attachment with the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i think that maybe i’ve not explained myself correctly.&lt;/P&gt;&lt;P&gt;Many of your colleagues at cliktech have answered me but none have answered my real problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my real problem is:&lt;/P&gt;&lt;P&gt;I have 2 tables, each one with diferente columns, related by one single column (Local) and i need to create a temp table with data from both tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOCAISINSTALACAO:&lt;/P&gt;&lt;P&gt;LOAD Local&lt;/P&gt;&lt;P&gt;…&lt;/P&gt;&lt;P&gt;     &lt;A href="Centro fornecedor"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     …&lt;/P&gt;&lt;P&gt;FROM KNA1.QVD (qvd) where &lt;A href="Organização vendas"&gt;&lt;/A&gt; = '1300';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VENDASBW:&lt;/P&gt;&lt;P&gt;LOAD …&lt;/P&gt;&lt;P&gt;     Local,&lt;/P&gt;&lt;P&gt;&lt;A href="Preço Líquido Unitário"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     Qtd.vendas,&lt;/P&gt;&lt;P&gt;Year(Date#(Mid(&lt;A href="Exercício/período - Exercício/período Nível 01 (Key)"&gt;&lt;/A&gt;,15,4),'YYYY')) as Ano,&lt;/P&gt;&lt;P&gt;     Month(Date#(Mid(&lt;A href="Exercício/período - Exercício/período Nível 01 (Key)"&gt;&lt;/A&gt;,20,2),'MM')) as Mes,&lt;/P&gt;&lt;P&gt;…&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/ZCO01-Z_CO_03_LF_GERTAL*.QVD"&gt;&lt;/A&gt; (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a temp table with data from both tables.&lt;/P&gt;&lt;P&gt;The SQL code would be something like this:&lt;/P&gt;&lt;P&gt;Select a.Ano, a.Mês, b.[Centro fornecedor], SUM(a.Qtd.vendas) AS TOTALQTD, SUM(a.Qtd.vendas * a.[Preço Líquido Unitário]) AS TOTALVENDAS&lt;/P&gt;&lt;P&gt;From VENDASBW a, LOCAISINSTALACAO b&lt;/P&gt;&lt;P&gt;Where a.local = b.local&lt;/P&gt;&lt;P&gt;Group by a.ano, a.mes, b.[Centro fornecedor]&lt;/P&gt;&lt;P&gt;Order by a.ano, a.mes, b.[Centro fornecedor]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In qlikview should be something like this&lt;/P&gt;&lt;P&gt;TEMPTABLE:&lt;/P&gt;&lt;P&gt;LOAD Ano,&lt;/P&gt;&lt;P&gt;Mes,&lt;/P&gt;&lt;P&gt;&lt;A href="Centro fornecedor"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     SUM(Qtd.vendas) AS TOTALQTD,&lt;/P&gt;&lt;P&gt;     SUM(Qtd.vendas * &lt;A href="Preço Líquido Unitário"&gt;&lt;/A&gt;) AS TOTALVENDAS&lt;/P&gt;&lt;P&gt;RESIDENT VENDASBW, RESIDENT LOCAISINSTALACAO&lt;/P&gt;&lt;P&gt;group by Ano, Mês, &lt;A href="Centro fornecedor"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;order by Ano, Mês, &lt;A href="Centro fornecedor"&gt;&lt;/A&gt; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Joaquim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: Vijay Singh &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Enviada: quinta-feira, 12 de Janeiro de 2012 07:18&lt;/P&gt;&lt;P&gt;Para: B2B-Joaquim Correia (Informática)&lt;/P&gt;&lt;P&gt;Assunto: &lt;A href="Development (QlikView Desktop)"&gt;&lt;/A&gt; - Re: Create a table with data from 2 tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikCommunity&amp;lt;http://community.qlik.com/index.jspa&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: Create a table with data from 2 tables&lt;/P&gt;&lt;P&gt;created by Vijay Singh&amp;lt;http://community.qlik.com/people/vijay_iitkgp&amp;gt; in Development (QlikView Desktop) - View the full discussion&amp;lt;http://community.qlik.com/message/181912#181912&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2012 08:26:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-12T08:26:35Z</dc:date>
    <item>
      <title>Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264613#M99470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello, i need help with create a 3rd table with data from 2 tables:&lt;/P&gt;&lt;P&gt; One of my tables contains 2 columns: client_id, description, the other table contains the sales detail: client_id, date, qty, price&lt;/P&gt;&lt;P&gt;I need to create a third table.&lt;/P&gt;&lt;P&gt;In sql i would do something like: select a.client_id, a.description,&amp;nbsp; sum(b.qty) as qty_total, sum(b.qty * b.price) as value_total from clients a, orders b where a.client_id =b.client_id group by a.client_id, a.description order by a.client_id, a.description&lt;/P&gt;&lt;P&gt;Can i do something like this in qlikview?&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;Joaquim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 18:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264613#M99470</guid>
      <dc:creator />
      <dc:date>2012-01-10T18:59:03Z</dc:date>
    </item>
    <item>
      <title>Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264614#M99471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; you can create a new 3rth table using the resident, I don´t know if you mean this but if you plase an example it would be better to create an script in your app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 19:11:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264614#M99471</guid>
      <dc:creator />
      <dc:date>2012-01-10T19:11:47Z</dc:date>
    </item>
    <item>
      <title>Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264615#M99472</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;You don't need to merge your 2 tables . It's the philosophy of Qlikview working with linked fields.&lt;/P&gt;&lt;P&gt;So if you want to display the total sales by client, just create a chart (straight table) with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dimension =&amp;nbsp; client_id&lt;/P&gt;&lt;P&gt;expression&amp;nbsp; =&amp;nbsp; sum(&amp;nbsp; qty * price )&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you want to merge : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table1:&lt;/P&gt;&lt;P&gt;Load client_id,&amp;nbsp; description from you datasource1 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(table1) &lt;/P&gt;&lt;P&gt;Load client_id, qty, price, data&amp;nbsp; &lt;/P&gt;&lt;P&gt;from your datasource2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 19:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264615#M99472</guid>
      <dc:creator />
      <dc:date>2012-01-10T19:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264616#M99473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jean-Jacques for the quick answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, i'm aware of the QlikView philisophy. &lt;/P&gt;&lt;P&gt;And i know we have much to gain with that phylosophy, the problem is that some calculations needs so much knowledge of the software that it isn't pratical to do it when we are shortage of time and we don't have the expertise to do that the right way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that i need to build a chart that compare each line of the detail (or aggregated values of the detail) with the total amount for the exact month of that line.&lt;/P&gt;&lt;P&gt;So, i have 1000 lines of detail for the month 1, 1000 lines of detail for the month 2, ...&lt;/P&gt;&lt;P&gt;One of the columns has quantities and other has prices, say we have 1000€ total for the month 1, 1000€ for the month 2, ...&lt;/P&gt;&lt;P&gt;My chart needs to display for some categories of data, the % of each month respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way to do that is to create a temp table (or what you call it) with the following columns: year, mounth, total_amount_for_the_mounth, than i can use that value (total_amount) in the chart calculations to find the %, QlikView will be responsable for linking the values with the right detail lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you know a better (and easy) way to do that in QlikView i will be thankful to you if you let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;P&gt;Joaquim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 20:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264616#M99473</guid>
      <dc:creator />
      <dc:date>2012-01-10T20:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264617#M99474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the quick answer Javier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have the data with me (it's at my job), so i can't send you the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a file that collects data from some qvd files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a, let's call it, temporary table, that holds some key values as well as a calculated field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i need to do it after i get all the data from the qvd's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe a script that is run after all the data is read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All i need is a sample of a script (with dummy data) and the way to call it after all the data is read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joaquim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 20:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264617#M99474</guid>
      <dc:creator />
      <dc:date>2012-01-10T20:54:42Z</dc:date>
    </item>
    <item>
      <title>Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264618#M99475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Ok, then it would be something like this:&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;Field A,&lt;/P&gt;&lt;P&gt;Field B,&lt;/P&gt;&lt;P&gt;Field C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From, file.xls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Field A,&lt;/P&gt;&lt;P&gt;Field D,&lt;/P&gt;&lt;P&gt;Field E&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From file.xls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temporary Table1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field A, &lt;/P&gt;&lt;P&gt;Field C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (Table1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temporary Table2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field D,&lt;/P&gt;&lt;P&gt;Field E&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you will get a new temporary Table1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope is clear enough!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 21:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264618#M99475</guid>
      <dc:creator />
      <dc:date>2012-01-10T21:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264619#M99476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you again Javier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are getting closer, but my problem is to create a new calculated field from the aggregation of an existing field.&lt;/P&gt;&lt;P&gt;Taking your example it would be something like:&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;&lt;/P&gt;&lt;P&gt;Field A,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field B,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From, file.xls.&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;Temporary TableTemp:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Field A,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field B,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Field C)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; From Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Group by  field A, Field B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i do something like that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cumprimentos,&lt;/P&gt;&lt;P&gt;Joaquim Correia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sistemas de Informação&lt;/P&gt;&lt;P&gt;Tel.: (&lt;EM&gt;351) 220 403 243 / 00 • Fax: (&lt;/EM&gt;351) 229 022 107&lt;/P&gt;&lt;P&gt;Tlm.:(+351) 919 112 623 • e-mail: joaquim.correia@b2b-pt.com&amp;lt;mailto:luis.ferreira@b2b-pt.com&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: javierortiz &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Enviada: terça-feira, 10 de Janeiro de 2012 21:18&lt;/P&gt;&lt;P&gt;Para: B2B-Joaquim Correia (Informática)&lt;/P&gt;&lt;P&gt;Assunto: &lt;A href="Development (QlikView Desktop)"&gt;&lt;/A&gt; - Re: Create a table with data from 2 tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikCommunity&amp;lt;http://community.qlik.com/index.jspa&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: Create a table with data from 2 tables&lt;/P&gt;&lt;P&gt;created by javierortiz&amp;lt;http://community.qlik.com/people/javierortiz&amp;gt; in Development (QlikView Desktop) - View the full discussion&amp;lt;http://community.qlik.com/message/181469#181469&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 08:20:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264619#M99476</guid>
      <dc:creator />
      <dc:date>2012-01-11T08:20:44Z</dc:date>
    </item>
    <item>
      <title>Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264620#M99477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joaquim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definitely you can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Field A],&lt;/P&gt;&lt;P&gt;[Field B],&lt;/P&gt;&lt;P&gt;Sum(Field C) AS [Field C]&lt;/P&gt;&lt;P&gt;Resident Table1 Group By [Field A], [Field B];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this you can drop the previous table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 08:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264620#M99477</guid>
      <dc:creator>vijay_iitkgp</dc:creator>
      <dc:date>2012-01-11T08:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264621#M99478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Vijay and thank you all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested it  and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cumprimentos,&lt;/P&gt;&lt;P&gt;Joaquim Correia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sistemas de Informação&lt;/P&gt;&lt;P&gt;Tel.: (&lt;EM&gt;351) 220 403 243 / 00 • Fax: (&lt;/EM&gt;351) 229 022 107&lt;/P&gt;&lt;P&gt;Tlm.:(+351) 919 112 623 • e-mail: joaquim.correia@b2b-pt.com&amp;lt;mailto:luis.ferreira@b2b-pt.com&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: Vijay Singh &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Enviada: quarta-feira, 11 de Janeiro de 2012 08:29&lt;/P&gt;&lt;P&gt;Para: B2B-Joaquim Correia (Informática)&lt;/P&gt;&lt;P&gt;Assunto: &lt;A href="Development (QlikView Desktop)"&gt;&lt;/A&gt; - Re: Create a table with data from 2 tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikCommunity&amp;lt;http://community.qlik.com/index.jspa&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: Create a table with data from 2 tables&lt;/P&gt;&lt;P&gt;created by Vijay Singh&amp;lt;http://community.qlik.com/people/vijay_iitkgp&amp;gt; in Development (QlikView Desktop) - View the full discussion&amp;lt;http://community.qlik.com/message/181549#181549&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 08:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264621#M99478</guid>
      <dc:creator />
      <dc:date>2012-01-11T08:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264622#M99479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, but i have one more question that links with my previous problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data come from 2 tables there is a way to relate them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/FieldA"&gt;&lt;/A&gt;, &lt;A href="https://community.qlik.com/FieldB"&gt;&lt;/A&gt;, &lt;A href="https://community.qlik.com/FieldC"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From file1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/FieldA"&gt;&lt;/A&gt;, &lt;A href="https://community.qlik.com/FieldD"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From file2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempTable:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;a.[FieldA], a.[FieldB], b.[FieldD], sum(a.[FieldC]) as FieldX&lt;/P&gt;&lt;P&gt;resident Table1 a, resident Table2 b&lt;/P&gt;&lt;P&gt;where a.[FieldA] = b.[FieldA]&lt;/P&gt;&lt;P&gt;group by a.[FieldA], a.[FieldB], b.[FieldD]&lt;/P&gt;&lt;P&gt;order by a.[FieldA], a.[FieldB], b.[FieldD]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cumprimentos,&lt;/P&gt;&lt;P&gt;Joaquim Correia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sistemas de Informação&lt;/P&gt;&lt;P&gt;Tel.: (&lt;EM&gt;351) 220 403 243 / 00 • Fax: (&lt;/EM&gt;351) 229 022 107&lt;/P&gt;&lt;P&gt;Tlm.:(+351) 919 112 623 • e-mail: joaquim.correia@b2b-pt.com&amp;lt;mailto:luis.ferreira@b2b-pt.com&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: Vijay Singh &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Enviada: quarta-feira, 11 de Janeiro de 2012 08:29&lt;/P&gt;&lt;P&gt;Para: B2B-Joaquim Correia (Informática)&lt;/P&gt;&lt;P&gt;Assunto: &lt;A href="Development (QlikView Desktop)"&gt;&lt;/A&gt; - Re: Create a table with data from 2 tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikCommunity&amp;lt;http://community.qlik.com/index.jspa&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: Create a table with data from 2 tables&lt;/P&gt;&lt;P&gt;created by Vijay Singh&amp;lt;http://community.qlik.com/people/vijay_iitkgp&amp;gt; in Development (QlikView Desktop) - View the full discussion&amp;lt;http://community.qlik.com/message/181549#181549&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 09:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264622#M99479</guid>
      <dc:creator />
      <dc:date>2012-01-11T09:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264623#M99480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry again, i don’t know what happened with the previous code, so i send the message again with the code part corrected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, but i have one more question that links with my previous problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data come from 2 tables there is a way to relate them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;FieldA, FieldB, FieldC&lt;/P&gt;&lt;P&gt;From file1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;FieldA, FieldD&lt;/P&gt;&lt;P&gt;From file2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempTable:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;a.[FieldA], a.[FieldB], b.[FieldD], sum(a.[FieldC]) as FieldX&lt;/P&gt;&lt;P&gt;resident Table1 a, resident Table2 b&lt;/P&gt;&lt;P&gt;where a.[FieldA] = b.[FieldA]&lt;/P&gt;&lt;P&gt;group by a.[FieldA], a.[FieldB], b.[FieldD]&lt;/P&gt;&lt;P&gt;order by a.[FieldA], a.[FieldB], b.[FieldD]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joaquim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 09:09:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264623#M99480</guid>
      <dc:creator />
      <dc:date>2012-01-11T09:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264624#M99481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;You can first Join two tables like:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Field A],&lt;/P&gt;&lt;P&gt;[Field B],&lt;/P&gt;&lt;P&gt;From File1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join&amp;nbsp; (If you want Inner Join then use Inner Join)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Field A],&lt;/P&gt;&lt;P&gt;[Field C]&lt;/P&gt;&lt;P&gt;From File2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Noconcatenate&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Field A],&lt;/P&gt;&lt;P&gt;[Field B],&lt;/P&gt;&lt;P&gt;Sum([Field C]) As [Field C]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Table1 Group By [Field A],[Field B];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 09:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264624#M99481</guid>
      <dc:creator>vijay_iitkgp</dc:creator>
      <dc:date>2012-01-11T09:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264625#M99482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you again Vijay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried but i got a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CENTROABASTECEDOR:&lt;/P&gt;&lt;P&gt;LOAD &lt;A href="Centro fornecedor"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Nome Centro fornecedor"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;FROM T001W.QVD (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VENDASBW:&lt;/P&gt;&lt;P&gt;LOAD &lt;A href="Cliente - Cliente Nível 01 (Key)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Cliente - Cliente Nível 01 (Text)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Tipo Venda - Tipo Venda Nível 01 (Key)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Tipo Venda - Tipo Venda Nível 01 (Text)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Material - Material Nível 01 (Key)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Material - Material Nível 01 (Text)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Exercício/período - Exercício/período Nível 01 (Key)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Exercício/período - Exercício/período Nível 01 (Text)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Local Instalação - Local Instalação Nível 01 (Key)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Local Instalação - Local Instalação Nível 01 (Text)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     OverPrice,&lt;/P&gt;&lt;P&gt;     &lt;A href="Preço Líquido Unitário"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     Qtd.vendas,&lt;/P&gt;&lt;P&gt;     Vendas,&lt;/P&gt;&lt;P&gt;     &lt;A href="Vendas - Unit"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     Mid(&lt;A href="Material - Material Nível 01 (Key)"&gt;&lt;/A&gt;,14,18) as &lt;A href="https://community.qlik.com/Material"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/ZCO01-Z_CO_03_LF_GERTAL*.QVD"&gt;&lt;/A&gt;(qvd)&lt;/P&gt;&lt;P&gt;join&lt;/P&gt;&lt;P&gt;LOAD &lt;A href="Centro fornecedor"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;FROM T001W.QVD (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the message:&lt;/P&gt;&lt;P&gt;&lt;A href="cid:image001.jpg@01CCD045.F2735FB0"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In english would be something like “Unrecogizable words (garbage) after command:”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joaquim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 09:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264625#M99482</guid>
      <dc:creator />
      <dc:date>2012-01-11T09:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264626#M99483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry my Mistake... Remove Comma from Last Field ([Field B]) in Table 1 Table1: Load [Field A], [Field B] From File1 Join&amp;nbsp; (If you want Inner Join then use Inner Join) Load [Field A], [Field C] From File2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 10:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264626#M99483</guid>
      <dc:creator>vijay_iitkgp</dc:creator>
      <dc:date>2012-01-11T10:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264627#M99484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Vijay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that is not  the problem, because, as you see, there is no coma after the last field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VENDASBW:&lt;/P&gt;&lt;P&gt;LOAD &lt;A href="Cliente - Cliente Nível 01 (Key)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Cliente - Cliente Nível 01 (Text)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Tipo Venda - Tipo Venda Nível 01 (Key)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Tipo Venda - Tipo Venda Nível 01 (Text)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Material - Material Nível 01 (Key)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Material - Material Nível 01 (Text)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Exercício/período - Exercício/período Nível 01 (Key)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Exercício/período - Exercício/período Nível 01 (Text)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Local Instalação - Local Instalação Nível 01 (Key)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Local Instalação - Local Instalação Nível 01 (Text)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     OverPrice,&lt;/P&gt;&lt;P&gt;     &lt;A href="Preço Líquido Unitário"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     Qtd.vendas,&lt;/P&gt;&lt;P&gt;     Vendas,&lt;/P&gt;&lt;P&gt;     &lt;A href="Vendas - Unit"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     Mid(&lt;A href="Material - Material Nível 01 (Key)"&gt;&lt;/A&gt;,14,18) as &lt;A href="https://community.qlik.com/Material"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/ZCO01-Z_CO_03_LF_GERTAL*.QVD"&gt;&lt;/A&gt;(qvd)&lt;/P&gt;&lt;P&gt;join&lt;/P&gt;&lt;P&gt;LOAD &lt;A href="Centro fornecedor"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;FROM T001W.QVD (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cumprimentos,&lt;/P&gt;&lt;P&gt;Joaquim Correia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sistemas de Informação&lt;/P&gt;&lt;P&gt;Tel.: (&lt;EM&gt;351) 220 403 243 / 00 • Fax: (&lt;/EM&gt;351) 229 022 107&lt;/P&gt;&lt;P&gt;Tlm.:(+351) 919 112 623 • e-mail: joaquim.correia@b2b-pt.com&amp;lt;mailto:luis.ferreira@b2b-pt.com&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: Vijay Singh &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Enviada: quarta-feira, 11 de Janeiro de 2012 10:06&lt;/P&gt;&lt;P&gt;Para: B2B-Joaquim Correia (Informática)&lt;/P&gt;&lt;P&gt;Assunto: &lt;A href="Development (QlikView Desktop)"&gt;&lt;/A&gt; - Re: Create a table with data from 2 tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikCommunity&amp;lt;http://community.qlik.com/index.jspa&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: Create a table with data from 2 tables&lt;/P&gt;&lt;P&gt;created by Vijay Singh&amp;lt;http://community.qlik.com/people/vijay_iitkgp&amp;gt; in Development (QlikView Desktop) - View the full discussion&amp;lt;http://community.qlik.com/message/181575#181575&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 10:09:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264627#M99484</guid>
      <dc:creator />
      <dc:date>2012-01-11T10:09:29Z</dc:date>
    </item>
    <item>
      <title>Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264628#M99485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Can&amp;nbsp; you please send me the qvs file . or Copy script in notepad and send.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 10:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264628#M99485</guid>
      <dc:creator>vijay_iitkgp</dc:creator>
      <dc:date>2012-01-11T10:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264629#M99486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need i can send you the qvd files, but for now i send you the script:&lt;/P&gt;&lt;P&gt;&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 €;-#.##0,00 €';&lt;/P&gt;&lt;P&gt;SET TimeFormat='hh:mm:ss';&lt;/P&gt;&lt;P&gt;SET DateFormat='DD-MM-YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='DD-MM-YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Fev;Mar;Abr;Mai;Jun;Jul;Ago;Set;Out;Nov;Dez';&lt;/P&gt;&lt;P&gt;SET DayNames='seg;ter;qua;qui;sex;sáb;dom';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;A href="https://community.qlik.com/Hierar.produtos"&gt;&lt;/A&gt;, // Materiais&lt;/P&gt;&lt;P&gt;     &lt;A href="https://community.qlik.com/Material"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;FROM MARA.QVD (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;A href="https://community.qlik.com/Hierar.produtos"&gt;&lt;/A&gt;, // Familias e Subfamilias&lt;/P&gt;&lt;P&gt;     &lt;A href="https://community.qlik.com/Hierar.Denominação"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     Mid(&lt;A href="https://community.qlik.com/Hierar.produtos"&gt;&lt;/A&gt;,1,5) as &lt;A href="https://community.qlik.com/Hierar.produtos.pai"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;FROM T179T.QVD (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Mid(&lt;A href="https://community.qlik.com/Hierar.produtos"&gt;&lt;/A&gt;,1,5) as &lt;A href="https://community.qlik.com/Hierar.produtos.pai"&gt;&lt;/A&gt;, // Familias e Subfamilias&lt;/P&gt;&lt;P&gt;     &lt;A href="https://community.qlik.com/Hierar.Denominação"&gt;&lt;/A&gt; as &lt;A href="https://community.qlik.com/Hierar.Denominação.pai"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;FROM T179T.QVD (qvd) Where Len(&lt;A href="https://community.qlik.com/Hierar.produtos"&gt;&lt;/A&gt;) = 5;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;A href="Centro fornecedor"&gt;&lt;/A&gt;,  // Centro Abestecedor&lt;/P&gt;&lt;P&gt;     &lt;A href="Nome Centro fornecedor"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;FROM T001W.QVD (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Local, //Locais Instalação&lt;/P&gt;&lt;P&gt;     Nome1,&lt;/P&gt;&lt;P&gt;     &lt;A href="Canal distribuição"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Setor de atividade"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Escritório de vendas"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Região de vendas"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Centro fornecedor"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="CAE 1"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="CAE 1 - Classe"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="CAE 1 - Grupo"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="CAE 1 - Divisão"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Distrito Cliente"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Concelho Cliente"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Tipo Entidade"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Segmento Grupo"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Região Cliente"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Nielsen - Nível 1"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Nielsen - Nível 2"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Nielsen - Nível 3"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;FROM KNA1.QVD (qvd) where &lt;A href="Organização vendas"&gt;&lt;/A&gt; = '1300';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Local, // Local dados empresa&lt;/P&gt;&lt;P&gt;     &lt;A href="Empresa Divisão TVL"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Empresa Centro custo"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Empresa CAE 2"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Empresa Segmento Empresa 1"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Empresa Segmento Empresa 2"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Empresa Segmento Empresa 3"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Empresa Região Cliente (Emp)"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;FROM KNB1.QVD (qvd) where &lt;A href="Organização vendas"&gt;&lt;/A&gt; = '1100';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;A href="Empresa Segmento Empresa 3"&gt;&lt;/A&gt;, // Descrição segmentos empresa 3&lt;/P&gt;&lt;P&gt;     &lt;A href="Empresa Txt Segmento Empresa 3"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;FROM ZDM_SEGEMP3T.QVD (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VENDASBW:&lt;/P&gt;&lt;P&gt;LOAD &lt;A href="Cliente - Cliente Nível 01 (Key)"&gt;&lt;/A&gt;, // Vendas de BW&lt;/P&gt;&lt;P&gt;     &lt;A href="Cliente - Cliente Nível 01 (Text)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Tipo Venda - Tipo Venda Nível 01 (Key)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Tipo Venda - Tipo Venda Nível 01 (Text)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Material - Material Nível 01 (Key)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Material - Material Nível 01 (Text)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Exercício/período - Exercício/período Nível 01 (Key)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Exercício/período - Exercício/período Nível 01 (Text)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Local Instalação - Local Instalação Nível 01 (Key)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Local Instalação - Local Instalação Nível 01 (Text)"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     OverPrice,&lt;/P&gt;&lt;P&gt;     &lt;A href="OverPrice - Unit"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Preço Líquido Unitário"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     &lt;A href="Preço Líquido Unitário - Unit"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     Qtd.vendas,&lt;/P&gt;&lt;P&gt;     &lt;A href="Qtd.vendas - Unit"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     Vendas,&lt;/P&gt;&lt;P&gt;     &lt;A href="Vendas - Unit"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;     Mid(&lt;A href="Cliente - Cliente Nível 01 (Key)"&gt;&lt;/A&gt;, 14,10) as Cliente,&lt;/P&gt;&lt;P&gt;     Mid(&lt;A href="Local Instalação - Local Instalação Nível 01 (Key)"&gt;&lt;/A&gt;, 14,10) as Local,&lt;/P&gt;&lt;P&gt;     Mid(&lt;A href="Exercício/período - Exercício/período Nível 01 (Key)"&gt;&lt;/A&gt;,15,7) as AnoMes,&lt;/P&gt;&lt;P&gt;     Year(Date#(Mid(&lt;A href="Exercício/período - Exercício/período Nível 01 (Key)"&gt;&lt;/A&gt;,15,4),'YYYY')) as Ano,&lt;/P&gt;&lt;P&gt;     Month(Date#(Mid(&lt;A href="Exercício/período - Exercício/período Nível 01 (Key)"&gt;&lt;/A&gt;,20,2),'MM')) as Mes,&lt;/P&gt;&lt;P&gt;     Mid(&lt;A href="Material - Material Nível 01 (Key)"&gt;&lt;/A&gt;,14,18) as &lt;A href="https://community.qlik.com/Material"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/ZCO01-Z_CO_03_LF_GERTAL*.QVD"&gt;&lt;/A&gt;(qvd)&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;LOAD &lt;A href="Centro fornecedor"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/KNA1.QVD"&gt;&lt;/A&gt; (qvd);&lt;/P&gt;&lt;P&gt;//[ZCO01-Z_CO_03_LF_GERTAL_012011.QVD](qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMPORARIA:&lt;/P&gt;&lt;P&gt;LOAD Ano,&lt;/P&gt;&lt;P&gt;     Mes,&lt;/P&gt;&lt;P&gt;       SUM(Qtd.vendas) AS TOTALQTD,&lt;/P&gt;&lt;P&gt;       SUM(Qtd.vendas * &lt;A href="Preço Líquido Unitário"&gt;&lt;/A&gt;) AS TOTALVENDAS&lt;/P&gt;&lt;P&gt;RESIDENT VENDASBW&lt;/P&gt;&lt;P&gt;group by Ano, Mes order by Ano, Mes ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cumprimentos,&lt;/P&gt;&lt;P&gt;Joaquim Correia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 10:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264629#M99486</guid>
      <dc:creator />
      <dc:date>2012-01-11T10:53:57Z</dc:date>
    </item>
    <item>
      <title>Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264630#M99487</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; In the code which Vijay has sent. you need to add word &lt;STRONG&gt;table &lt;/STRONG&gt;after&lt;STRONG&gt; drop &lt;/STRONG&gt;keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Table1;&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>Wed, 11 Jan 2012 14:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264630#M99487</guid>
      <dc:creator />
      <dc:date>2012-01-11T14:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264631#M99488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I received the bellow message from you, but i can’t read it (and in the community forum it’s impossible to read also), and i really can’t understand if you have done any change to the code sample i send.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Joaquim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: Sara Leslie &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Enviada: quarta-feira, 11 de Janeiro de 2012 17:59&lt;/P&gt;&lt;P&gt;Para: B2B-Joaquim Correia (Informática)&lt;/P&gt;&lt;P&gt;Assunto: Re: &lt;A href="Development (QlikView Desktop)"&gt;&lt;/A&gt; - Re: Create a table with data from 2 tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikCommunity&amp;lt;http://community.qlik.com/index.jspa&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: Create a table with data from 2 tables&lt;/P&gt;&lt;P&gt;reply from Sara Leslie&amp;lt;http://community.qlik.com/people/sli&amp;gt; in Development (QlikView Desktop) - View the full discussion&amp;lt;http://community.qlik.com/message/181585#181585&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 18:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264631#M99488</guid>
      <dc:creator />
      <dc:date>2012-01-11T18:10:06Z</dc:date>
    </item>
    <item>
      <title>Create a table with data from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264632#M99489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi, &lt;/P&gt;&lt;P&gt;Some how I am unable to read the script as it is showing link of your subject line. Can you please attach the notepad file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 07:18:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-table-with-data-from-2-tables/m-p/264632#M99489</guid>
      <dc:creator>vijay_iitkgp</dc:creator>
      <dc:date>2012-01-12T07:18:08Z</dc:date>
    </item>
  </channel>
</rss>

