<?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 Missing values in join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Missing-values-in-join/m-p/143845#M22962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have got an application where invoices are joined with contracts based on a contractnumber. Some of the contractnumbers in our invoices appaer to be missing from the contracttable. This shouldn't be possible.. We want to retrieve this contractnumbers. I can see the missing contractnumbers from the contracttable because they are represented by a NULL ('-') symbol in the main table on the same row as the contractnr from the invoice but I cannot select this NULL values.&lt;/P&gt;&lt;P&gt;Is there an easy way to replace this NULL values with a surrogat value to make selection possible? This way we can export the missing numbers at once or give the missing contracts a status. I have tried NULLASVALUE but this does not seem to work. Maybe because it is not a NULL value in a table but a missing link between two tables..&lt;/P&gt;&lt;P&gt;We bumped into this problem by accident, it would be great if we can build in a generic solution to check this kind of abnormalities..&lt;/P&gt;&lt;P&gt;Hope you can help!&lt;/P&gt;&lt;P&gt;Regards, Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2009 21:22:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-11T21:22:45Z</dc:date>
    <item>
      <title>Missing values in join</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-in-join/m-p/143845#M22962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have got an application where invoices are joined with contracts based on a contractnumber. Some of the contractnumbers in our invoices appaer to be missing from the contracttable. This shouldn't be possible.. We want to retrieve this contractnumbers. I can see the missing contractnumbers from the contracttable because they are represented by a NULL ('-') symbol in the main table on the same row as the contractnr from the invoice but I cannot select this NULL values.&lt;/P&gt;&lt;P&gt;Is there an easy way to replace this NULL values with a surrogat value to make selection possible? This way we can export the missing numbers at once or give the missing contracts a status. I have tried NULLASVALUE but this does not seem to work. Maybe because it is not a NULL value in a table but a missing link between two tables..&lt;/P&gt;&lt;P&gt;We bumped into this problem by accident, it would be great if we can build in a generic solution to check this kind of abnormalities..&lt;/P&gt;&lt;P&gt;Hope you can help!&lt;/P&gt;&lt;P&gt;Regards, Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 21:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-in-join/m-p/143845#M22962</guid>
      <dc:creator />
      <dc:date>2009-05-11T21:22:45Z</dc:date>
    </item>
    <item>
      <title>Missing values in join</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-in-join/m-p/143846#M22963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your load, you could set the Null values to something else.&lt;/P&gt;&lt;P&gt;Oracle syntax:&lt;/P&gt;&lt;P&gt;NVL(field_name, 'Missing') As field_name&lt;/P&gt;&lt;P&gt;T SQL&lt;/P&gt;&lt;P&gt;IsNull(field_name, 'Missing') As field_name&lt;/P&gt;&lt;P&gt;This will need to be handled on a field by field basis. I don't know if there is a good way to handle this across your whole application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 21:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-in-join/m-p/143846#M22963</guid>
      <dc:creator />
      <dc:date>2009-05-11T21:32:01Z</dc:date>
    </item>
    <item>
      <title>Missing values in join</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-in-join/m-p/143847#M22964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are two approaches, using "Customer" as the missing field.&lt;/P&gt;&lt;P&gt;Assigning a special value to the missing fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;RIGHT JOIN LOAD DISTINCT&lt;BR /&gt; *,&lt;BR /&gt; if(len(Customer) = 0, '*Missing*', Customer) as CustomerTemp&lt;BR /&gt;RESIDENT data;&lt;BR /&gt;DROP FIELD Customer;&lt;BR /&gt;RENAME FIELD CustomerTemp TO Customer;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Creating a new flag field to identify missings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;RIGHT JOIN LOAD DISTINCT&lt;BR /&gt; *,&lt;BR /&gt; if(len(Customer) = 0, 'Y') as "Missing Customer"&lt;BR /&gt;RESIDENT data&lt;BR /&gt;;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 02:21:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-in-join/m-p/143847#M22964</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-05-12T02:21:16Z</dc:date>
    </item>
    <item>
      <title>Missing values in join</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-in-join/m-p/143848#M22965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks NMiller and Rob for your replies!&lt;/P&gt;&lt;P&gt;Using a RIGHT JOIN is the only possibility i guess.. This way tagging the missing field in the script is possible.&lt;/P&gt;&lt;P&gt;Regards, Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 12:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-in-join/m-p/143848#M22965</guid>
      <dc:creator />
      <dc:date>2009-05-12T12:55:19Z</dc:date>
    </item>
  </channel>
</rss>

