<?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 File grows a lot when joining tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/File-grows-a-lot-when-joining-tables/m-p/56810#M773161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Guys good morning,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a qvw application that its size is about 7MB.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The table layout of my file is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="tabelas_antes.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/202787_tabelas_antes.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, due to an application need, I am doing (at the end of the script) a left join of the Info_Tarefa table to the Frota_Aeronaves table, so I can use a concatenated field between 2 fields that are in the table on the left, and 1 field that is in the table on the right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By simply doing this left join, my application grows in size absurdly, I've already used NoConcatenate to make sure that Qlik is not keeping the Frota_Aeronaves table in the script, but I do not know what might be happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12 million lines are being loaded in my new final table, and my file, with just that snippet of code from the image, goes from 7MB to 133MB ...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="o que acontece.png" class="jive-image image-2" src="/legacyfs/online/202788_o que acontece.png" style="height: 247px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Anyone have any idea what might be happening?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Thank you and a hug to everyone!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>paulinhok14</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>File grows a lot when joining tables</title>
      <link>https://community.qlik.com/t5/QlikView/File-grows-a-lot-when-joining-tables/m-p/56810#M773161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Guys good morning,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a qvw application that its size is about 7MB.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The table layout of my file is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="tabelas_antes.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/202787_tabelas_antes.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, due to an application need, I am doing (at the end of the script) a left join of the Info_Tarefa table to the Frota_Aeronaves table, so I can use a concatenated field between 2 fields that are in the table on the left, and 1 field that is in the table on the right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By simply doing this left join, my application grows in size absurdly, I've already used NoConcatenate to make sure that Qlik is not keeping the Frota_Aeronaves table in the script, but I do not know what might be happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12 million lines are being loaded in my new final table, and my file, with just that snippet of code from the image, goes from 7MB to 133MB ...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="o que acontece.png" class="jive-image image-2" src="/legacyfs/online/202788_o que acontece.png" style="height: 247px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Anyone have any idea what might be happening?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Thank you and a hug to everyone!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-grows-a-lot-when-joining-tables/m-p/56810#M773161</guid>
      <dc:creator>paulinhok14</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: File grows a lot when joining tables</title>
      <link>https://community.qlik.com/t5/QlikView/File-grows-a-lot-when-joining-tables/m-p/56811#M773162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess there are no common fields on both tables when you're joining and so, it's making a full join (outter join).&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;From [Whatever]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (Data)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D&lt;/P&gt;&lt;P&gt;From [Whatever];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will make an outter join, since no fields are common.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share the app?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Felipe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 14:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-grows-a-lot-when-joining-tables/m-p/56811#M773162</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2018-05-18T14:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: File grows a lot when joining tables</title>
      <link>https://community.qlik.com/t5/QlikView/File-grows-a-lot-when-joining-tables/m-p/56812#M773163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Felip boa tarde! Obrigado pela resposta! &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Eu acho que minha questão duplicou na hora de postar mas sem problema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No outro tópico me ajudaram a entender o problema. Na verdade existem sim campos comuns nas duas tabelas, é o Modelo&amp;amp;Tarefa, como está na primeira imagem, então é o left join que está sendo feito.&lt;/P&gt;&lt;P&gt;Porém na minha tabela Frota_Aeronaves existem vários registros de Modelo&amp;amp;Tarefa, segue imagem:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="frota.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/202832_frota.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Vou tentar te explicar o por que estou tentando fazer essa junção:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meu aplicativo basicamente exibe quais partes (PN) são usadas em uma tarefa (Tarefa) e quando (Mes_Falha).&lt;/P&gt;&lt;P&gt;Mas, em uma linha do tempo, esses dados não estão exibindo o cenário real para mim, porque:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Primeiro problema: Suponha que eu tenha 2 ou mais tarefas diferentes que usam a mesma peça (PN) e as tarefas estão sendo executadas no mesmo mês (Mes_Falha), para o mesmo MODELO de aeronave, e uma tarefa pode ter 1 ou mais PNs. MAS, as tarefas serão feitas por diferentes aeronaves (elas possuem diferentes números de série, que é um campo presente em Frota_Aeronaves).&lt;/P&gt;&lt;P&gt;Segundo Problema: Imagine também que a mesma aeronave (apenas um Serial Number (S/N) ), no mesmo mês, usa o mesmo PN, MAS, para diferentes tarefas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Se em um gráfico eu uso apenas a expressão = Count (PN), ele não está considerando as situações que eu quis dizer antes, então eu queria criar um campo concatenado PN + Modelo&amp;amp;Tarefa + [S/N]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Então, se eu contar este novo campo concatenado no meu gráfico, ele resolverá meu problema, o problema é, PN e Modelo&amp;amp;Tarefa estão na tabela Info_Tarefa, e S/N e Modelo&amp;amp;Tarefa estão na tabela Frota_Aeronaves, é por isso que to tentando juntar as tabelas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consegue enxergar outra maneira de resolver o problema?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 16:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-grows-a-lot-when-joining-tables/m-p/56812#M773163</guid>
      <dc:creator>paulinhok14</dc:creator>
      <dc:date>2018-05-18T16:53:45Z</dc:date>
    </item>
  </channel>
</rss>

