<?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: Replacing null values in star scheme based table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replacing-null-values-in-star-scheme-based-table/m-p/1453325#M434733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your feedback! Yes, this would work for my existing charts. Unfortunately my customer is doing own analysis using own list boxes, tables etc. And in the list boxes he is not able to select the null values. Sorry, I should have made that clear in my post. This is why I would prefer to do it somewhere centrally in the data itself. Do you have any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sabine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jan 2018 08:58:45 GMT</pubDate>
    <dc:creator>straesser</dc:creator>
    <dc:date>2018-01-16T08:58:45Z</dc:date>
    <item>
      <title>Replacing null values in star scheme based table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-values-in-star-scheme-based-table/m-p/1453323#M434731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing the following display issue for null values and hope that one of you has an idea how to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use &lt;EM&gt;left keep&lt;/EM&gt; to enrich our main data table &lt;EM&gt;Main&lt;/EM&gt; with additional information &lt;EM&gt;Add&lt;/EM&gt;. This gives us a star scheme (several tables with different types of additional information). Key in my example is the &lt;EM&gt;Factory&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;RecordNo&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Factory&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Figure&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;London&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;42&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Paris&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;142&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Rome&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;242&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Atlantis&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;342&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Madrid&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;442&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Factory&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Address&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;London&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Buckingham Palace&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Paris&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Eiffel tower&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Rome&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Collosseum&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Madrid&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are cases where we don't have additional information in &lt;EM&gt;Add&lt;/EM&gt; for a record in &lt;EM&gt;Main&lt;/EM&gt;. This gives us null values. &lt;/P&gt;&lt;P&gt;In my example this would be for factory Atlantis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we now create a pivot table in the user front end showing &lt;EM&gt;Figure&lt;/EM&gt; and &lt;EM&gt;Address&lt;/EM&gt; Madrid would be shown as blank whereas Atlantis is shown as null in the &lt;EM&gt;Address&lt;/EM&gt; column. Our customer wants us to show both in one line summing up the figures (&lt;EM&gt;Address&lt;/EM&gt; = blank with &lt;EM&gt;Figure&lt;/EM&gt; = 784). I have a lot of such tables so I would prefer to solve it somewhere centrally, e.g. in the load statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how I can set null values blank in this case?&lt;/P&gt;&lt;P&gt;I tried NullAsValue but without any success. I guess it's because we use the star scheme as a basis for our frontend instead of concatenating all fields into one table (for memory reasons). I also failed with any attempt of mapping because I don't find anything to map &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; But maybe I approached it in the wrong way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your support,&lt;/P&gt;&lt;P&gt;Sabine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 09:51:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-values-in-star-scheme-based-table/m-p/1453323#M434731</guid>
      <dc:creator>straesser</dc:creator>
      <dc:date>2018-01-11T09:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null values in star scheme based table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-values-in-star-scheme-based-table/m-p/1453324#M434732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sabine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-01-12 11_05_56-QlikView x64 - [C__Users_Petter_Downloads_# QC 2018-11-12 Star Schema.qvw].png" class="jive-image image-1" src="/legacyfs/online/189870_2018-01-12 11_05_56-QlikView x64 - [C__Users_Petter_Downloads_# QC 2018-11-12 Star Schema.qvw].png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the example application too...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2018 10:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-values-in-star-scheme-based-table/m-p/1453324#M434732</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-01-12T10:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null values in star scheme based table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-values-in-star-scheme-based-table/m-p/1453325#M434733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your feedback! Yes, this would work for my existing charts. Unfortunately my customer is doing own analysis using own list boxes, tables etc. And in the list boxes he is not able to select the null values. Sorry, I should have made that clear in my post. This is why I would prefer to do it somewhere centrally in the data itself. Do you have any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sabine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 08:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-values-in-star-scheme-based-table/m-p/1453325#M434733</guid>
      <dc:creator>straesser</dc:creator>
      <dc:date>2018-01-16T08:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null values in star scheme based table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-values-in-star-scheme-based-table/m-p/1453326#M434734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Btw, I don't see any attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 08:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-values-in-star-scheme-based-table/m-p/1453326#M434734</guid>
      <dc:creator>straesser</dc:creator>
      <dc:date>2018-01-16T08:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null values in star scheme based table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-values-in-star-scheme-based-table/m-p/1453327#M434735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlik Sense is most of the time best used with a so-called Dimensional Model approach for the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this respect your Main table is the fact table and the Add table is a dimension table. According to best practices in the Dimensional Modeling you should have an entry for every dimensional value that you have in your fact table in the dimension table (referential integrity). So if there are no corresponding entry in the dimension table it is important to populate it with a dummy/not existing/unknown value&amp;nbsp; that could for instance in your case say "&amp;lt;unkown address&amp;gt;" for Atlantis and should probably say the same thing for Madrid as a blank would be an unknown/unspecified address too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Null values are more often than not a pain in the neck. So getting rid of them and rather have something more meaningful that you can actually select is better. This way you will also be able to select them in List Boxes and elsewhere in a more natural way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add rows to the Add table with this extra load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp; Factory,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '(unkown address)' AS Address&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp; Main&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp; Not( Exists( Factory ) );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the load of the Main table you can replace any blank address with the text (unknown address) too like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Factory,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If( Trim( Address ) = '' , '(unknown address)' , Address ) AS Address,&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, 16 Jan 2018 10:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-values-in-star-scheme-based-table/m-p/1453327#M434735</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-01-16T10:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null values in star scheme based table</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-values-in-star-scheme-based-table/m-p/1453328#M434736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't know why you don't see any attachment - I can see it as a paperclip and document at the end of my response/comment...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 10:36:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-values-in-star-scheme-based-table/m-p/1453328#M434736</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-01-17T10:36:27Z</dc:date>
    </item>
  </channel>
</rss>

