<?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 create multiable ranked keys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/create-multiable-ranked-keys/m-p/284259#M105638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, but its possible that in table 1 i have 2 keys and for table 2 only 1 key .. for the same item.&lt;/P&gt;&lt;P&gt;Those won't be linked with your solution. Because you assume that in both tables the same amount of keys are filled. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example on SAME ITEM and all keys are unique within the same table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table1&lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;key1 : filled&lt;/P&gt;&lt;P&gt;key2 : filled &lt;/P&gt;&lt;P&gt;key3 : NULL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 2&lt;/P&gt;&lt;P&gt;----------&lt;/P&gt;&lt;P&gt;key 1: filled&lt;/P&gt;&lt;P&gt;key 2 : NULL&lt;/P&gt;&lt;P&gt;key 3 : NULL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Dec 2011 10:37:11 GMT</pubDate>
    <dc:creator>amien</dc:creator>
    <dc:date>2011-12-08T10:37:11Z</dc:date>
    <item>
      <title>create multiable ranked keys</title>
      <link>https://community.qlik.com/t5/QlikView/create-multiable-ranked-keys/m-p/284257#M105636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have two tables. Each table contains 3 unique key fields to link both tables. Normally i would create a new key based on these 3 values. &lt;STRONG&gt;All 3 keys are unique keys&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only problem is, that for each row, not all 3 fields are filled. it possible that all 3 are filled, but not always.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, if would have 3 keys:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;key1, key2, key3 (most perfect link)&lt;/P&gt;&lt;P&gt;key1, key2 (good link)&lt;/P&gt;&lt;P&gt;key2, key 3 (good link)&lt;/P&gt;&lt;P&gt;key1, key 3 (good link)&lt;/P&gt;&lt;P&gt;key1 (worst link)&lt;/P&gt;&lt;P&gt;key2 (worst link)&lt;/P&gt;&lt;P&gt;key3 (worst link)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the first one should apply first, then the recond one etc. etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i achieve this in my load script?&lt;/P&gt;&lt;P&gt;in the end i also want to know, per row, on what level both tables are linked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 09:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-multiable-ranked-keys/m-p/284257#M105636</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2011-12-07T09:14:40Z</dc:date>
    </item>
    <item>
      <title>create multiable ranked keys</title>
      <link>https://community.qlik.com/t5/QlikView/create-multiable-ranked-keys/m-p/284258#M105637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(not isnull(key1) and not isnull(key2) and not isnull(key3),Key1|Key2,Key3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(not isnull(key1) and isnull(key2) and isnull(key3),Key2|Key3&amp;nbsp; etc.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Succes,&lt;/P&gt;&lt;P&gt;Halmar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 09:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-multiable-ranked-keys/m-p/284258#M105637</guid>
      <dc:creator />
      <dc:date>2011-12-08T09:41:18Z</dc:date>
    </item>
    <item>
      <title>create multiable ranked keys</title>
      <link>https://community.qlik.com/t5/QlikView/create-multiable-ranked-keys/m-p/284259#M105638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, but its possible that in table 1 i have 2 keys and for table 2 only 1 key .. for the same item.&lt;/P&gt;&lt;P&gt;Those won't be linked with your solution. Because you assume that in both tables the same amount of keys are filled. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example on SAME ITEM and all keys are unique within the same table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table1&lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;key1 : filled&lt;/P&gt;&lt;P&gt;key2 : filled &lt;/P&gt;&lt;P&gt;key3 : NULL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 2&lt;/P&gt;&lt;P&gt;----------&lt;/P&gt;&lt;P&gt;key 1: filled&lt;/P&gt;&lt;P&gt;key 2 : NULL&lt;/P&gt;&lt;P&gt;key 3 : NULL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 10:37:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-multiable-ranked-keys/m-p/284259#M105638</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2011-12-08T10:37:11Z</dc:date>
    </item>
  </channel>
</rss>

