<?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: Situation when I get A primary Key, instead of Key or Perfect Key. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421195#M800694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's basically what I tried to express in my previous post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key - Keys are NOT unique or some records show NULL&lt;/P&gt;&lt;P&gt;Primary key - Subset ratio is less than 100% AND all records show unique values (i.e. also no NULL)&lt;/P&gt;&lt;P&gt;Perfect key - subset ratio is 100% AND all records show unique values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subset ratio is the share of symbols used in the table compared against all symbols of the key field (looking at all tables)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Nov 2017 15:41:57 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-11-20T15:41:57Z</dc:date>
    <item>
      <title>Situation when I get A primary Key, instead of Key or Perfect Key.</title>
      <link>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421188#M800687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hello,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I was trying to learn about these concepts in Qlikview, and found some posts on forum, than tried to recreate it myself, and I can make a key to be Primary Key and show it when I hover over in Table Viewer.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please see the attached QVW.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I made a table, where I am missing one key field, it is NULL (with some resident load conversion from empty string to null).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In table viewer it shows for the field InvoiceID from Invoices Table as KEY&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Some sources say that KEY is not unique and appear in multiple rows (which I don't have in my example data). I think it should be Primary Key.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can someone explain, why is it KEY and not a Primary Key?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421188#M800687</guid>
      <dc:creator>retko1985</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Situation when I get A primary Key, instead of Key or Perfect Key.</title>
      <link>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421189#M800688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it follows this definition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0 0 11px;"&gt;A table primary key’s main features are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;It must contain a unique value for each row of data.&lt;/LI&gt;&lt;LI&gt;It cannot contain null values.&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin: 0 0 5px;"&gt;&lt;/P&gt;&lt;P style="margin: 0 0 5px;"&gt;A table's key field is in addition a perfect key if the table field values contain all symbol table values of the key field.&lt;/P&gt;&lt;P style="margin: 0 0 5px;"&gt;&lt;/P&gt;&lt;P style="margin: 0 0 5px;"&gt;Note that the perfect / primary key label is specific to the table when hovering over the column in table view.&lt;/P&gt;&lt;P style="margin: 0 0 5px;"&gt;&lt;/P&gt;&lt;P style="margin: 0 0 5px;"&gt;edit: not sure if this definition has changed over time with regard to how Qlik uses the labels&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Nov 2017 21:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421189#M800688</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-11-19T21:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Situation when I get A primary Key, instead of Key or Perfect Key.</title>
      <link>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421190#M800689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is quite confusing. I am able to get KEY or PERFECT KEY, but not the PRIMARY KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made it similar as you said, filling the null. I also changed keys so I will not have the perfect sequence (some sources say that perfect key is only for perfect sequence using autonumber). And I still see the Perfect key, even though I did not use autonumber, and I don't have the perfect sequence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183880_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/183893_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This probably doesn't matter much. I just wanted to know how it works in Qlikview....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if someone can achieve a PRIMARY KEY label on some example, please post. &lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 11:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421190#M800689</guid>
      <dc:creator>retko1985</dc:creator>
      <dc:date>2017-11-20T11:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Situation when I get A primary Key, instead of Key or Perfect Key.</title>
      <link>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421191#M800690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Retko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most of the time it is not possible to achieve a perfect primary Key, only think you have to make sure is the the master table should have all the key value present with in with respect to other tables it is connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 11:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421191#M800690</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2017-11-20T11:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Situation when I get A primary Key, instead of Key or Perfect Key.</title>
      <link>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421192#M800691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having perfect key is not depended on sequence or Autonumber. &lt;/P&gt;&lt;P&gt;If your master table and the other supporting table have exactly same unique key values then its subset ration becomes 100% and it will become a perfect key.&lt;/P&gt;&lt;P&gt;Correct me guys if i am wrong &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 11:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421192#M800691</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2017-11-20T11:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Situation when I get A primary Key, instead of Key or Perfect Key.</title>
      <link>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421193#M800692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just remove the line with the NULL in table Invoices and add a line with a new InvoiceID in InvoiceDetails.&lt;/P&gt;&lt;P&gt;This should make your InvoiceID in Invoices a Primary Key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 12:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421193#M800692</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-11-20T12:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Situation when I get A primary Key, instead of Key or Perfect Key.</title>
      <link>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421194#M800693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I guess this is should be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perfect key - subset ration is 100% AND all keys are unique.&lt;/P&gt;&lt;P&gt;Key - Keys are NOT unique.&lt;/P&gt;&lt;P&gt;Primary key - Subset ration is less than 100% AND all keys are unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 15:11:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421194#M800693</guid>
      <dc:creator>retko1985</dc:creator>
      <dc:date>2017-11-20T15:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Situation when I get A primary Key, instead of Key or Perfect Key.</title>
      <link>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421195#M800694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's basically what I tried to express in my previous post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key - Keys are NOT unique or some records show NULL&lt;/P&gt;&lt;P&gt;Primary key - Subset ratio is less than 100% AND all records show unique values (i.e. also no NULL)&lt;/P&gt;&lt;P&gt;Perfect key - subset ratio is 100% AND all records show unique values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subset ratio is the share of symbols used in the table compared against all symbols of the key field (looking at all tables)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 15:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421195#M800694</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-11-20T15:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Situation when I get A primary Key, instead of Key or Perfect Key.</title>
      <link>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421196#M800695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, thank you for detailed clarification..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So maybe for the next generations &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 15:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421196#M800695</guid>
      <dc:creator>retko1985</dc:creator>
      <dc:date>2017-11-20T15:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Situation when I get A primary Key, instead of Key or Perfect Key.</title>
      <link>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421197#M800696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/check.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 13:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Situation-when-I-get-A-primary-Key-instead-of-Key-or-Perfect-Key/m-p/1421197#M800696</guid>
      <dc:creator>ysj</dc:creator>
      <dc:date>2018-01-22T13:50:51Z</dc:date>
    </item>
  </channel>
</rss>

