<?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 Differentiate Null Values from 0s in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Differentiate-Null-Values-from-0s/m-p/1046316#M351741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I&amp;nbsp; have a data warehouse with a million of rows and I want to calculate the fact Sales_Online for different dates. My Fact Table already have &lt;SPAN lang="EN" style="color: #212121;"&gt;records but the however the metric &lt;/SPAN&gt;Sales_Online&lt;SPAN lang="EN" style="color: #212121;"&gt; still has the records to 0 € (not null!!!).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN" style="font-family: arial, helvetica, sans-serif; color: #212121;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I try to differentiate the Null Values from 0s because when I don’t have data I want to show a message error. For that I’m using the following expression in a Object Text: &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: blue;"&gt;isNull&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: maroon;"&gt;SALES_ONLINE&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: black;"&gt;),’NO_DATA’,&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: blue;"&gt;num&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: blue;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: maroon;"&gt;SALES_ONLINE&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: black;"&gt;&lt;STRONG&gt;)/1000,'#,##')&amp;amp;'K') &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; font-family: arial, helvetica, sans-serif; color: black;"&gt;But, this expression returns the message error even if I selected a day that I’ve records with 0 €.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; font-family: arial, helvetica, sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanks!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2016 18:13:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-21T18:13:40Z</dc:date>
    <item>
      <title>Differentiate Null Values from 0s</title>
      <link>https://community.qlik.com/t5/QlikView/Differentiate-Null-Values-from-0s/m-p/1046316#M351741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I&amp;nbsp; have a data warehouse with a million of rows and I want to calculate the fact Sales_Online for different dates. My Fact Table already have &lt;SPAN lang="EN" style="color: #212121;"&gt;records but the however the metric &lt;/SPAN&gt;Sales_Online&lt;SPAN lang="EN" style="color: #212121;"&gt; still has the records to 0 € (not null!!!).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN lang="EN" style="font-family: arial, helvetica, sans-serif; color: #212121;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I try to differentiate the Null Values from 0s because when I don’t have data I want to show a message error. For that I’m using the following expression in a Object Text: &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: blue;"&gt;isNull&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: maroon;"&gt;SALES_ONLINE&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: black;"&gt;),’NO_DATA’,&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: blue;"&gt;num&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: blue;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: maroon;"&gt;SALES_ONLINE&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; color: black;"&gt;&lt;STRONG&gt;)/1000,'#,##')&amp;amp;'K') &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; font-family: arial, helvetica, sans-serif; color: black;"&gt;But, this expression returns the message error even if I selected a day that I’ve records with 0 €.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 9pt; font-family: arial, helvetica, sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanks!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 18:13:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differentiate-Null-Values-from-0s/m-p/1046316#M351741</guid>
      <dc:creator />
      <dc:date>2016-01-21T18:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate Null Values from 0s</title>
      <link>https://community.qlik.com/t5/QlikView/Differentiate-Null-Values-from-0s/m-p/1046317#M351742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim(Avg(SALES_ONLINE))) = 0, 'NO_DATA', Sum(SALES_ONLINE)/1000)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 18:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differentiate-Null-Values-from-0s/m-p/1046317#M351742</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-21T18:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate Null Values from 0s</title>
      <link>https://community.qlik.com/t5/QlikView/Differentiate-Null-Values-from-0s/m-p/1046318#M351743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny T, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; But I think it doens't returns my goal &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I' give you a example to represent my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at this image:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/112253_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see all of my Sales_Online is equal to 0. The logic is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If a I select a date that exists in Fact Table the result is 0 because the Sum(Sales_Online) = 0;&lt;/LI&gt;&lt;LI&gt;But I select another date the result should be -1 (or Null) because I'm adding missing values.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you undestanding my trouble? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 18:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differentiate-Null-Values-from-0s/m-p/1046318#M351743</guid>
      <dc:creator />
      <dc:date>2016-01-21T18:27:41Z</dc:date>
    </item>
  </channel>
</rss>

