<?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: 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/56983#M773183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like the table you are joining at the end or &lt;SPAN style="font-size: 13.3333px;"&gt;Info_Tarefa&lt;/SPAN&gt; have non-unique joining keys, causing multiplication of the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your image show only LOAD *, so I cannot give a simple recommendation. Do they need to be joined (rely on association to relate the records - you will need to manage a composite key (syn key) though)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would do is identify all the fields common to Info_Tarefa and the join table. Then load the join table into a separate document, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldN,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field1 &amp;amp; Field2 &amp;amp; ....&amp;amp; FieldN as Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 As Count&lt;/P&gt;&lt;P&gt;FROM ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(where Field1...N are the common fields)&lt;/P&gt;&lt;P&gt;Create a table with Key as the dimension and Sum(Count) as the metric. Look for values other than one. These are the records causing duplication.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2018 13:19:23 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2018-05-18T13:19:23Z</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/56982#M773182</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/202782_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/202783_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/56982#M773182</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/56983#M773183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like the table you are joining at the end or &lt;SPAN style="font-size: 13.3333px;"&gt;Info_Tarefa&lt;/SPAN&gt; have non-unique joining keys, causing multiplication of the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your image show only LOAD *, so I cannot give a simple recommendation. Do they need to be joined (rely on association to relate the records - you will need to manage a composite key (syn key) though)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would do is identify all the fields common to Info_Tarefa and the join table. Then load the join table into a separate document, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldN,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field1 &amp;amp; Field2 &amp;amp; ....&amp;amp; FieldN as Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 As Count&lt;/P&gt;&lt;P&gt;FROM ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(where Field1...N are the common fields)&lt;/P&gt;&lt;P&gt;Create a table with Key as the dimension and Sum(Count) as the metric. Look for values other than one. These are the records causing duplication.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 13:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-grows-a-lot-when-joining-tables/m-p/56983#M773183</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-05-18T13:19:23Z</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/56984#M773184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jonathan, thanks for your answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, I am left-joining the content from Info_Tarefa into Frota_Aeronaves, but the only field that is common in both tables is Modelo&amp;amp;Tarefa, so why when I make the new table loading all from Frota_Aeronaves I have that big amount of data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats the point I can't understand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 13:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-grows-a-lot-when-joining-tables/m-p/56984#M773184</guid>
      <dc:creator>paulinhok14</dc:creator>
      <dc:date>2018-05-18T13:50:24Z</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/56985#M773185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;that means that for 1 value ok a key on the left table, you have more than 1 value of this key on the right table&lt;/P&gt;&lt;P&gt;so you create new rows on your table&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;suppose a key with value 'a'&lt;/P&gt;&lt;P&gt;if you have 1 row on the left table and 5 on the right, joining crates 5 rows on the resulting table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 14:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-grows-a-lot-when-joining-tables/m-p/56985#M773185</guid>
      <dc:creator>olivierrobin</dc:creator>
      <dc:date>2018-05-18T14:00:06Z</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/56986#M773186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Olivier, thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I get what you say., my field Modelo&amp;amp;Tarefa got a lot of different registers on my Frota_Aeronaves table, as the image shows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(This is only the Frota_Aeronaves display table, before the join)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="frota.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/202829_frota.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But let me try to explain you why I am doing this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My application basically displays what parts (PN) are used in a task (Tarefa) and when (Mes_Falha).&lt;/P&gt;&lt;P&gt;But, in a timeline those datas are not displaying the real scenario for me, because:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First problem: Suppose I have 2 or more different tasks that use the SAME part (PN) and the tasks are being executed in the same month (Mes_Falha), for the same MODEL of aircraft, and a task can have 1 or more PNs. BUT, the tasks will be done by different aircrafts (they have different Serial Numbers, that is a field present in Frota_Aeronaves).&lt;/P&gt;&lt;P&gt;Second Problem: Imagine also that the same aircraft (only one Serial Number), in the same month, uses the same PN, BUT, for different tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If in a chart I just use the expression = Count (PN), he is not considering the situations I meant before, so I wanted to create a concatenated field PN+Modelo&amp;amp;Tarefa+[S/N]&lt;/P&gt;&lt;P&gt;So if I count this field on my chart, it will solve my problem, thing is, PN and Modelo&amp;amp;Tarefa are in the Info_Tarefa table, and S/N and Modelo&amp;amp;Tarefa are in Frota_Aeronaves table, thats why I am trying&amp;nbsp; to join them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you get it? It could be a little bit confusing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have another suggestions to solve this kind of problems, I would be glad also!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 16:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-grows-a-lot-when-joining-tables/m-p/56986#M773186</guid>
      <dc:creator>paulinhok14</dc:creator>
      <dc:date>2018-05-18T16:36:56Z</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/56987#M773187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jonathan, thanks for adding information, now the problem is clearer in my mind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I did with Olivier, I'll try to explain you the real situation and if you have suggestions it would help me so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;My application basically displays what parts (PN) are used in a task (Tarefa) and when (Mes_Falha).&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But, in a timeline those datas are not displaying the real scenario for me, because:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;First problem: Suppose I have 2 or more different tasks that use the SAME part (PN) and the tasks are being executed in the same month (Mes_Falha), for the same MODEL of aircraft, and a task can have 1 or more PNs. BUT, the tasks will be done by different aircrafts (they have different Serial Numbers, that is a field present in Frota_Aeronaves).&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Second Problem: Imagine also that the same aircraft (only one Serial Number), in the same month, uses the same PN, BUT, for different tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If in a chart I just use the expression = Count (PN), he is not considering the situations I meant before, so I wanted to create a concatenated field PN+Modelo&amp;amp;Tarefa+[S/N]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So if I count this field on my chart, it will solve my problem, thing is, PN and Modelo&amp;amp;Tarefa are in the Info_Tarefa table, and S/N and Modelo&amp;amp;Tarefa are in Frota_Aeronaves table, thats why I am trying&amp;nbsp; to join them.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Do you see any other ways to solve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 16:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-grows-a-lot-when-joining-tables/m-p/56987#M773187</guid>
      <dc:creator>paulinhok14</dc:creator>
      <dc:date>2018-05-18T16:43:33Z</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/56988#M773188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you don't join them in the backend (but let them associate)? Use both fields in a front end expression like &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PN+[Modelo&amp;amp;Tarefa]+[S/N]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 04:52:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-grows-a-lot-when-joining-tables/m-p/56988#M773188</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-05-21T04:52:19Z</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/56989#M773189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If only 1 field is require for the complex field, why dont you use a mapping load on the right table&amp;nbsp; and use applymap on the left table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 07:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-grows-a-lot-when-joining-tables/m-p/56989#M773189</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-05-21T07:01:15Z</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/56990#M773190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jonathan, thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well I didn't even know it is possible to do. Also I tried to do this and the results are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to be better than I did before, but, there are some considerable points....&lt;/P&gt;&lt;P&gt;There are some tasks that haven't PNs associated and in a PN count this should be not considered&lt;/P&gt;&lt;P&gt;In my expression, I tried something like &lt;STRONG&gt;if ( not isNull (PN), Count (PN&amp;amp;[Modelo&amp;amp;Tarefa]&amp;amp;[S/N] ) )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Didn't work, so I applied in my dimension the conditional &lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;if ( not isNull (PN), Dimension).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Apparently it works, am I doing it the right way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 13:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-grows-a-lot-when-joining-tables/m-p/56990#M773190</guid>
      <dc:creator>paulinhok14</dc:creator>
      <dc:date>2018-05-21T13:11:52Z</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/56991#M773191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sasidhar, thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am relatively new in QlikView development and I dont know what is mapping load, but in the other way, thank you for the advice, I'll search for this method and how to use it, if it works I will use for sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 13:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-grows-a-lot-when-joining-tables/m-p/56991#M773191</guid>
      <dc:creator>paulinhok14</dc:creator>
      <dc:date>2018-05-21T13:15:49Z</dc:date>
    </item>
  </channel>
</rss>

