<?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 Left Join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Left-Join/m-p/185976#M50277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Day!&lt;/P&gt;&lt;P&gt;I have a Detail and a Header Table. the problem is that a certain data exists in Detail Table but not in the Header Table.&lt;/P&gt;&lt;P&gt;what I want to do is to join those two tables and show the data that exists in the detail table but not in the header data..&lt;/P&gt;&lt;P&gt;here's my script:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Header:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Trim(BatchNo &amp;amp; '-' &amp;amp; TrxNo) as [%Cebu_Key],&lt;/P&gt;&lt;P&gt;Trim(BatchNo &amp;amp; '-' &amp;amp; TrxNo) as [Cebu Header_Key],&lt;/P&gt;&lt;P&gt;BatchNo as [Cebu Header_BatchNo],&lt;/P&gt;&lt;P&gt;TrxNo as [Cebu Header_TrxNo],&lt;/P&gt;&lt;P&gt;Trucker as [Cebu Header_Trucker],&lt;/P&gt;&lt;P&gt;DeclaredValue as [Cebu Header_DeclaredValue],&lt;/P&gt;&lt;P&gt;Customer as [Cebu Header_Customer],&lt;/P&gt;&lt;P&gt;Destination as [Cebu Header_Destination],&lt;/P&gt;&lt;P&gt;Case as [Cebu Header_Case],&lt;/P&gt;&lt;P&gt;Pack as [Cebu Header_Pack],&lt;/P&gt;&lt;P&gt;Box as [Cebu Header_Box],&lt;/P&gt;&lt;P&gt;Piece as [Cebu Header_Piece],&lt;/P&gt;&lt;P&gt;TotalCBM as [Cebu Header_TotalCBM],&lt;/P&gt;&lt;P&gt;RatePerCBM as [Cebu Header_RatePerCBM],&lt;/P&gt;&lt;P&gt;OTD as [Cebu Header_OTD],&lt;/P&gt;&lt;P&gt;FreightCost as [Cebu Header_FreightCost],&lt;/P&gt;&lt;P&gt;ValChargeSurfaceFee as [Cebu Header_ValChargeSurfaceFee],&lt;/P&gt;&lt;P&gt;TotalAmt as [Cebu Header_TotalAmt],&lt;/P&gt;&lt;P&gt;withWayBill as [Cebu Header_withWayBill],&lt;/P&gt;&lt;P&gt;withVat as [Cebu Header_withVat]&lt;/P&gt;&lt;P&gt;FROM Source&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Detail:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD BatchNo &amp;amp; '-' &amp;amp; TrxNo as [%Cebu_Key],&lt;/P&gt;&lt;P&gt;BatchNo &amp;amp; '-' &amp;amp; TrxNo as [Cebu Detail_Key],&lt;/P&gt;&lt;P&gt;BatchNo as [Cebu Detail_BatchNo],&lt;/P&gt;&lt;P&gt;TrxNo as [Cebu Detail_TrxNo],&lt;/P&gt;&lt;P&gt;GPInvc as [Cebu Detail_GPInvc],&lt;/P&gt;&lt;P&gt;FACInvc as [Cebu Detail_FACInvc],&lt;/P&gt;&lt;P&gt;Amount as [Cebu Detail_Amount],&lt;/P&gt;&lt;P&gt;Case as [Cebu Detail_Case],&lt;/P&gt;&lt;P&gt;Pack as [Cebu Detail_Pack],&lt;/P&gt;&lt;P&gt;Box as [Cebu Detail_Box],&lt;/P&gt;&lt;P&gt;Piece as [Cebu Detail_Piece],&lt;/P&gt;&lt;P&gt;CBM as [Cebu Detail_CBM]&lt;/P&gt;&lt;P&gt;FROM Source&lt;/P&gt;&lt;P style="font-weight: bold"&gt;//Join&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join([Cebu Detail])&lt;/P&gt;&lt;P&gt;LOAD * Resident [Cebu Header];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;[Temp Cebu]:&lt;/P&gt;&lt;P&gt;LOAD [%Cebu_Key],&lt;/P&gt;&lt;P&gt;[Cebu Header_Key],&lt;/P&gt;&lt;P&gt;//[Cebu Header_BatchNo],&lt;/P&gt;&lt;P&gt;//[Cebu Header_TrxNo],&lt;/P&gt;&lt;P&gt;[Cebu Header_Trucker],&lt;/P&gt;&lt;P&gt;[Cebu Header_DeclaredValue],&lt;/P&gt;&lt;P&gt;[Cebu Header_Customer],&lt;/P&gt;&lt;P&gt;[Cebu Header_Destination],&lt;/P&gt;&lt;P&gt;[Cebu Header_Case],&lt;/P&gt;&lt;P&gt;[Cebu Header_Pack],&lt;/P&gt;&lt;P&gt;[Cebu Header_Box],&lt;/P&gt;&lt;P&gt;[Cebu Header_Piece],&lt;/P&gt;&lt;P&gt;[Cebu Header_TotalCBM],&lt;/P&gt;&lt;P&gt;[Cebu Header_RatePerCBM],&lt;/P&gt;&lt;P&gt;[Cebu Header_OTD],&lt;/P&gt;&lt;P&gt;[Cebu Header_FreightCost],&lt;/P&gt;&lt;P&gt;[Cebu Header_ValChargeSurfaceFee],&lt;/P&gt;&lt;P&gt;[Cebu Header_TotalAmt],&lt;/P&gt;&lt;P&gt;[Cebu Header_withWayBill],&lt;/P&gt;&lt;P&gt;[Cebu Header_withVat],&lt;/P&gt;&lt;P&gt;[Cebu Detail_BatchNo],&lt;/P&gt;&lt;P&gt;[Cebu Detail_TrxNo],&lt;/P&gt;&lt;P&gt;[Cebu Detail_GPInvc],&lt;/P&gt;&lt;P&gt;[Cebu Detail_FACInvc],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Amount],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Case],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Pack],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Box],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Piece],&lt;/P&gt;&lt;P&gt;[Cebu Detail_CBM],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Key],&lt;/P&gt;&lt;P&gt;if([Cebu Header_Trucker]='ALJEM',1,0) as ALJEM_Flag,&lt;/P&gt;&lt;P&gt;if([Cebu Header_Trucker]='EXPLORER',1,0) as EXPLORER_Flag,&lt;/P&gt;&lt;P&gt;if([Cebu Header_Trucker]='F2',1,0) as F2_Flag,&lt;/P&gt;&lt;P&gt;if([Cebu Header_OTD]=0 or IsNull([Cebu Header_OTD]),1,0) as OTDFlag,&lt;/P&gt;&lt;P&gt;if(IsNull([Cebu Header_Key])=1,'is NULL',[Cebu Header_Key]) as [Cebu Header_KeyFlag]&lt;/P&gt;&lt;P&gt;Resident [Cebu Detail]&lt;/P&gt;&lt;P&gt;Where Trim([Cebu Detail_BatchNo])=Trim([Cebu Header_BatchNo]) AND Trim([Cebu Detail_TrxNo])=Trim([Cebu Header_TrxNo])&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;but qlikview show only those data that exists in both table..&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Mar 2011 04:53:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-29T04:53:35Z</dc:date>
    <item>
      <title>Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join/m-p/185976#M50277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Day!&lt;/P&gt;&lt;P&gt;I have a Detail and a Header Table. the problem is that a certain data exists in Detail Table but not in the Header Table.&lt;/P&gt;&lt;P&gt;what I want to do is to join those two tables and show the data that exists in the detail table but not in the header data..&lt;/P&gt;&lt;P&gt;here's my script:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Header:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Trim(BatchNo &amp;amp; '-' &amp;amp; TrxNo) as [%Cebu_Key],&lt;/P&gt;&lt;P&gt;Trim(BatchNo &amp;amp; '-' &amp;amp; TrxNo) as [Cebu Header_Key],&lt;/P&gt;&lt;P&gt;BatchNo as [Cebu Header_BatchNo],&lt;/P&gt;&lt;P&gt;TrxNo as [Cebu Header_TrxNo],&lt;/P&gt;&lt;P&gt;Trucker as [Cebu Header_Trucker],&lt;/P&gt;&lt;P&gt;DeclaredValue as [Cebu Header_DeclaredValue],&lt;/P&gt;&lt;P&gt;Customer as [Cebu Header_Customer],&lt;/P&gt;&lt;P&gt;Destination as [Cebu Header_Destination],&lt;/P&gt;&lt;P&gt;Case as [Cebu Header_Case],&lt;/P&gt;&lt;P&gt;Pack as [Cebu Header_Pack],&lt;/P&gt;&lt;P&gt;Box as [Cebu Header_Box],&lt;/P&gt;&lt;P&gt;Piece as [Cebu Header_Piece],&lt;/P&gt;&lt;P&gt;TotalCBM as [Cebu Header_TotalCBM],&lt;/P&gt;&lt;P&gt;RatePerCBM as [Cebu Header_RatePerCBM],&lt;/P&gt;&lt;P&gt;OTD as [Cebu Header_OTD],&lt;/P&gt;&lt;P&gt;FreightCost as [Cebu Header_FreightCost],&lt;/P&gt;&lt;P&gt;ValChargeSurfaceFee as [Cebu Header_ValChargeSurfaceFee],&lt;/P&gt;&lt;P&gt;TotalAmt as [Cebu Header_TotalAmt],&lt;/P&gt;&lt;P&gt;withWayBill as [Cebu Header_withWayBill],&lt;/P&gt;&lt;P&gt;withVat as [Cebu Header_withVat]&lt;/P&gt;&lt;P&gt;FROM Source&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Detail:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD BatchNo &amp;amp; '-' &amp;amp; TrxNo as [%Cebu_Key],&lt;/P&gt;&lt;P&gt;BatchNo &amp;amp; '-' &amp;amp; TrxNo as [Cebu Detail_Key],&lt;/P&gt;&lt;P&gt;BatchNo as [Cebu Detail_BatchNo],&lt;/P&gt;&lt;P&gt;TrxNo as [Cebu Detail_TrxNo],&lt;/P&gt;&lt;P&gt;GPInvc as [Cebu Detail_GPInvc],&lt;/P&gt;&lt;P&gt;FACInvc as [Cebu Detail_FACInvc],&lt;/P&gt;&lt;P&gt;Amount as [Cebu Detail_Amount],&lt;/P&gt;&lt;P&gt;Case as [Cebu Detail_Case],&lt;/P&gt;&lt;P&gt;Pack as [Cebu Detail_Pack],&lt;/P&gt;&lt;P&gt;Box as [Cebu Detail_Box],&lt;/P&gt;&lt;P&gt;Piece as [Cebu Detail_Piece],&lt;/P&gt;&lt;P&gt;CBM as [Cebu Detail_CBM]&lt;/P&gt;&lt;P&gt;FROM Source&lt;/P&gt;&lt;P style="font-weight: bold"&gt;//Join&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join([Cebu Detail])&lt;/P&gt;&lt;P&gt;LOAD * Resident [Cebu Header];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;[Temp Cebu]:&lt;/P&gt;&lt;P&gt;LOAD [%Cebu_Key],&lt;/P&gt;&lt;P&gt;[Cebu Header_Key],&lt;/P&gt;&lt;P&gt;//[Cebu Header_BatchNo],&lt;/P&gt;&lt;P&gt;//[Cebu Header_TrxNo],&lt;/P&gt;&lt;P&gt;[Cebu Header_Trucker],&lt;/P&gt;&lt;P&gt;[Cebu Header_DeclaredValue],&lt;/P&gt;&lt;P&gt;[Cebu Header_Customer],&lt;/P&gt;&lt;P&gt;[Cebu Header_Destination],&lt;/P&gt;&lt;P&gt;[Cebu Header_Case],&lt;/P&gt;&lt;P&gt;[Cebu Header_Pack],&lt;/P&gt;&lt;P&gt;[Cebu Header_Box],&lt;/P&gt;&lt;P&gt;[Cebu Header_Piece],&lt;/P&gt;&lt;P&gt;[Cebu Header_TotalCBM],&lt;/P&gt;&lt;P&gt;[Cebu Header_RatePerCBM],&lt;/P&gt;&lt;P&gt;[Cebu Header_OTD],&lt;/P&gt;&lt;P&gt;[Cebu Header_FreightCost],&lt;/P&gt;&lt;P&gt;[Cebu Header_ValChargeSurfaceFee],&lt;/P&gt;&lt;P&gt;[Cebu Header_TotalAmt],&lt;/P&gt;&lt;P&gt;[Cebu Header_withWayBill],&lt;/P&gt;&lt;P&gt;[Cebu Header_withVat],&lt;/P&gt;&lt;P&gt;[Cebu Detail_BatchNo],&lt;/P&gt;&lt;P&gt;[Cebu Detail_TrxNo],&lt;/P&gt;&lt;P&gt;[Cebu Detail_GPInvc],&lt;/P&gt;&lt;P&gt;[Cebu Detail_FACInvc],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Amount],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Case],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Pack],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Box],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Piece],&lt;/P&gt;&lt;P&gt;[Cebu Detail_CBM],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Key],&lt;/P&gt;&lt;P&gt;if([Cebu Header_Trucker]='ALJEM',1,0) as ALJEM_Flag,&lt;/P&gt;&lt;P&gt;if([Cebu Header_Trucker]='EXPLORER',1,0) as EXPLORER_Flag,&lt;/P&gt;&lt;P&gt;if([Cebu Header_Trucker]='F2',1,0) as F2_Flag,&lt;/P&gt;&lt;P&gt;if([Cebu Header_OTD]=0 or IsNull([Cebu Header_OTD]),1,0) as OTDFlag,&lt;/P&gt;&lt;P&gt;if(IsNull([Cebu Header_Key])=1,'is NULL',[Cebu Header_Key]) as [Cebu Header_KeyFlag]&lt;/P&gt;&lt;P&gt;Resident [Cebu Detail]&lt;/P&gt;&lt;P&gt;Where Trim([Cebu Detail_BatchNo])=Trim([Cebu Header_BatchNo]) AND Trim([Cebu Detail_TrxNo])=Trim([Cebu Header_TrxNo])&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;but qlikview show only those data that exists in both table..&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 04:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join/m-p/185976#M50277</guid>
      <dc:creator />
      <dc:date>2011-03-29T04:53:35Z</dc:date>
    </item>
    <item>
      <title>Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join/m-p/185977#M50278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join([Cebu Detail])&lt;/P&gt;&lt;P&gt;LOAD * Resident [Cebu Header]&lt;/P&gt;&lt;P&gt;Where not Exists([Cebu Header_BatchNo],[Cebu Header_TrxNo]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Temp Cebu]:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;[%Cebu_Key],&lt;/P&gt;&lt;P&gt;if(IsNull([Cebu Header_Key])=-1,'NULL',[Cebu Header_Key]) as [Cebu Header_Key],&lt;/P&gt;&lt;P&gt;[Cebu Header_BatchNo],&lt;/P&gt;&lt;P&gt;[Cebu Header_TrxNo],&lt;/P&gt;&lt;P&gt;[Cebu Header_Trucker],&lt;/P&gt;&lt;P&gt;[Cebu Header_DeclaredValue],&lt;/P&gt;&lt;P&gt;[Cebu Header_Customer],&lt;/P&gt;&lt;P&gt;[Cebu Header_Destination],&lt;/P&gt;&lt;P&gt;[Cebu Header_Case],&lt;/P&gt;&lt;P&gt;[Cebu Header_Pack],&lt;/P&gt;&lt;P&gt;[Cebu Header_Box],&lt;/P&gt;&lt;P&gt;[Cebu Header_Piece],&lt;/P&gt;&lt;P&gt;[Cebu Header_TotalCBM],&lt;/P&gt;&lt;P&gt;[Cebu Header_RatePerCBM],&lt;/P&gt;&lt;P&gt;[Cebu Header_OTD],&lt;/P&gt;&lt;P&gt;[Cebu Header_FreightCost],&lt;/P&gt;&lt;P&gt;[Cebu Header_ValChargeSurfaceFee],&lt;/P&gt;&lt;P&gt;[Cebu Header_TotalAmt],&lt;/P&gt;&lt;P&gt;[Cebu Header_withWayBill],&lt;/P&gt;&lt;P&gt;[Cebu Header_withVat],&lt;/P&gt;&lt;P&gt;[Cebu Detail_BatchNo],&lt;/P&gt;&lt;P&gt;[Cebu Detail_TrxNo],&lt;/P&gt;&lt;P&gt;[Cebu Detail_GPInvc] as [Invoice Number],&lt;/P&gt;&lt;P&gt;[Cebu Detail_FACInvc],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Amount],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Case],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Pack],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Box],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Piece],&lt;/P&gt;&lt;P&gt;[Cebu Detail_CBM],&lt;/P&gt;&lt;P&gt;[Cebu Detail_Key],&lt;/P&gt;&lt;P&gt;if([Cebu Header_Trucker]='ALJEM',1,0) as ALJEM_Flag,&lt;/P&gt;&lt;P&gt;if([Cebu Header_Trucker]='EXPLORER',1,0) as EXPLORER_Flag,&lt;/P&gt;&lt;P&gt;if([Cebu Header_Trucker]='F2',1,0) as F2_Flag,&lt;/P&gt;&lt;P&gt;if([Cebu Header_OTD]=0 or IsNull([Cebu Header_OTD]),1,0) as OTDFlag&lt;/P&gt;&lt;P&gt;Resident [Cebu Detail]&lt;/P&gt;&lt;P&gt;Where Trim([Cebu Header_BatchNo])=Trim([Cebu Detail_BatchNo]) AND Trim([Cebu Header_TrxNo])=Trim([Cebu Detail_TrxNo])&lt;/P&gt;&lt;P&gt;OR [Cebu Detail_Key]&amp;lt;&amp;gt;[Cebu Header_Key];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Fields [Cebu Detail_Key],[Cebu Header_Key];&lt;/P&gt;&lt;P&gt;DROP Tables [Cebu Detail],[Cebu Header];&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 06:20:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join/m-p/185977#M50278</guid>
      <dc:creator />
      <dc:date>2011-03-29T06:20:39Z</dc:date>
    </item>
    <item>
      <title>Left Join</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join/m-p/185978#M50279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;my analysis from your problem that you want to join header with detail, and only to show data from detail only?&lt;/P&gt;&lt;P&gt;if you wanna do that, you put right join, not left join.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 06:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join/m-p/185978#M50279</guid>
      <dc:creator>marcohadiyanto</dc:creator>
      <dc:date>2011-03-29T06:22:23Z</dc:date>
    </item>
  </channel>
</rss>

