<?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: Replacing Null in Joining Key column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replacing-Null-in-Joining-Key-column/m-p/1086097#M361619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your original key column showing a string shows NULL for these records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you want to link them to which dimensional value then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can test for NULL or empty using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( Len(Trim(FIELD))=0, 'NULL', FIELD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you can replace NULL with an arbitrary value in your key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autonumber( If(Len(Trim(FIELD))=0, 'NULL', FIELD)) as KEY,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace the 'NULL' with the string you want to link in the dimensional table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2016 01:07:04 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-02-10T01:07:04Z</dc:date>
    <item>
      <title>Replacing Null in Joining Key column</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-Null-in-Joining-Key-column/m-p/1086096#M361618</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 have one Dimension table and other Fact table.&lt;/P&gt;&lt;P&gt;These two tables have a key column which is string type. I am using Autonumber() to replace the string with unique key values in both these tables and joining them with the new Autonumber() column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I have noticed that the Fact table data has records with Null values. The Autonumber() is not generating any key values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help on how to replace these null values in the key column and make proper joins?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 00:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-Null-in-Joining-Key-column/m-p/1086096#M361618</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2016-02-10T00:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Null in Joining Key column</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-Null-in-Joining-Key-column/m-p/1086097#M361619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your original key column showing a string shows NULL for these records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you want to link them to which dimensional value then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can test for NULL or empty using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( Len(Trim(FIELD))=0, 'NULL', FIELD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you can replace NULL with an arbitrary value in your key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autonumber( If(Len(Trim(FIELD))=0, 'NULL', FIELD)) as KEY,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace the 'NULL' with the string you want to link in the dimensional table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 01:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-Null-in-Joining-Key-column/m-p/1086097#M361619</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-10T01:07:04Z</dc:date>
    </item>
  </channel>
</rss>

