<?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: Missing values in data model in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Missing-values-in-data-model/m-p/789778#M279277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For simplicity's sake:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 288px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="72"&gt;Customer&lt;/TD&gt;&lt;TD class="xl65" width="72"&gt;Origin&lt;/TD&gt;&lt;TD class="xl65" width="72"&gt;Dept&lt;/TD&gt;&lt;TD class="xl65" width="72"&gt;Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;A&lt;/TD&gt;&lt;TD class="xl63"&gt;Clothing&lt;/TD&gt;&lt;TD class="xl64"&gt;790&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;B&lt;/TD&gt;&lt;TD class="xl63"&gt;Shoes&lt;/TD&gt;&lt;TD class="xl64"&gt;4,697&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dept:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 144px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="72"&gt;Dept&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="72"&gt;Mall&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="19" style="border-top: none;"&gt;Clothing&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;NY&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Dec 2014 15:01:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-25T15:01:23Z</dc:date>
    <item>
      <title>Missing values in data model</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-in-data-model/m-p/789776#M279275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data model built in the following manner:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/74190_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;I've encountered a problem due to the fact that not all Dept. values in 'Sales' have a corresponding value in 'Dept.', for example: there's no entry for department 'Shoes' in table 'Dept', although 'Shoes' exists in table 'Sales'. This creates a problem when using an expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( { 1 &amp;lt;Mall=P()&amp;gt; } Sales)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/74184_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Departments with no 'Mall' are not counted in the sum..in general, how can one work around this problem? I tried using NULLASVALUE but it didn't help. Only having a value for each department in both tables solved this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 14:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-in-data-model/m-p/789776#M279275</guid>
      <dc:creator />
      <dc:date>2014-12-25T14:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in data model</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-in-data-model/m-p/789777#M279276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;provide sample data please..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 14:43:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-in-data-model/m-p/789777#M279276</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-12-25T14:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in data model</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-in-data-model/m-p/789778#M279277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For simplicity's sake:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 288px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="72"&gt;Customer&lt;/TD&gt;&lt;TD class="xl65" width="72"&gt;Origin&lt;/TD&gt;&lt;TD class="xl65" width="72"&gt;Dept&lt;/TD&gt;&lt;TD class="xl65" width="72"&gt;Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;A&lt;/TD&gt;&lt;TD class="xl63"&gt;Clothing&lt;/TD&gt;&lt;TD class="xl64"&gt;790&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;1&lt;/TD&gt;&lt;TD class="xl63"&gt;B&lt;/TD&gt;&lt;TD class="xl63"&gt;Shoes&lt;/TD&gt;&lt;TD class="xl64"&gt;4,697&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dept:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 144px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="72"&gt;Dept&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="72"&gt;Mall&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="19" style="border-top: none;"&gt;Clothing&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;NY&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 15:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-in-data-model/m-p/789778#M279277</guid>
      <dc:creator />
      <dc:date>2014-12-25T15:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in data model</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-in-data-model/m-p/789779#M279278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&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;Customer, Origin ,Dept, Sales&lt;/P&gt;&lt;P&gt;1, A, Clothing, 790&lt;/P&gt;&lt;P&gt;1, B, Shoes, '4,697'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Dept:&lt;/P&gt;&lt;P&gt;left Join(Sales)&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Dept, Mall&lt;/P&gt;&lt;P&gt;Clothing, NY&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Customer, Origin ,Dept, Sales,&lt;/P&gt;&lt;P&gt;if(len(Mall)=0,'Blank',Mall) as Mall,&lt;/P&gt;&lt;P&gt;1 as test&lt;/P&gt;&lt;P&gt;Resident Sales;&lt;/P&gt;&lt;P&gt;drop table Sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the attched file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 15:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-in-data-model/m-p/789779#M279278</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-12-25T15:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in data model</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-in-data-model/m-p/789780#M279279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you wish to keep your datamodel, you may wish to work with the OTHERSYMBOL-functionality:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;SET OTHERSYMBOL = +;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Sales:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [ Customer, Origin, Dept, Sales&lt;/P&gt;
&lt;P&gt;1, A, Clothing, 790&lt;/P&gt;
&lt;P&gt;1, B, Shoes, 4697];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Dept:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [Dept, Mall&lt;/P&gt;
&lt;P&gt;Clothing, NY];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MissingDept:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [Dept, Mall&lt;/P&gt;
&lt;P&gt;+, #N/A];&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing so, will allow you to select all Dept, where there is no corresponding entry (have choosen #N/A, but may use any other text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 19:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-in-data-model/m-p/789780#M279279</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2014-12-25T19:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in data model</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-in-data-model/m-p/789781#M279280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to both of you, but I've provided an example where only one field is missing values. In reality, I may have situations where multiple dimensions are missing values, hence going about one of the solutions provided above seems a bit cumbersome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I'm using the expression &lt;STRONG&gt;sum( { 1 &amp;lt;Mall=P()&amp;gt; } Sales)&lt;/STRONG&gt;, I was wandering if there was a workaround involving the expression itself perhaps, which would take into account &lt;STRONG&gt;stores&lt;/STRONG&gt; which are not associated with any &lt;STRONG&gt;Malls&lt;/STRONG&gt; (nulls..). As you can see currently, they are simply ignored.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 09:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-in-data-model/m-p/789781#M279280</guid>
      <dc:creator />
      <dc:date>2015-01-06T09:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in data model</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-in-data-model/m-p/789782#M279281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yoni,&lt;/P&gt;&lt;P&gt;generally think that &lt;/P&gt;&lt;P&gt;a) during the development you should have a clear imagination, which data you may expect in your dimensions&lt;/P&gt;&lt;P&gt;b) it is a good practice to replace all missing values (as above, APPLYMAP() seem to have a better performance than IF-constructions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 18:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-in-data-model/m-p/789782#M279281</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2015-01-06T18:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values in data model</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-in-data-model/m-p/789783#M279282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe I've found the solution for this - it's in this extremely helpful video:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=pGpdfMpmWoE" title="https://www.youtube.com/watch?v=pGpdfMpmWoE"&gt;https://www.youtube.com/watch?v=pGpdfMpmWoE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to share. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 09:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-in-data-model/m-p/789783#M279282</guid>
      <dc:creator />
      <dc:date>2015-01-22T09:35:31Z</dc:date>
    </item>
  </channel>
</rss>

