<?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: Left join/keep between resident tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359828#M705341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is partially working: true I get a single table that seemt to be connected how I want. &lt;/P&gt;&lt;P&gt;But on the other side I get repetitions. In other words, the rows seems to be multiplied as many times as the number of occurances for each client found. In other words: QV is not applying the TAG but is repeating the rows in HYP as many times as they appear in the TEMP table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2012 12:42:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-20T12:42:47Z</dc:date>
    <item>
      <title>Left join/keep between resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359824#M705333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the table structured as follows: &lt;/P&gt;&lt;P&gt;[HYP]:&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG style="color: #ffffff;"&gt;&lt;STRONG&gt;n client&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG style="color: #ffffff;"&gt;&lt;STRONG&gt;n carrier&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG style="color: #ffffff;"&gt;&lt;STRONG&gt;contract&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG style="color: #ffffff;"&gt;&lt;STRONG&gt;policy&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;policy_short&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11112222&lt;/TD&gt;&lt;TD&gt;253&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;920/555&lt;/TD&gt;&lt;TD&gt;GLOBAL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11112222&lt;/TD&gt;&lt;TD&gt;253&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;609/555&lt;/TD&gt;&lt;TD&gt;GLOBAL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11112222&lt;/TD&gt;&lt;TD&gt;253&lt;/TD&gt;&lt;TD&gt;ghi&lt;/TD&gt;&lt;TD&gt;258/555&lt;/TD&gt;&lt;TD&gt;GENERAL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11112222&lt;/TD&gt;&lt;TD&gt;8965&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;920/555&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;66667777&lt;/TD&gt;&lt;TD&gt;253&lt;/TD&gt;&lt;TD&gt;abc2&lt;/TD&gt;&lt;TD&gt;920/555&lt;/TD&gt;&lt;TD&gt;GLOBAL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;66667777&lt;/TD&gt;&lt;TD&gt;253&lt;/TD&gt;&lt;TD&gt;ghi2&lt;/TD&gt;&lt;TD&gt;875/555&lt;/TD&gt;&lt;TD&gt;GENERAL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;44445555&lt;/TD&gt;&lt;TD&gt;4986&lt;/TD&gt;&lt;TD&gt;abc3&lt;/TD&gt;&lt;TD&gt;609/555&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;44445555&lt;/TD&gt;&lt;TD&gt;4986&lt;/TD&gt;&lt;TD&gt;abc3&lt;/TD&gt;&lt;TD&gt;920/555&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last column [policy_short] is computed as follows: &lt;/P&gt;&lt;P&gt;if([n carrier] = '253', if(left([policy], 3)='920', 'Global', if(left([policy], 3)='609', 'Global', 'General'))) as [policy_short]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the above, I have created another table structured as follows:&lt;/P&gt;&lt;P&gt;[TEMP]:&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;n client&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;n carrier&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Filter_Global&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11112222&lt;/TD&gt;&lt;TD&gt;253&lt;/TD&gt;&lt;TD&gt;GLOBAL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;66667777&lt;/TD&gt;&lt;TD&gt;253&lt;/TD&gt;&lt;TD&gt;GLOBAL&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The script is: &lt;/P&gt;&lt;P&gt;LOAD [n client], [n carrier], 'GLOBAL' as [Filter_Global] resident [HYP] where [policy_short]='GLOBAL' and [n carrier] = '253';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Up to hear, great! (maybe I should put a group by somewhere above?) &lt;/P&gt;&lt;P&gt;If I load the script as it is, a Syn table is created between [n client] and [n carrier] on both tables, so that when I select 'GLOBAL' in the table [Filter_Global] I see all the contracts and policies belonging to those [n clients] that have at least one policy that has been marked as GLOBAL in the first table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next step is where I get stucked. &lt;/P&gt;&lt;P&gt;How can I build one unique table that holds all the values?&lt;/P&gt;&lt;P&gt;I'm looking for a table built as follows (I have dropped out the [policy_chort] field): &lt;/P&gt;&lt;P&gt;[HYP2]:&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG style="color: #ffffff;"&gt;&lt;STRONG&gt;n client&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG style="color: #ffffff;"&gt;&lt;STRONG&gt;n carrier&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG style="color: #ffffff;"&gt;&lt;STRONG&gt;contract&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG style="color: #ffffff;"&gt;&lt;STRONG&gt;policy&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Filter_Global&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11112222&lt;/TD&gt;&lt;TD&gt;253&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;920/555&lt;/TD&gt;&lt;TD&gt;GLOBAL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11112222&lt;/TD&gt;&lt;TD&gt;253&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;609/555&lt;/TD&gt;&lt;TD&gt;GLOBAL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11112222&lt;/TD&gt;&lt;TD&gt;253&lt;/TD&gt;&lt;TD&gt;ghi&lt;/TD&gt;&lt;TD&gt;258/555&lt;/TD&gt;&lt;TD&gt;GLOBAL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11112222&lt;/TD&gt;&lt;TD&gt;8965&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;920/555&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;66667777&lt;/TD&gt;&lt;TD&gt;253&lt;/TD&gt;&lt;TD&gt;abc2&lt;/TD&gt;&lt;TD&gt;920/555&lt;/TD&gt;&lt;TD&gt;GLOBAL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;66667777&lt;/TD&gt;&lt;TD&gt;253&lt;/TD&gt;&lt;TD&gt;ghi2&lt;/TD&gt;&lt;TD&gt;875/555&lt;/TD&gt;&lt;TD&gt;GLOBAL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;44445555&lt;/TD&gt;&lt;TD&gt;4986&lt;/TD&gt;&lt;TD&gt;abc3&lt;/TD&gt;&lt;TD&gt;609/555&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;44445555&lt;/TD&gt;&lt;TD&gt;4986&lt;/TD&gt;&lt;TD&gt;abc3&lt;/TD&gt;&lt;TD&gt;920/555&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Now, how do I do this??? I believe the solution is a left join, but I just can't seem to make it work. How should I build the join? Is it a join or a keep?&lt;/P&gt;&lt;P&gt;I have built something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[HYP2]:&lt;/P&gt;&lt;P&gt;left join (HYP)&lt;/P&gt;&lt;P&gt;load * resident TEMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the above duplicates rows and figures I haven't understood based on what. (I haven't written all the fields, but I have very many fields in the HYP table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 11:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359824#M705333</guid>
      <dc:creator />
      <dc:date>2012-03-20T11:43:08Z</dc:date>
    </item>
    <item>
      <title>Left join/keep between resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359825#M705335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here Left join will add the column to the HYP table only which you have specified in syntax left join(HYP).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you need it has separate table then you need to load it once again and then join with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think Synthetic key will be formed between HYP and TEMP and HYP2 tables?Qlikview automatically forms synthetic key based on more than one column is common between 2 tables.&lt;/P&gt;&lt;P&gt;HYP:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From Datasource;&lt;/P&gt;&lt;P&gt;Left Join(HYP)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From Datasource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes your process easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 12:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359825#M705335</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-20T12:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Left join/keep between resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359826#M705337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understrood. The two tables HYP and TEMP are already computed separately. &lt;/P&gt;&lt;P&gt;The problem is when I try to join the two: I can't seem to apply the combination [n client] &amp;amp; [n carrier] in the TEMP table to all the occurances in the HYP table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do that in order to obtain as an outcome just one table wich contains all the values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 12:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359826#M705337</guid>
      <dc:creator />
      <dc:date>2012-03-20T12:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Left join/keep between resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359827#M705339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have you tried like this it will give you a single table with all values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use a left join between the two tables that you loaded from database.If you don't understand post your script.&lt;/P&gt;&lt;P&gt;HYP:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nclient,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ncarrier,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From HYPTablesource;&lt;/P&gt;&lt;P&gt;Left Join(HYP)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nclient,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ncarrier&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From TempTablesource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 12:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359827#M705339</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-20T12:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Left join/keep between resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359828#M705341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is partially working: true I get a single table that seemt to be connected how I want. &lt;/P&gt;&lt;P&gt;But on the other side I get repetitions. In other words, the rows seems to be multiplied as many times as the number of occurances for each client found. In other words: QV is not applying the TAG but is repeating the rows in HYP as many times as they appear in the TEMP table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 12:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359828#M705341</guid>
      <dc:creator />
      <dc:date>2012-03-20T12:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Left join/keep between resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359829#M705342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You mean your table have duplicates like this in TEMP table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="border-style: solid; border-color: #000000; border-collapse: collapse; font-size: 12px; margin-top: 1px; margin-bottom: 1px; width: 529px; border-width: 1px; padding: 3px;"&gt;&lt;TBODY style="font-size: 12px;"&gt;&lt;TR style="border-style: initial; border-color: initial; border-collapse: collapse; font-size: 12px;"&gt;&lt;TH align="center" style="background-color: #6690bc; border-width: 1px; border-color: #000000; border-style: solid;" valign="middle"&gt;&lt;SPAN style="font-size: 12px; color: #ffffff;"&gt;&lt;STRONG style="font-size: 12px;"&gt;n client&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc; border-width: 1px; border-color: #000000; border-style: solid;" valign="middle"&gt;&lt;SPAN style="font-size: 12px; color: #ffffff;"&gt;&lt;STRONG style="font-size: 12px;"&gt;n carrier&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc; border-width: 1px; border-color: #000000; border-style: solid;" valign="middle"&gt;&lt;SPAN style="font-size: 12px; color: #ffffff;"&gt;&lt;STRONG style="font-size: 12px;"&gt;Filter_Global&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR style="border-style: initial; border-color: initial; border-collapse: collapse; font-size: 12px;"&gt;&lt;TD style="border-collapse: collapse; border-width: 1px; border-color: #000000; border-style: solid; padding: 3px; margin: 1px;"&gt;11112222&lt;/TD&gt;&lt;TD style="border-collapse: collapse; border-width: 1px; border-color: #000000; border-style: solid; padding: 3px; margin: 1px;"&gt;253&lt;/TD&gt;&lt;TD style="border-collapse: collapse; border-width: 1px; border-color: #000000; border-style: solid; padding: 3px; margin: 1px;"&gt;GLOBAL&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border-style: initial; border-color: initial; border-collapse: collapse; font-size: 12px;"&gt;&lt;TD style="border-collapse: collapse; border-width: 1px; border-color: #000000; border-style: solid; padding: 3px; margin: 1px;"&gt;66667777&lt;/TD&gt;&lt;TD style="border-collapse: collapse; border-width: 1px; border-color: #000000; border-style: solid; padding: 3px; margin: 1px;"&gt;253&lt;/TD&gt;&lt;TD style="border-collapse: collapse; border-width: 1px; border-color: #000000; border-style: solid; padding: 3px; margin: 1px;"&gt;GLOBAL&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: initial; border-width: inherit; border-style: solid; border-collapse: collapse; font-size: 12px;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: #000000; font-weight: normal; border: inherit; border-width: 1px; border-style: solid; padding: 3px; margin: 1px;"&gt;66667777&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: #000000; font-weight: normal; border: inherit; border-width: 1px; border-style: solid; padding: 3px; margin: 1px;"&gt;253&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: #000000; font-weight: normal; border: inherit; border-width: 1px; border-style: solid; padding: 3px; margin: 1px;"&gt;GLOBAL&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 12:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359829#M705342</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-20T12:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Left join/keep between resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359830#M705343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It gives the exact solution you looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[n client,n carrier,contract,policy,policy_short&lt;/P&gt;&lt;P&gt;11112222,253,abc,920/555,GLOBAL&lt;/P&gt;&lt;P&gt;11112222,253,abc,609/555,GLOBAL&lt;/P&gt;&lt;P&gt;11112222,253,ghi,258/555,GENERAL&lt;/P&gt;&lt;P&gt;11112222,8965,abc,920/555&lt;/P&gt;&lt;P&gt;66667777,253,abc2,920/555,GLOBAL&lt;/P&gt;&lt;P&gt;66667777,253,ghi2,875/555,GENERAL&lt;/P&gt;&lt;P&gt;44445555,4986,abc3,609/555&lt;/P&gt;&lt;P&gt;44445555,4986,abc3,920/555];&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[n client,n carrier,Filter_Global&lt;/P&gt;&lt;P&gt;11112222,253,GLOBAL&lt;/P&gt;&lt;P&gt;66667777,253,GLOBAL&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Field policy_short;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 12:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359830#M705343</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-20T12:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Left join/keep between resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359831#M705344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh yes, this is the case. I have addes a value at the end of the first load.&lt;/P&gt;&lt;P&gt;If you look at the value of the single contract in a pivot table, you will see it is multiplied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[n client,n carrier,contract,policy,policy_short, value&lt;/P&gt;&lt;P&gt;11112222,253,abc,920/555,GLOBAL, 10&lt;/P&gt;&lt;P&gt;11112222,253,abc,609/555,GLOBAL, 10&lt;/P&gt;&lt;P&gt;11112222,253,ghi,258/555,GENERAL, 10&lt;/P&gt;&lt;P&gt;11112222,8965,abc,920/555, , 10&lt;/P&gt;&lt;P&gt;66667777,253,abc2,920/555,GLOBAL, 10&lt;/P&gt;&lt;P&gt;66667777,253,ghi2,875/555,GENERAL, 10&lt;/P&gt;&lt;P&gt;44445555,4986,abc3,609/555, , 10&lt;/P&gt;&lt;P&gt;44445555,4986,abc3,920/555, , 10&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[n client,n carrier,Filter_Global&lt;/P&gt;&lt;P&gt;11112222,253,GLOBAL&lt;/P&gt;&lt;P&gt;66667777,253,GLOBAL&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 13:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359831#M705344</guid>
      <dc:creator />
      <dc:date>2012-03-20T13:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Left join/keep between resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359832#M705345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Did you checked it in table View(Ctrl+T).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In Pivot table?What all the Expressions and dimensions you used in it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 13:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359832#M705345</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-20T13:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Left join/keep between resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359833#M705346</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'm loading a little example of what I have. Can't load all because it's sensible info.&lt;/P&gt;&lt;P&gt;I have a personal edition, so I'm not sure I'll be able to open the file if you send it back. Just post the script trick if you can figure it out.&lt;/P&gt;&lt;P&gt;Thanks for your time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 14:03:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359833#M705346</guid>
      <dc:creator />
      <dc:date>2012-03-20T14:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Left join/keep between resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359834#M705347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; For me, this kind of things are easier to see using a join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I reload using this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; [hello]:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;* &lt;/P&gt;&lt;P&gt;resident [HYP3];&lt;/P&gt;&lt;P&gt;left join (HYP3) &lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;* &lt;/P&gt;&lt;P&gt;resident [temp];&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;//drop table [HYP3];&lt;/P&gt;&lt;P&gt;drop table [temp];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We don't drop the HYP3 table, because the first load is concatenating all the values... and we have the worst possible scenario.&lt;/P&gt;&lt;P&gt;Looking at a table object of the data we have this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="633"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="114"&gt;Codice&amp;nbsp; Capogruppo&lt;/TD&gt;&lt;TD class="xl63" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="87"&gt;Codice Gruppo&lt;/TD&gt;&lt;TD class="xl63" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="107"&gt;Numero Contratto&lt;/TD&gt;&lt;TD class="xl63" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="129"&gt;Polizza&lt;/TD&gt;&lt;TD class="xl63" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="87"&gt;polizza_short&lt;/TD&gt;&lt;TD class="xl63" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="55"&gt;premium&lt;/TD&gt;&lt;TD class="xl63" style="border-left-style: none; border-left-width: initial; border-left-color: initial;" width="54"&gt;Z_Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;600672&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00156471&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;106.1006032621&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;106.1006032621&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;750&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;600672&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00156471&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00000000061006032621&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;61006032621&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;-750&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;601349&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00175842&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000920A1521&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;920A1521&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;-19&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;601349&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00175842&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000920A1521&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;920A1521&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;19.151&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;601349&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00175842&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000920A1521&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;920A1521&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;6.500&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;601349&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00175842&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000920A1521&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;920A1521&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;1.295&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;601023&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00159645&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000AXH32132&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;AXH32132&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;904&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;602449&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00173802&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;235&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;602449&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00173802&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;42.573&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;602449&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00173802&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;356&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;602449&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00173802&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;-356&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;602449&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00173802&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;1.244&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;602449&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00173802&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;-1.912&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;600700&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00156819&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000209B7810&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;209B7810&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;120&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;600700&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00156830&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000209C0451&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;209C0451&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;113&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;600700&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00156843&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000209C1689&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;209C1689&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;111&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;034680&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;20248328&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;920B1161&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;920B1161&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;3.272&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;004779&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;20248818&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000209S9980&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;209S9980&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;404&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;004779&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;20248818&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000209S9980&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;209S9980&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;-404&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;004779&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;20248668&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000209U3340&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;209U3340&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;88&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;004779&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;20248668&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000209U3340&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;209U3340&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;-88&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;602687&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00150666&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000920A4627&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;920A4627&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;0&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-style: none; border-top-width: initial; border-top-color: initial;"&gt;008742&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;00153519&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;000000000000209C2279&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;209C2279&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt;91&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-top-width: initial; border-top-color: initial; border-left-style: none; border-left-width: initial; border-left-color: initial;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;23 possible rows, but the =count(total Polizza) is returning 156.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modifying this line of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HYP3: &lt;/P&gt;&lt;P&gt;load DISTINCT *, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if([Codice Gruppo] = '000253', if(left([polizza_short], 3)='920', 'Global', if(left([polizza_short], 3)='609', 'Global', 'General'))) as [3_cifre_polizza_short] &lt;/P&gt;&lt;P&gt;resident [HYP2];&lt;/P&gt;&lt;P&gt;drop table [HYP2];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have the same table object but a total count of Polizza of 23 (as it should).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So, what's happening?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, I don't still see it clearly but it seems that at any point, the synthetic key is messing the data before executing the join instruction.&lt;/P&gt;&lt;P&gt;A Distinct load should do it, but I believe that for your purposes it would be really much easier to do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[HYP]:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if([Codice Gruppo] = '000253', if(left(mid(Polizza,findoneof(Polizza, '123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\/')), 3)='920', 'Z-Global', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(left(mid(Polizza,findoneof(Polizza, '123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\/')), 3)='609', 'Z-Global'))) as [Z_Global] ;&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="633"&gt;&lt;TBODY&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl63" height="17" style="border-color: inherit; border: inherit;" width="114"&gt;Codice&amp;nbsp; Capogruppo&lt;/TD&gt;&lt;TD class="xl63" style="border-color: inherit; border: inherit;" width="87"&gt;Codice Gruppo&lt;/TD&gt;&lt;TD class="xl63" style="border-color: inherit; border: inherit;" width="107"&gt;Numero Contratto&lt;/TD&gt;&lt;TD class="xl63" style="border-color: inherit; border: inherit;" width="129"&gt;Polizza&lt;/TD&gt;&lt;TD class="xl63" style="border-color: inherit; border: inherit;" width="87"&gt;polizza_short&lt;/TD&gt;&lt;TD class="xl63" style="border-color: inherit; border: inherit;" width="55"&gt;premium&lt;/TD&gt;&lt;TD class="xl63" style="border-color: inherit; border: inherit;" width="54"&gt;Z_Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;600672&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00156471&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;106.1006032621&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;106.1006032621&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;750&lt;/TD&gt;&lt;TD class="xl65" style="border-color: inherit; border: inherit;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;600672&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00156471&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00000000061006032621&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;61006032621&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;-750&lt;/TD&gt;&lt;TD class="xl65" style="border-color: inherit; border: inherit;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;601349&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00175842&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000920A1521&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;920A1521&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;-19&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;601349&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00175842&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000920A1521&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;920A1521&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;19.151&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;601349&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00175842&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000920A1521&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;920A1521&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;6.500&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;601349&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00175842&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000920A1521&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;920A1521&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;1.295&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;601023&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00159645&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000AXH32132&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;AXH32132&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;904&lt;/TD&gt;&lt;TD class="xl65" style="border-color: inherit; border: inherit;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;602449&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00173802&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;235&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;602449&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00173802&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;42.573&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;602449&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00173802&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;356&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;602449&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00173802&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;-356&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;602449&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00173802&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;1.244&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;602449&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00173802&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;920A8454&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;-1.912&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;600700&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00156819&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000209B7810&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;209B7810&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;120&lt;/TD&gt;&lt;TD class="xl65" style="border-color: inherit; border: inherit;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;600700&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00156830&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000209C0451&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;209C0451&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;113&lt;/TD&gt;&lt;TD class="xl65" style="border-color: inherit; border: inherit;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;600700&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00156843&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000209C1689&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;209C1689&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;111&lt;/TD&gt;&lt;TD class="xl65" style="border-color: inherit; border: inherit;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;034680&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;20248328&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;920B1161&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;920B1161&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;3.272&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;004779&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;20248818&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000209S9980&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;209S9980&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;404&lt;/TD&gt;&lt;TD class="xl65" style="border-color: inherit; border: inherit;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;004779&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;20248818&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000209S9980&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;209S9980&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;-404&lt;/TD&gt;&lt;TD class="xl65" style="border-color: inherit; border: inherit;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;004779&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;20248668&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000209U3340&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;209U3340&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;88&lt;/TD&gt;&lt;TD class="xl65" style="border-color: inherit; border: inherit;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;004779&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;20248668&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000209U3340&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;209U3340&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;-88&lt;/TD&gt;&lt;TD class="xl65" style="border-color: inherit; border: inherit;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;602687&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00150666&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000920A4627&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;920A4627&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;0&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;Z-Global&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit;"&gt;&lt;TD class="xl64" height="17" style="border-color: inherit; border: inherit;"&gt;008742&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000253&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;00153519&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;000000000000209C2279&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;209C2279&lt;/TD&gt;&lt;TD class="xl64" style="border-color: inherit; border: inherit;"&gt;91&lt;/TD&gt;&lt;TD class="xl65" style="border-color: inherit; border: inherit;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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;I believe that it gives you exactly the same result, don't need to do three auxiliary tables and can get rid of the keep/join part (I always try to avoid doing joins if possible because of this kind of things &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 18:20:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359834#M705347</guid>
      <dc:creator>Luis_Cortizo</dc:creator>
      <dc:date>2012-03-20T18:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Left join/keep between resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359835#M705348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks man! I think the distinct did it! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make it harder, try adding the following line in the first load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;00156471,&amp;nbsp;&amp;nbsp;&amp;nbsp; 100,&amp;nbsp;&amp;nbsp;&amp;nbsp; 00000000092006032621,&amp;nbsp;&amp;nbsp;&amp;nbsp; 000253,&amp;nbsp;&amp;nbsp;&amp;nbsp; 600672&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This case should be marked as Z-Global, since al least one other policy for that same Codice Capogruppo starts either with 920. The only way I found to do this is via 3 tables. Otherwise your're right: everything can be computed in one load. But this is not the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know what you think. Thanks anyway&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 21:13:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359835#M705348</guid>
      <dc:creator />
      <dc:date>2012-03-20T21:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Left join/keep between resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359836#M705349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should be marked as Z_Global just for that new line, right?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that the rest of rows with the same Numero Contratto should remain uncategorized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing everything in one load with the preceding load seems to do what we could expect &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Numero Contratto&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;premium&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Polizza&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Codice Gruppo&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Codice Capogruppo&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Z_Global&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;00156471&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;100&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;00000000092006032621&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;000253&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;600672&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Z-Global&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 13:43:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359836#M705349</guid>
      <dc:creator>Luis_Cortizo</dc:creator>
      <dc:date>2012-03-21T13:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Left join/keep between resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359837#M705350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luis, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no, not just that row. The logic is: if for all [polizza_short] belonging to one [Codice Capogruppo] there is al least one who's first 3 values are either 920 or 609, then the Z-Global tag needs to be applied to all of those policies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, if not even one [polizza_short] starts with either 920 or 609, then all policies belonging to that [Codice Capogruppo] should remain unmarked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 08:08:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-keep-between-resident-tables/m-p/359837#M705350</guid>
      <dc:creator />
      <dc:date>2012-03-22T08:08:09Z</dc:date>
    </item>
  </channel>
</rss>

