<?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: Help with join tables with exclusion data. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610435#M1104025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the test, just load the second table and check that you have different values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2014 15:16:14 GMT</pubDate>
    <dc:creator>yduval75</dc:creator>
    <dc:date>2014-04-07T15:16:14Z</dc:date>
    <item>
      <title>Help with join tables with exclusion data.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610427#M1104017</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;I need join two tables, similar to outer join, but I need add into the first table only values of the second table that not exist on first table. Validating only the key field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;How is that done..&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 13:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610427#M1104017</guid>
      <dc:creator />
      <dc:date>2014-04-07T13:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with join tables with exclusion data.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610428#M1104018</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;a few more data or example files would be great...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But take a look at exists() function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use it like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM/RESIDENT ... WHERE NOT EXISTS(key);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 13:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610428#M1104018</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2014-04-07T13:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with join tables with exclusion data.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610429#M1104019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to use the concatenate function in addition to not exits function as said peshu82&lt;/P&gt;&lt;P&gt;If you have the same fields and the same number of fields between table 1 and table 2, the concatenation is automatic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (Table1)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;----------&lt;/P&gt;&lt;P&gt;From Table2 &lt;/P&gt;&lt;P&gt;where not exists (key);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 13:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610429#M1104019</guid>
      <dc:creator>yduval75</dc:creator>
      <dc:date>2014-04-07T13:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with join tables with exclusion data.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610430#M1104020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With Not Exists() Function: Show error Field not found &amp;lt;Key&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name of the fields is the same on the tables 1 and 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where I am going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Table 1&lt;/P&gt;&lt;P&gt;Key, A&lt;/P&gt;&lt;P&gt;1,10&lt;/P&gt;&lt;P&gt;2,10&lt;/P&gt;&lt;P&gt;3,10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;Key, A&lt;/P&gt;&lt;P&gt;1,9&lt;/P&gt;&lt;P&gt;4,9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expected Result&lt;/P&gt;&lt;P&gt;Key, A&lt;/P&gt;&lt;P&gt;1,10&lt;/P&gt;&lt;P&gt;2,10&lt;/P&gt;&lt;P&gt;3,10&lt;/P&gt;&lt;P&gt;4,9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result With Outer Join OR Concatenate&lt;/P&gt;&lt;P&gt;Key, A&lt;/P&gt;&lt;P&gt;1,10&lt;/P&gt;&lt;P&gt;1,9&lt;/P&gt;&lt;P&gt;2,10&lt;/P&gt;&lt;P&gt;3,10&lt;/P&gt;&lt;P&gt;4,9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Table1]:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; A,&lt;/P&gt;&lt;P&gt;&amp;nbsp; B,&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM &lt;/P&gt;&lt;P&gt;&amp;nbsp; Table1.QVD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Table2]:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Concatenate(Table1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; A,&lt;/P&gt;&lt;P&gt;&amp;nbsp; B,&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM &lt;/P&gt;&lt;P&gt;&amp;nbsp; Table2.QVD&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE &lt;/P&gt;&lt;P&gt;&amp;nbsp; NOT EXISTS(Key);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 14:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610430#M1104020</guid>
      <dc:creator />
      <dc:date>2014-04-07T14:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help with join tables with exclusion data.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610431#M1104021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried with your example.&lt;/P&gt;&lt;P&gt;I get the expected result&lt;/P&gt;&lt;P&gt;I have attached my qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 14:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610431#M1104021</guid>
      <dc:creator>yduval75</dc:creator>
      <dc:date>2014-04-07T14:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with join tables with exclusion data.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610432#M1104022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yoann, look my real code, but don't worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will be the name of field. I am renaming all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Preco_Medio_Venda_Tmp]:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; left([Faturamento - Código Produto],5) &amp;amp; ' - ' &amp;amp; [Faturamento - Mercado] AS CHAVE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; left([Faturamento - Código Produto],5) AS [Preço Médio Venda - Referencia],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Faturamento - Mercado] AS [Preço Médio Venda - Mercado],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum([Faturamento - Valor Líquido Total] - [Faturamento - Valor ICMS Substituição] - [Faturamento - Valor IPI])/Sum([Faturamento - Quantidade]) AS [Preço Médio Venda - Valor Venda Médio]&lt;/P&gt;&lt;P&gt;&amp;nbsp; RESIDENT &lt;/P&gt;&lt;P&gt;&amp;nbsp; [Fato Faturamento]&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Faturamento - Ano] = $(ANO_BASE)&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND Num(Month([Faturamento - Data Emissão])) = Num($(MES_BASE))&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND [Faturamento - Grupo CFOP] = 'VENDA'&lt;/P&gt;&lt;P&gt;&amp;nbsp; GROUP BY&lt;/P&gt;&lt;P&gt;&amp;nbsp; left([Faturamento - Código Produto],5),&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Faturamento - Mercado];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; left([Faturamento - Código Produto],5) &amp;amp; ' - ' &amp;amp; [Faturamento - Mercado] AS CHAVE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; left([Faturamento - Código Produto],5) AS [Preço Médio Venda - Referencia],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Faturamento - Mercado] AS [Preço Médio Venda - Mercado],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum([Faturamento - Valor Líquido Total] - [Faturamento - Valor ICMS Substituição] - [Faturamento - Valor IPI])/Sum([Faturamento - Quantidade]) AS [Preço Médio Venda - Valor Venda Médio]&lt;/P&gt;&lt;P&gt;&amp;nbsp; RESIDENT &lt;/P&gt;&lt;P&gt;&amp;nbsp; [Fato Faturamento]&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE &lt;/P&gt;&lt;P&gt;&amp;nbsp; NOT EXISTS(CHAVE)&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND [Faturamento - Ano] = $(ANO_BASE)&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND Num(Month([Faturamento - Data Emissão])) = Num($(MES_BASE) - 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND [Faturamento - Grupo CFOP] = 'VENDA'&lt;/P&gt;&lt;P&gt;&amp;nbsp; GROUP BY&lt;/P&gt;&lt;P&gt;&amp;nbsp; left([Faturamento - Código Produto],5),&lt;/P&gt;&lt;P&gt;&amp;nbsp; [Faturamento - Mercado];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 14:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610432#M1104022</guid>
      <dc:creator />
      <dc:date>2014-04-07T14:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with join tables with exclusion data.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610433#M1104023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to use &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;NOT EXISTS (CHAVE, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;left([Faturamento - Código Produto],5) &amp;amp; ' - ' &amp;amp; [Faturamento - Mercado]&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;instead of &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;NOT EXISTS (CHAVE&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 14:49:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610433#M1104023</guid>
      <dc:creator>yduval75</dc:creator>
      <dc:date>2014-04-07T14:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help with join tables with exclusion data.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610434#M1104024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now it's worked, but don't load data of the second table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 15:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610434#M1104024</guid>
      <dc:creator />
      <dc:date>2014-04-07T15:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with join tables with exclusion data.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610435#M1104025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the test, just load the second table and check that you have different values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 15:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610435#M1104025</guid>
      <dc:creator>yduval75</dc:creator>
      <dc:date>2014-04-07T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with join tables with exclusion data.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610436#M1104026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yoann,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Worked perfectly now, I was loaded null values on the first table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 16:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-join-tables-with-exclusion-data/m-p/610436#M1104026</guid>
      <dc:creator />
      <dc:date>2014-04-07T16:34:15Z</dc:date>
    </item>
  </channel>
</rss>

