<?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 Why MS SQL and Qlick Sense show different counting results for empty cells? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Why-MS-SQL-and-Qlick-Sense-show-different-counting-results-for/m-p/1140868#M20208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;i'm struggling to use the functions count/Nullcount/missingCount/isNull and similar to obtain the right number of emply cells of an array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my Qlick sense sheet, i loaded correctly the data from an OLE DB but i didn't insert any set condition for the Null interpreting in the script.&lt;/P&gt;&lt;P&gt;Using Microsoft SQL management studio 2014, i made a query in SQL to count the empty cells of a field named "Campo" and the query shows me 32955 empty cells. This is the right number of empty cells present in the array.&lt;/P&gt;&lt;P&gt;Following, i attach the query inserted in SQL to obtain the previous result:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Select&lt;/STRONG&gt; Count(Valore)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From&lt;/STRONG&gt; dbo.Campi&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where&lt;/STRONG&gt; Valore=''&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //('' is made with a couple of ')//&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure that the DB has been loaded with empty cells (so this cells exist but without any value inside).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insted, if i use Qlick sense to make a KPI that simply counts the emply cells from the field Valore, Qlick sense returns me differents results:&lt;/P&gt;&lt;P&gt;if i use the expression count (Valore)='', the KPI returns me 0;&lt;/P&gt;&lt;P&gt;if i use the expression NullCount(valore), the KPI returns me 0;&lt;/P&gt;&lt;P&gt;if i use the expression MissingCount(Valore), the KPI returns me 70878. In particular this last result makes me confused, beacuse i can't explane it to me.&lt;/P&gt;&lt;P&gt;if i use the expression isNull(Valore), the KPI returns me -1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my opinion i have to insert in the script a particular condition to let qlick sense to consider the emplty cells as a particular value with the function NullInterpret. i tried this but without any success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2021 15:42:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2021-12-22T15:42:54Z</dc:date>
    <item>
      <title>Why MS SQL and Qlick Sense show different counting results for empty cells?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-MS-SQL-and-Qlick-Sense-show-different-counting-results-for/m-p/1140868#M20208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;i'm struggling to use the functions count/Nullcount/missingCount/isNull and similar to obtain the right number of emply cells of an array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my Qlick sense sheet, i loaded correctly the data from an OLE DB but i didn't insert any set condition for the Null interpreting in the script.&lt;/P&gt;&lt;P&gt;Using Microsoft SQL management studio 2014, i made a query in SQL to count the empty cells of a field named "Campo" and the query shows me 32955 empty cells. This is the right number of empty cells present in the array.&lt;/P&gt;&lt;P&gt;Following, i attach the query inserted in SQL to obtain the previous result:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Select&lt;/STRONG&gt; Count(Valore)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From&lt;/STRONG&gt; dbo.Campi&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where&lt;/STRONG&gt; Valore=''&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //('' is made with a couple of ')//&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure that the DB has been loaded with empty cells (so this cells exist but without any value inside).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insted, if i use Qlick sense to make a KPI that simply counts the emply cells from the field Valore, Qlick sense returns me differents results:&lt;/P&gt;&lt;P&gt;if i use the expression count (Valore)='', the KPI returns me 0;&lt;/P&gt;&lt;P&gt;if i use the expression NullCount(valore), the KPI returns me 0;&lt;/P&gt;&lt;P&gt;if i use the expression MissingCount(Valore), the KPI returns me 70878. In particular this last result makes me confused, beacuse i can't explane it to me.&lt;/P&gt;&lt;P&gt;if i use the expression isNull(Valore), the KPI returns me -1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my opinion i have to insert in the script a particular condition to let qlick sense to consider the emplty cells as a particular value with the function NullInterpret. i tried this but without any success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-MS-SQL-and-Qlick-Sense-show-different-counting-results-for/m-p/1140868#M20208</guid>
      <dc:creator />
      <dc:date>2021-12-22T15:42:54Z</dc:date>
    </item>
  </channel>
</rss>

