<?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: Modify JOIN to get 0 (not a null value) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Modify-JOIN-to-get-0-not-a-null-value/m-p/533825#M693405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no, unfortunately that doesn't help me yet - the problem is, for some PNs (personell_numbers), I don't have ANY data in the table for planned_holidays. There is nothing I could use to fill up the missing values.&lt;/P&gt;&lt;P&gt;The problem clearly arises at the point when I join that table to the prior one: I am using a LEFT JOIN, so I should get a result table with all PNs in it, but simply no value in the column "planned" for some of them.&lt;/P&gt;&lt;P&gt;=&amp;gt; In principle, I should&amp;nbsp; be able to use an ISNULL function to find those out.&lt;/P&gt;&lt;P&gt;I'll do some more testing.&lt;/P&gt;&lt;P&gt;Do you have any more ideas for me?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jul 2013 12:24:06 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2013-07-29T12:24:06Z</dc:date>
    <item>
      <title>Modify JOIN to get 0 (not a null value)</title>
      <link>https://community.qlik.com/t5/QlikView/Modify-JOIN-to-get-0-not-a-null-value/m-p/533823#M693403</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 am building a diagram from personell data and I have an issue with a number of PNs that I "see" - I can have the exact nr. of emps displayed), but that are not in my diagram.&lt;/P&gt;&lt;P&gt;The reason seems to be that I have three tables:&lt;/P&gt;&lt;P&gt;- One for the entire holiday_budget at the start of the year&lt;/P&gt;&lt;P&gt;- One for the nr. of days that person has already taken off&lt;/P&gt;&lt;P&gt;- One for the nr. of days that person has planned to take off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my diagram, I want to information about the nr. of days a person has neither taken nor planned yet: I have some categories as my dimension and as formula I want to show the nr. of employees within this category.&lt;/P&gt;&lt;P&gt;The problem currently seems to be that some employees have not planned any days yet. They are seemingly not represented in the third table at all.&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; At one point in my script, I have a table where I have every PN, that employee's holiday_budget and a nr. of days that employee has taken. I join that to the third table to get the nr. of days that employee has planned into the same table - BUT the JOIN assigns null values (no value at all) to rows that are not present in that table - that means that PNs that have no days planned and are thus not present in the corresp. table have no value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; I then calculate like &amp;gt;&amp;gt; (hol_budget - days_taken - days_planned) = hol_leftover &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;=&amp;gt; For those that have no days planned, I get no result here, thus I cannot display them in my diagram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to find a way now to fill those empty cells in my resulting table with 0s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me there?&lt;/P&gt;&lt;P&gt;Can I apply an ISNULL function to find those records where I have no value in that column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 10:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modify-JOIN-to-get-0-not-a-null-value/m-p/533823#M693403</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-07-29T10:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Modify JOIN to get 0 (not a null value)</title>
      <link>https://community.qlik.com/t5/QlikView/Modify-JOIN-to-get-0-not-a-null-value/m-p/533824#M693404</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;Probably this document by Henric Cronstrom &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/02/05/populating-a-sparsely-populated-field"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/02/05/populating-a-sparsely-populated-field&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is the best reference you can find to do this in QlikView and not in the source database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 10:54:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modify-JOIN-to-get-0-not-a-null-value/m-p/533824#M693404</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2013-07-29T10:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Modify JOIN to get 0 (not a null value)</title>
      <link>https://community.qlik.com/t5/QlikView/Modify-JOIN-to-get-0-not-a-null-value/m-p/533825#M693405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no, unfortunately that doesn't help me yet - the problem is, for some PNs (personell_numbers), I don't have ANY data in the table for planned_holidays. There is nothing I could use to fill up the missing values.&lt;/P&gt;&lt;P&gt;The problem clearly arises at the point when I join that table to the prior one: I am using a LEFT JOIN, so I should get a result table with all PNs in it, but simply no value in the column "planned" for some of them.&lt;/P&gt;&lt;P&gt;=&amp;gt; In principle, I should&amp;nbsp; be able to use an ISNULL function to find those out.&lt;/P&gt;&lt;P&gt;I'll do some more testing.&lt;/P&gt;&lt;P&gt;Do you have any more ideas for me?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 12:24:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modify-JOIN-to-get-0-not-a-null-value/m-p/533825#M693405</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-07-29T12:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Modify JOIN to get 0 (not a null value)</title>
      <link>https://community.qlik.com/t5/QlikView/Modify-JOIN-to-get-0-not-a-null-value/m-p/533826#M693406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't help myself, QlikView is strange sometimes - don't ask me what I've actually done differently now - nothing as far as I can tell though I have moved the ISNULL function here and there - but it seems to be working now.&lt;/P&gt;&lt;P&gt;Let me see...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 12:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modify-JOIN-to-get-0-not-a-null-value/m-p/533826#M693406</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-07-29T12:44:54Z</dc:date>
    </item>
  </channel>
</rss>

