<?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 Include the Null rows from from one table not matching another table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Include-the-Null-rows-from-from-one-table-not-matching-another/m-p/452420#M1159919</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;Here go's with my first post I'm a Tsql and Crystal reports developer by trade and now dipping my finger into the world of Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables 1st is goods receved 2nd is goods invoiced what I want to do is return all rows from the goods receved and any matched rows from goods invoiced if there is no goods invoiced I need to show the goods receved data I have tried to use left join a good friend has done some scripting for me and I have changed it slightly to see if I can get the missing data but didn't find the answer yet could any one point out where I'm going wrong please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance for the answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_Matched_GRNs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;GRN_Line,&lt;/P&gt;&lt;P&gt;sum(PRECEIPTD_QTYUOM_0) as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Received_Qty&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(vLiveLoadPath)PRECEIPTD.qvd&lt;/P&gt;&lt;P&gt;//&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;where PRECEIPTD_CPR_0 &amp;lt;&amp;gt;0&lt;/P&gt;&lt;P&gt;Group by GRN_Line;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;GRN_Line,&lt;/P&gt;&lt;P&gt;sum(PINVOICED_QTYUOM_0) as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Invoiced_Qty&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(vLiveLoadPath)PINVOICED.qvd&lt;/P&gt;&lt;P&gt;//&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;//where PINVOICED_TYPORI_0=2 //zero value and non stock invoices not relevant;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where GRN_Line&amp;lt;&amp;gt; Null()or PINVOICED_AMTNOTLIN_0 &amp;lt;&amp;gt;0 or PINVOICED_TYPORI_0=2 //zero value and non stock invoices not relevant;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group by GRN_Line;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Matched_GRNs:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;GRN_Line,&lt;/P&gt;&lt;P&gt;Invoiced_Qty,&lt;/P&gt;&lt;P&gt;Received_Qty,&lt;/P&gt;&lt;P&gt;if(Invoiced_Qty = 0,'Zero Value Invoice',if(Invoiced_Qty = Null(),'Not Invoiced',if(Invoiced_Qty &amp;lt;&amp;gt; 0 and Invoiced_Qty &amp;lt; Received_Qty,'Part Matched','Fully Matched')))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;as GRN_Matched //allow for multiple invoices for a GRN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//if(Invoiced_Qty = 0,'No Invoice',if(Invoiced_Qty &amp;lt;&amp;gt; 0 and Invoiced_Qty &amp;lt; Received_Qty,'Part Matched','Fully Matched'))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;as GRN_Matched //allow for multiple invoices for a GRN&lt;/P&gt;&lt;P&gt;Resident Temp_Matched_GRNs&lt;/P&gt;&lt;P&gt;where Received_Qty &amp;gt; 0; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Temp_Matched_GRNs;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2012 17:34:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-20T17:34:33Z</dc:date>
    <item>
      <title>Include the Null rows from from one table not matching another table</title>
      <link>https://community.qlik.com/t5/QlikView/Include-the-Null-rows-from-from-one-table-not-matching-another/m-p/452420#M1159919</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;Here go's with my first post I'm a Tsql and Crystal reports developer by trade and now dipping my finger into the world of Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables 1st is goods receved 2nd is goods invoiced what I want to do is return all rows from the goods receved and any matched rows from goods invoiced if there is no goods invoiced I need to show the goods receved data I have tried to use left join a good friend has done some scripting for me and I have changed it slightly to see if I can get the missing data but didn't find the answer yet could any one point out where I'm going wrong please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance for the answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_Matched_GRNs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;GRN_Line,&lt;/P&gt;&lt;P&gt;sum(PRECEIPTD_QTYUOM_0) as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Received_Qty&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(vLiveLoadPath)PRECEIPTD.qvd&lt;/P&gt;&lt;P&gt;//&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;where PRECEIPTD_CPR_0 &amp;lt;&amp;gt;0&lt;/P&gt;&lt;P&gt;Group by GRN_Line;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;GRN_Line,&lt;/P&gt;&lt;P&gt;sum(PINVOICED_QTYUOM_0) as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Invoiced_Qty&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(vLiveLoadPath)PINVOICED.qvd&lt;/P&gt;&lt;P&gt;//&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;//where PINVOICED_TYPORI_0=2 //zero value and non stock invoices not relevant;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where GRN_Line&amp;lt;&amp;gt; Null()or PINVOICED_AMTNOTLIN_0 &amp;lt;&amp;gt;0 or PINVOICED_TYPORI_0=2 //zero value and non stock invoices not relevant;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group by GRN_Line;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Matched_GRNs:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;GRN_Line,&lt;/P&gt;&lt;P&gt;Invoiced_Qty,&lt;/P&gt;&lt;P&gt;Received_Qty,&lt;/P&gt;&lt;P&gt;if(Invoiced_Qty = 0,'Zero Value Invoice',if(Invoiced_Qty = Null(),'Not Invoiced',if(Invoiced_Qty &amp;lt;&amp;gt; 0 and Invoiced_Qty &amp;lt; Received_Qty,'Part Matched','Fully Matched')))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;as GRN_Matched //allow for multiple invoices for a GRN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//if(Invoiced_Qty = 0,'No Invoice',if(Invoiced_Qty &amp;lt;&amp;gt; 0 and Invoiced_Qty &amp;lt; Received_Qty,'Part Matched','Fully Matched'))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;as GRN_Matched //allow for multiple invoices for a GRN&lt;/P&gt;&lt;P&gt;Resident Temp_Matched_GRNs&lt;/P&gt;&lt;P&gt;where Received_Qty &amp;gt; 0; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Temp_Matched_GRNs;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 17:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-the-Null-rows-from-from-one-table-not-matching-another/m-p/452420#M1159919</guid>
      <dc:creator />
      <dc:date>2012-11-20T17:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Include the Null rows from from one table not matching another table</title>
      <link>https://community.qlik.com/t5/QlikView/Include-the-Null-rows-from-from-one-table-not-matching-another/m-p/452421#M1159920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain what's wrong with your code? What is the actual result and what you expected it to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try changing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Invoiced_Qty = null(), .....&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(isnull(Invoiced_Qty), .....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 17:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-the-Null-rows-from-from-one-table-not-matching-another/m-p/452421#M1159920</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2012-11-22T17:18:10Z</dc:date>
    </item>
  </channel>
</rss>

