<?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: Qlikview associations produce extra null rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-associations-produce-extra-null-rows/m-p/1435670#M812084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A Table Box shows you all possible combinations of values from the fields you added to the table box. In your case, two values from field&amp;nbsp; CountryID do not match any values in the other fields, so yes this is correct ouput.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should consider a Table Box as a combined set of Listboxes, not as an ordinary table. Many times it will produce weird output but if you keep in mlind that the idea behind a Table Box is simply "show all possible combinations of values from different fields", you will be able to explain why a Table Box does what it does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mostly use Table boxes for debugging associations, and for listing value combinations where NULL values don't matter or are to be expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want to see any NULL values, suppress them in all fields where they are improper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW a best practice in most documents is to reduce all dimension tables to those values that also occur in your fact tables. That would also solve your problem, but I'm not sure you want to go that far...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Sep 2017 15:39:07 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2017-09-28T15:39:07Z</dc:date>
    <item>
      <title>Qlikview associations produce extra null rows</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-associations-produce-extra-null-rows/m-p/1435669#M812083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! I'm just wondering if I'm doing something wrong, or if this is really how things are supposed to be in Qlikview.&lt;/P&gt;&lt;P&gt;When Qlikview Associates two tables based on a common field name, it seems to produce null rows in one of the tables if one table contains data in the associated field that is not present in the other table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a simple example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employees:&lt;BR /&gt; LOAD * INLINE [&lt;BR /&gt; EmployeeID, Name, CountryID&lt;BR /&gt; 1, Mike Tryson, USA&lt;BR /&gt; 2, Alan Trying, UK&lt;BR /&gt; 3, Tester Williams, USA&lt;BR /&gt; ];&lt;BR /&gt; &lt;BR /&gt; Countries:&lt;BR /&gt; LOAD * INLINE [&lt;BR /&gt; CountryID, CountryName&lt;BR /&gt; USA, United States of America&lt;BR /&gt; UK, United Kingdom&lt;BR /&gt; SWE, Sweden&lt;BR /&gt; NOR, Norway&lt;BR /&gt; ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resulting employees table, when viewed in a Table Box, looks something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; 1 | Mike Tryson&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | USA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; 2 | Alan Trying&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | UK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; 3 | Tester Williams | USA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;- | -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | SWE&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;- | -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | NOR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not too keen on having those last two null fields in the table. Now, I could of course check "Omit Rows Where Field is NULL" for the EmplyeeID field for this Table Box object, but is that the way one's supposed to do this? Am I doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really thankful for any help! QlikView is very nice and the learning curve isn't too steep, but sometimes I'm not sure I'm doing things right.&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/Qlikview-associations-produce-extra-null-rows/m-p/1435669#M812083</guid>
      <dc:creator>sir_ogrim</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview associations produce extra null rows</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-associations-produce-extra-null-rows/m-p/1435670#M812084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A Table Box shows you all possible combinations of values from the fields you added to the table box. In your case, two values from field&amp;nbsp; CountryID do not match any values in the other fields, so yes this is correct ouput.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should consider a Table Box as a combined set of Listboxes, not as an ordinary table. Many times it will produce weird output but if you keep in mlind that the idea behind a Table Box is simply "show all possible combinations of values from different fields", you will be able to explain why a Table Box does what it does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mostly use Table boxes for debugging associations, and for listing value combinations where NULL values don't matter or are to be expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want to see any NULL values, suppress them in all fields where they are improper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW a best practice in most documents is to reduce all dimension tables to those values that also occur in your fact tables. That would also solve your problem, but I'm not sure you want to go that far...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 15:39:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-associations-produce-extra-null-rows/m-p/1435670#M812084</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-09-28T15:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview associations produce extra null rows</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-associations-produce-extra-null-rows/m-p/1435671#M812085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To add onto what &lt;A href="https://community.qlik.com/qlik-users/3540"&gt;pcammaert&lt;/A&gt; was saying, if you modify your script slightly you can reduce your data appropriately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employees:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;EmployeeID, Name, CountryID&lt;/P&gt;&lt;P&gt;1, Mike Tryson, USA&lt;/P&gt;&lt;P&gt;2, Alan Trying, UK&lt;/P&gt;&lt;P&gt;3, Tester Williams, USA&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Countries:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Exists( CountryID )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;CountryID, CountryName&lt;/P&gt;&lt;P&gt;USA, United States of America&lt;/P&gt;&lt;P&gt;UK, United Kingdom&lt;/P&gt;&lt;P&gt;SWE, Sweden&lt;/P&gt;&lt;P&gt;NOR, Norway&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 19:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-associations-produce-extra-null-rows/m-p/1435671#M812085</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2017-09-28T19:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview associations produce extra null rows</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-associations-produce-extra-null-rows/m-p/1435672#M812086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Peter Cammaert&lt;/STRONG&gt;: Thank you for an amazingly clear and concise response. And also, thank you for even telling me more than I thought I needed to know! Reducing the dimensions table to the values that actually appear in the fact table is obvious now that you pointed it out, but I actually didn't think of that. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 06:30:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-associations-produce-extra-null-rows/m-p/1435672#M812086</guid>
      <dc:creator>sir_ogrim</dc:creator>
      <dc:date>2017-10-02T06:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview associations produce extra null rows</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-associations-produce-extra-null-rows/m-p/1435673#M812087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oscar Ortiz: Thank you! That was a really simple and useful function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 06:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-associations-produce-extra-null-rows/m-p/1435673#M812087</guid>
      <dc:creator>sir_ogrim</dc:creator>
      <dc:date>2017-10-02T06:33:05Z</dc:date>
    </item>
  </channel>
</rss>

