<?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: What is Perfect Key &amp; Information Density? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-is-Perfect-Key-Information-Density/m-p/399717#M1156429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Swuehl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for Example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shantanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2013 10:20:22 GMT</pubDate>
    <dc:creator>shantanu73</dc:creator>
    <dc:date>2013-02-05T10:20:22Z</dc:date>
    <item>
      <title>What is Perfect Key &amp; Information Density?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-Perfect-Key-Information-Density/m-p/399713#M1156425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Forums/Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am aware of synethic key, circular table, etc. But What is the Perfect Key &amp;amp; Information Density?&lt;/P&gt;&lt;P&gt;What is the difference between Perfect Key &amp;amp; Information Density?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can please any body can explain?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SRS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 12:52:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-Perfect-Key-Information-Density/m-p/399713#M1156425</guid>
      <dc:creator>shantanu73</dc:creator>
      <dc:date>2013-02-04T12:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: What is Perfect Key &amp; Information Density?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-Perfect-Key-Information-Density/m-p/399714#M1156426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both are information labels displayed in the table viewer when hovering over a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;From the HELP: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Information density&lt;/SPAN&gt; is the number of records that have values (i.e. not NULL) in this field as compared to the total number of records in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not 100% sure what a Perfect Key (I personally don't care about this label) is, check this thread for a recent discussion:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/230152#230152" title="http://community.qlik.com/message/230152#230152"&gt;http://community.qlik.com/message/230152#230152&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 13:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-Perfect-Key-Information-Density/m-p/399714#M1156426</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-02-04T13:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: What is Perfect Key &amp; Information Density?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-Perfect-Key-Information-Density/m-p/399715#M1156427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for response. But as per your explaintion I had created the Inline table and checked. It is always showing Inforamtion Density 100%. Following is the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Invoices2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[InvoiceID2, ClientID2&lt;BR /&gt;Inv001,CL0001&lt;BR /&gt;NULL,CL0002]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Can u pls explain me with example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Thanks in Advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Shantanu&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 06:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-Perfect-Key-Information-Density/m-p/399715#M1156427</guid>
      <dc:creator>shantanu73</dc:creator>
      <dc:date>2013-02-05T06:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: What is Perfect Key &amp; Information Density?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-Perfect-Key-Information-Density/m-p/399716#M1156428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you write 'NULL' as a value in an inline table, this is not NULL, it's just a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEST1:&lt;/P&gt;&lt;P&gt;LOAD recno() as RecID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(RAND() &amp;gt; 0.1, 1 ) as Value &lt;/P&gt;&lt;P&gt;AutoGenerate 100;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and check information density on field Value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 10:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-Perfect-Key-Information-Density/m-p/399716#M1156428</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-02-05T10:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: What is Perfect Key &amp; Information Density?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-Perfect-Key-Information-Density/m-p/399717#M1156429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Swuehl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for Example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shantanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 10:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-Perfect-Key-Information-Density/m-p/399717#M1156429</guid>
      <dc:creator>shantanu73</dc:creator>
      <dc:date>2013-02-05T10:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: What is Perfect Key &amp; Information Density?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-Perfect-Key-Information-Density/m-p/399718#M1156430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the Book QlikView 11 for Developers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The name of the field. Optionally, if the field is a key field, a qualifier is shown enclosed in square brackets. This qualifier indicates the following levels of key quality:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Perfect Key]&lt;/STRONG&gt; indicates that every row contains a key value, and that all of these key values are unique. At the same time, the field's subset ratio is 100 percent. This qualifier should be seen in dimension tables, where every key should uniquely identify a single record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Primary Key]&lt;/STRONG&gt; indicates that all key values are unique, but not every row contains a key value or the field's subset ratio is less&amp;nbsp; than 100 percent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Key]&lt;/STRONG&gt; indicates that the key is not unique. This qualifier is usually seen in fact tables, where the same dimension value may be associated with many different facts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Information density&lt;/STRONG&gt; of the field, which indicates the percentage of rows that contain a non-null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Subset ratio&lt;/STRONG&gt;, which shows the percentage of all distinct values for a field in the table compared to all the distinct values for that field in the entire data model. It is only relevant for key fields since they are present in multiple tables and do not all share the same value. Subset ratios can be used to easily spot problems in key field associations. For example, when the combined total of subset ratios for multiple tables is 100 percent, this may indicate that there are no matching keys between these tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tags&lt;/STRONG&gt;, which show the tags applied to the field. Some of these, such as tags that indicate if the field is a key field or tags indicating the data type of the field, are automatically generated. Other tags can be manually applied.&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 04:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-Perfect-Key-Information-Density/m-p/399718#M1156430</guid>
      <dc:creator />
      <dc:date>2014-11-04T04:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: What is Perfect Key &amp; Information Density?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-Perfect-Key-Information-Density/m-p/399719#M1156431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect Key Vs Primary key:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The [Perfect Key] is a bit more: it is a [Primary Key] (unique) with no "orphans".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me clarify this with 2 examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;InvoiceDetails:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;InvoiceID, InvoiceLine, ProductID, Quantity, Amount&lt;/P&gt;&lt;P&gt;Inv001,1,PR01,10,50&lt;/P&gt;&lt;P&gt;Inv001,2,PR02,10,40&lt;/P&gt;&lt;P&gt;Inv002,1,PR01,30,150&lt;/P&gt;&lt;P&gt;Inv002,2,PR03,10,800&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoices:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;InvoiceID, ClientID&lt;/P&gt;&lt;P&gt;Inv001,CL0001&lt;/P&gt;&lt;P&gt;Inv002,CL0002&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example, InvoiceID is &lt;STRONG&gt;[Key]&lt;/STRONG&gt; in InvoiceDetails and &lt;STRONG&gt;[Perfect Key]&lt;/STRONG&gt; in Invoices: it is unique and it has no orphans.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;InvoiceDetails:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;InvoiceID, InvoiceLine, ProductID, Quantity, Amount&lt;/P&gt;&lt;P&gt;Inv001,1,PR01,10,50&lt;/P&gt;&lt;P&gt;Inv001,2,PR02,10,40&lt;/P&gt;&lt;P&gt;Inv002,1,PR01,30,150&lt;/P&gt;&lt;P&gt;Inv002,2,PR03,10,800&lt;/P&gt;&lt;P&gt;Inv003,1,PR01,10,50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoices:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;InvoiceID, ClientID&lt;/P&gt;&lt;P&gt;Inv001,CL0001&lt;/P&gt;&lt;P&gt;Inv002,CL0002&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example, InvoiceID is &lt;STRONG&gt;[Key]&lt;/STRONG&gt; in InvoiceDetails and &lt;STRONG&gt;[Primary Key]&lt;/STRONG&gt; in Invoices. There is a value in InvoiceDetails, &lt;STRONG&gt;Inv003,&lt;/STRONG&gt; that does not find a corresponding value in the Invoices table. This is called a "orphan". For this reason&lt;SPAN style="text-decoration: underline;"&gt; InvoiceID is not anymore perfect, but it is still primary&lt;/SPAN&gt;, because it is unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you copy-paste the example you can verify it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1&gt;Information density and Subset Ratio: &lt;/H1&gt;&lt;P&gt;Information density of the field, which indicates the percentage of rows that contain a non-null value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subset ratio, which shows the percentage of all distinct values for a field in the&lt;/P&gt;&lt;P&gt;table compared to all the distinct values for that field in the entire data model. It is&lt;/P&gt;&lt;P&gt;only relevant for key fields since they are present in multiple tables and do not all&lt;/P&gt;&lt;P&gt;share the same value.&lt;/P&gt;&lt;P&gt;Subset ratios can be used to easily spot problems in key field&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;associations.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For example, when the combined total of subset ratios for multiple&lt;/P&gt;&lt;P&gt;tables is 100 percent, this may indicate that there are no matching keys between&lt;/P&gt;&lt;P&gt;these tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REF: QlikView 11 For Developers..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me give you simple example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Customer, Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp; A, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp; B, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp; D, 300&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Customer&lt;/P&gt;&lt;P&gt;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;&amp;nbsp; C&lt;/P&gt;&lt;P&gt;&amp;nbsp; D&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you write above sample script and will check the Table (CTRL + T), you will find two tables.&lt;/P&gt;&lt;P&gt;Sales and Customers&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; On Sales Table, if you hover the mouse on Customer field, you can see the Subset Ratio is 75% because there is not sales data for Customer C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you change the script for table Customer like below..&lt;/P&gt;&lt;P&gt;Customer:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Customer&lt;/P&gt;&lt;P&gt;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;&amp;nbsp; C&lt;/P&gt;&lt;P&gt;&amp;nbsp; D&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;Where Exists (Customer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If will not load the Customer C as there are no sales data for the same.&lt;/P&gt;&lt;P&gt;Now check the Subset Ratio. It will be 100%&lt;/P&gt;&lt;P&gt;Definitions of Information Density and Subset Ratio (Source – Reference Guide): &lt;/P&gt;&lt;P&gt;Information Density is the number of records that have values (i.e. not NULL) in this field as compared to the total number of records in the table.&lt;/P&gt;&lt;P&gt;Subset ratio is the number of distinct values of this field found in this table as compared to the total number of distinct values of this field (that is other tables as well).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Chinna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 05:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-Perfect-Key-Information-Density/m-p/399719#M1156431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-04T05:26:10Z</dc:date>
    </item>
  </channel>
</rss>

