<?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: subset ratio in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/subset-ratio/m-p/1374873#M800449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Please find below information:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Information density of the field, which indicates the percentage of rows that &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 10.0pt; font-family: 'inherit',serif; font-weight: inherit;"&gt;contain a non-null value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Subset ratio, which shows the percentage of all distinct values for a field in the&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;table compared to all the distinct values for that field in the entire data model. It is&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;only relevant for key fields since they are present in multiple tables and do not all&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;share the same value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Subset ratios can be used to easily spot problems in key field&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;associations.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For example, when the combined total of subset ratios for multiple&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;tables is 100 percent, this may indicate that there are no matching keys between&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;these tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style=": ; color: #3d3d3d; font-style: inherit; font-size: 10.0pt; font-family: 'inherit',serif; text-decoration: underline;"&gt;REF: QlikView 11 For Developers..&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style=": ; color: #3d3d3d; font-size: 10.0pt; font-family: 'inherit',serif; text-decoration: underline;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 10.0pt; font-family: 'inherit',serif;"&gt;Let me give you simple example&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style=": ; color: #3d3d3d; font-size: 10.0pt; font-family: 'inherit',serif; text-decoration: underline;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Sales:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Load * Inline&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Customer, Sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; A, 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; B, 200&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; D, 300&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Customer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Load * Inline&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Customer&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; A&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; B&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; C&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; D&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;If you write above sample script and will check the Table (CTRL + T), you will find two tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Sales and Customers&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&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;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Now if you change the script for table Customer like below..&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Customer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Load * Inline&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Customer&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; A&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; B&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; C&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; D&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Where Exists (Customer);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;If will not load the Customer C as there are no sales data for the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Now check the Subset Ratio. It will be 100%.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;If subset ratio is less than 100%, the key is called as Primary Key&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;but for 100% it is called as Perfect Key.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Information density:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="background: white; border: none;" width="0"&gt;&lt;THEAD&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; background: #6690BC; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;STRONG style="color: white; font-size: 10.0pt; font-family: 'inherit',serif;"&gt;country&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; background: #6690BC; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;STRONG style="color: white; font-size: 10.0pt; font-family: 'inherit',serif;"&gt;code&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit',serif; color: #3d3d3d;"&gt;Afghanistan&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit',serif; color: #3d3d3d;"&gt;AF&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit',serif; color: #3d3d3d;"&gt;Albania&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit',serif; color: #3d3d3d;"&gt;Algeria&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit',serif; color: #3d3d3d;"&gt;DZ&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;After loading the above records, go to the table viewer section (CTRL+t)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 10.0pt; font-family: 'inherit',serif;"&gt;mouse over on "country" field,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; you will see Information density is 100%&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 10.0pt; font-family: 'inherit',serif;"&gt;Now mouse over on "code" field,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; you will see Information density is less than 100% i.e 67%&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; background-position: initial;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;It means that, code field contains a null value in 2nd row that's why it is showing Information density is 67%&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: #3d3d3d;"&gt;Check for Information Density and Subset Ratio: Always perform high level integrity check on your data model. You can see Information Density and Subset Ratio properties in the Table Viewer (Ctrl + T) by hovering on the fields. Investigate wherever Information Density is less than 100% and inform the Architect about the potential issue(s) with the NULL values. I would always check for Subset Ratio whenever I perform a QlikView Join. This way you know how many key field distinct values are associated to other table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 10.0pt; font-family: 'inherit',serif;"&gt;Definitions of Information Density and Subset Ratio (Source – Reference Guide):&lt;/STRONG&gt;&lt;/P&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; color: #3d3d3d;"&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;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; color: #3d3d3d;"&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;/SPAN&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Information density on keyfields should be 100%, meaning there are no records with a blank in this field&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;- Subset ratio should also ideally be 100%. If it is less, there might be records in the data_model which cannot be properly linked to.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;- Keys should always be "Primary" or "Perfect", both of which means the keyfield uniquely identifies each single record.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;lt;=&amp;gt; One thing that is at the root of all trouble in our QlikView_environment is that there are maybe two dozen tables we draw from a database and we need to use a nr. of different keys because, quite often, two or three tables can be linked using one keyfield - but in another table, that field is not present.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;I know that is a fundamental issue in database_design and whoever made that database should have thought of it, but that doesn't help us ...&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;The issue is, none of the original designers of the database we use is here anymore, there is no documentation whatsoever and no one knows how to approach it for any changes &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="padding: 1.0pt 0 1.0pt 0;"&gt;---&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;hose things we can identify from ur data model table,those are created automatically based on ur data source (information density) &amp;amp;how u define ur keys(subset ration).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;How do we test the datamodel with help of subset ratio and information density.---there is no way to test,but u can find how much correctly u define ur keys (but it not always right,means don't expect 100% ratio as correct) from data model by looking those percentage&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jan 2018 13:46:37 GMT</pubDate>
    <dc:creator>ysj</dc:creator>
    <dc:date>2018-01-22T13:46:37Z</dc:date>
    <item>
      <title>subset ratio</title>
      <link>https://community.qlik.com/t5/QlikView/subset-ratio/m-p/1374871#M800447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How to achieve 100% subset ratio for data model ? what are the tips for the same ?&lt;SPAN style="font-size: 10pt;"&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/subset-ratio/m-p/1374871#M800447</guid>
      <dc:creator>dhavalvyas</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: subset ratio</title>
      <link>https://community.qlik.com/t5/QlikView/subset-ratio/m-p/1374872#M800448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent Example is there &lt;A href="https://community.qlik.com/thread/107703"&gt;information density and subset ratio? What is the use of this?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 05:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subset-ratio/m-p/1374872#M800448</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-11-27T05:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: subset ratio</title>
      <link>https://community.qlik.com/t5/QlikView/subset-ratio/m-p/1374873#M800449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Please find below information:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Information density of the field, which indicates the percentage of rows that &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 10.0pt; font-family: 'inherit',serif; font-weight: inherit;"&gt;contain a non-null value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Subset ratio, which shows the percentage of all distinct values for a field in the&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;table compared to all the distinct values for that field in the entire data model. It is&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;only relevant for key fields since they are present in multiple tables and do not all&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;share the same value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Subset ratios can be used to easily spot problems in key field&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;associations.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For example, when the combined total of subset ratios for multiple&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;tables is 100 percent, this may indicate that there are no matching keys between&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;these tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style=": ; color: #3d3d3d; font-style: inherit; font-size: 10.0pt; font-family: 'inherit',serif; text-decoration: underline;"&gt;REF: QlikView 11 For Developers..&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style=": ; color: #3d3d3d; font-size: 10.0pt; font-family: 'inherit',serif; text-decoration: underline;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 10.0pt; font-family: 'inherit',serif;"&gt;Let me give you simple example&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style=": ; color: #3d3d3d; font-size: 10.0pt; font-family: 'inherit',serif; text-decoration: underline;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Sales:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Load * Inline&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Customer, Sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; A, 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; B, 200&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; D, 300&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Customer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Load * Inline&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Customer&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; A&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; B&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; C&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; D&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;If you write above sample script and will check the Table (CTRL + T), you will find two tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Sales and Customers&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&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;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Now if you change the script for table Customer like below..&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Customer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Load * Inline&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Customer&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; A&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; B&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; C&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; D&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Where Exists (Customer);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;If will not load the Customer C as there are no sales data for the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Now check the Subset Ratio. It will be 100%.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;If subset ratio is less than 100%, the key is called as Primary Key&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;but for 100% it is called as Perfect Key.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Information density:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="background: white; border: none;" width="0"&gt;&lt;THEAD&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; background: #6690BC; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;STRONG style="color: white; font-size: 10.0pt; font-family: 'inherit',serif;"&gt;country&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; background: #6690BC; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;STRONG style="color: white; font-size: 10.0pt; font-family: 'inherit',serif;"&gt;code&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit',serif; color: #3d3d3d;"&gt;Afghanistan&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit',serif; color: #3d3d3d;"&gt;AF&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit',serif; color: #3d3d3d;"&gt;Albania&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit',serif; color: #3d3d3d;"&gt;Algeria&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit',serif; color: #3d3d3d;"&gt;DZ&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;After loading the above records, go to the table viewer section (CTRL+t)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 10.0pt; font-family: 'inherit',serif;"&gt;mouse over on "country" field,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; you will see Information density is 100%&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 10.0pt; font-family: 'inherit',serif;"&gt;Now mouse over on "code" field,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; you will see Information density is less than 100% i.e 67%&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; background-position: initial;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;It means that, code field contains a null value in 2nd row that's why it is showing Information density is 67%&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: #3d3d3d;"&gt;Check for Information Density and Subset Ratio: Always perform high level integrity check on your data model. You can see Information Density and Subset Ratio properties in the Table Viewer (Ctrl + T) by hovering on the fields. Investigate wherever Information Density is less than 100% and inform the Architect about the potential issue(s) with the NULL values. I would always check for Subset Ratio whenever I perform a QlikView Join. This way you know how many key field distinct values are associated to other table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 10.0pt; font-family: 'inherit',serif;"&gt;Definitions of Information Density and Subset Ratio (Source – Reference Guide):&lt;/STRONG&gt;&lt;/P&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; color: #3d3d3d;"&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;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; color: #3d3d3d;"&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;/SPAN&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Information density on keyfields should be 100%, meaning there are no records with a blank in this field&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;- Subset ratio should also ideally be 100%. If it is less, there might be records in the data_model which cannot be properly linked to.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;- Keys should always be "Primary" or "Perfect", both of which means the keyfield uniquely identifies each single record.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&amp;lt;=&amp;gt; One thing that is at the root of all trouble in our QlikView_environment is that there are maybe two dozen tables we draw from a database and we need to use a nr. of different keys because, quite often, two or three tables can be linked using one keyfield - but in another table, that field is not present.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;I know that is a fundamental issue in database_design and whoever made that database should have thought of it, but that doesn't help us ...&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;The issue is, none of the original designers of the database we use is here anymore, there is no documentation whatsoever and no one knows how to approach it for any changes &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="padding: 1.0pt 0 1.0pt 0;"&gt;---&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;hose things we can identify from ur data model table,those are created automatically based on ur data source (information density) &amp;amp;how u define ur keys(subset ration).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;How do we test the datamodel with help of subset ratio and information density.---there is no way to test,but u can find how much correctly u define ur keys (but it not always right,means don't expect 100% ratio as correct) from data model by looking those percentage&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 13:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subset-ratio/m-p/1374873#M800449</guid>
      <dc:creator>ysj</dc:creator>
      <dc:date>2018-01-22T13:46:37Z</dc:date>
    </item>
  </channel>
</rss>

