<?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: Re: Table of statistics in QV in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569177#M1119682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to modify the script to below in order to get the Variable Table to show the proper results for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;//first set null interpreter to the string: NULL&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;SET NULLINTERPRET=;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;CrossTable (Variables, Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;LOAD null() AS Dummy,*;&amp;nbsp; // Dummy field is required in order to be able to pivot the columns&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, B, C&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, -5,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1, 0, -3&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , 6, 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;Results:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;LOAD Variables,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp; count(DISTINCT Value) AS Count,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp; sum(if(Value=0, 1, 0)) AS CountZeroes,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp; //sum(if(isnull(Value), 1, 0)) AS CountNull,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp; sum(if(len(trim(Value))&amp;gt;0, 0, 1)) AS CountNull,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp; //sum(if(Value&amp;lt;0, 1, 0)) AS CountNegative&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp; sum(if(Value&amp;lt;0 and len(trim(Value))&amp;gt;0, 1, 0)) AS CountNegative&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;Resident Data&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;Group by Variables;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="52111" alt="Image 4.png" class="jive-image" src="/legacyfs/online/52111_Image 4.png" style="width: 620px; height: 256px;" /&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;If i use the script the way you provided (snapshot below) I get the wrong results.&amp;nbsp; I believe it is the way the Null values are being handled in the Inline Load.&amp;nbsp; If someone could explain why in further detail I would much appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="52118" alt="Image 5.png" class="jive-image" src="/legacyfs/online/52118_Image 5.png" style="width: 620px; height: 256px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jan 2014 05:25:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-27T05:25:24Z</dc:date>
    <item>
      <title>Table of statistics in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569168#M1119673</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'm a new user to QV. Not sure how to solve the following issue, any experts can help? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset in excel file as follows:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 325px; height: 84px;"&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;A&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;B&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;C&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;-1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to import this file in QV and generate the following statistical table as a result:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="119" style="border: 1px solid #000000; width: 334px; height: 76px;" width="332"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Variables&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Count of Zeros&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Count of Nulls&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Count of negative values&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know how to do it? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2014 11:20:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569168#M1119673</guid>
      <dc:creator />
      <dc:date>2014-01-25T11:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Table of statistics in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569169#M1119674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you can either achieve this by script or in the layout, Here is a solution in script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;CrossTable (Variables, Value)&lt;/P&gt;&lt;P&gt;LOAD null() AS Dummy, *;&amp;nbsp; // Dummy field is required in order to be able to pivot the columns&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, B, C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, -5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1, 0, -3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , 6, 4&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;P&gt;LOAD Variables,&lt;/P&gt;&lt;P&gt;&amp;nbsp; count(DISTINCT Value) AS Count,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(if(Value=0, 1, 0)) AS CountZeroes,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(if(isnull(Value), 1, 0)) AS CountNull,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(if(Value&amp;lt;0, 1, 0)) AS CountNegative&lt;/P&gt;&lt;P&gt;Resident Data&lt;/P&gt;&lt;P&gt;Group by Variables;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2014 11:39:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569169#M1119674</guid>
      <dc:creator>agilos_mla</dc:creator>
      <dc:date>2014-01-25T11:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Table of statistics in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569170#M1119675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and here in the layout (chart)&lt;/P&gt;&lt;P&gt;see attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="105331.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/52090_105331.jpg" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2014 13:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569170#M1119675</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-01-25T13:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Table of statistics in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569171#M1119676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael! It really helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jan 2014 09:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569171#M1119676</guid>
      <dc:creator />
      <dc:date>2014-01-26T09:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Table of statistics in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569172#M1119677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Massimo! I created the qvw file using your template, it works well.&lt;/P&gt;&lt;P&gt;Another thing I want to ask is, how to add a list box of a condition there? For example, what shall I do if I want to see how the counts change where A is not null.&lt;/P&gt;&lt;P&gt;Traditionally, I would add a list box and select variable A and make the restriction on it, but since you already created the cross table, I cannot select variable A anymore...I only three variables now: variables, value and dummy. Do you know how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jan 2014 09:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569172#M1119677</guid>
      <dc:creator />
      <dc:date>2014-01-26T09:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Table of statistics in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569173#M1119678</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;Easiest way to flag nulls is during the initial load; for example:&lt;/P&gt;&lt;P&gt;LOAD A, B, C, if(Len(A)=0, 'Yes', 'No') as [A is null]&lt;/P&gt;&lt;P&gt;FROM (Excel source)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;I used Len()=0 to identify the empty cells; you also have Isnull() function, but Len()=0 also works on empty strings.&lt;/P&gt;&lt;P&gt;Then you can use [A is null] as filter, and check the change in your pivot chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jan 2014 11:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569173#M1119678</guid>
      <dc:creator />
      <dc:date>2014-01-26T11:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Table of statistics in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569174#M1119679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pierre, thanks for your suggestion! As Michael suggested, I used the following script to load the data, so it will create a cross table for me. However, if I do so, I will only return three variables: "Variables", "Value" and "Dummy", and I was not able to select any of my original variables such as A, B, C. Do you know where I should insert your "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(Len(A)=0, 'Yes', 'No') as [A is null]&lt;/SPAN&gt;" into my existing script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My existing script:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Data:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CrossTable (Variables, Value)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD null() AS Dummy, *;&amp;nbsp; // Dummy field is required in order to be able to pivot the columns&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, B, C&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, -5&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1, 0, -3&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , 6, 4&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jan 2014 12:43:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569174#M1119679</guid>
      <dc:creator />
      <dc:date>2014-01-26T12:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Table of statistics in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569175#M1119680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. Then you need to add the flags before turning it into a crosstable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Data:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CrossTable (Variables, Value)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD null() AS Dummy, *;&amp;nbsp; // Dummy field is required in order to be able to pivot the columns&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(Len(A)=0, 'Yes', 'No') as [A is null]&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, B, C&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, -5&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1, 0, -3&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , 6, 4&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If you make Results table in script, you need to add new results in script too:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Results:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Variables,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; count(DISTINCT Value) AS Count,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; sum(if(Value=0, 1, 0)) AS CountZeroes,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; sum(if(isnull(Value), 1, 0)) AS CountNull,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; sum(if(Value&amp;lt;0, 1, 0)) AS CountNegative,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;count(DISTINCT if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[A is null]&lt;/SPAN&gt;='No', Value)) AS CountANotNull,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; sum(if(Value=0 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[A is null]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;='No'&lt;/SPAN&gt;, 1, 0)) AS CountZeroes&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ANotNull&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; sum(if(isnull(Value)&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[A is null]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;='No'&lt;/SPAN&gt;, 1, 0)) AS CountNull&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ANotNull&lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; sum(if(Value&amp;lt;0&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[A is null]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;='No'&lt;/SPAN&gt;, 1, 0)) AS CountNegative&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ANotNull&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Data&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group by Variables;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;As you see, it's gett&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ing a bit heavy. Making Results in layout allows to use a simple filter, so it's more flexible at this point.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jan 2014 13:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569175#M1119680</guid>
      <dc:creator />
      <dc:date>2014-01-26T13:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Table of statistics in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569176#M1119681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pierre, I tried your new script by adding this [A is null] before the load of A,B,C, but it doesn't work...My problem is that when creating a cross table, I'm not able to add a list box of the original variable A. My goal is to realize the dynamic changing of the cross table when my condition for A changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the pics attached. After I create the cross table, I can only select "Dummy", "Variables", "Value" in &amp;lt;Field&amp;gt;.&lt;IMG alt="pic2.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/52117_pic2.jpg" style="width: 620px; height: 488px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the Result table, I prefer to do it in the layout instead of script. So don't worry about this part for now. Is it possible for you to attach me the .qvw file if you know how to solve the above problem? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help and patience!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 01:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569176#M1119681</guid>
      <dc:creator />
      <dc:date>2014-01-27T01:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Table of statistics in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569177#M1119682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to modify the script to below in order to get the Variable Table to show the proper results for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;//first set null interpreter to the string: NULL&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;SET NULLINTERPRET=;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;CrossTable (Variables, Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;LOAD null() AS Dummy,*;&amp;nbsp; // Dummy field is required in order to be able to pivot the columns&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, B, C&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, -5,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1, 0, -3&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , 6, 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;Results:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;LOAD Variables,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp; count(DISTINCT Value) AS Count,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp; sum(if(Value=0, 1, 0)) AS CountZeroes,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp; //sum(if(isnull(Value), 1, 0)) AS CountNull,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp; sum(if(len(trim(Value))&amp;gt;0, 0, 1)) AS CountNull,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp; //sum(if(Value&amp;lt;0, 1, 0)) AS CountNegative&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp; sum(if(Value&amp;lt;0 and len(trim(Value))&amp;gt;0, 1, 0)) AS CountNegative&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;Resident Data&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;Group by Variables;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="52111" alt="Image 4.png" class="jive-image" src="/legacyfs/online/52111_Image 4.png" style="width: 620px; height: 256px;" /&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;If i use the script the way you provided (snapshot below) I get the wrong results.&amp;nbsp; I believe it is the way the Null values are being handled in the Inline Load.&amp;nbsp; If someone could explain why in further detail I would much appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="52118" alt="Image 5.png" class="jive-image" src="/legacyfs/online/52118_Image 5.png" style="width: 620px; height: 256px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 05:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569177#M1119682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-27T05:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Table of statistics in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569178#M1119683</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;Fixed it. I replaced the dummy field by row number, to keep values from the same row connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;CrossTable (Variables, Value)&lt;/P&gt;&lt;P&gt;LOAD RowNo() as Rank, *; //Rank is row number in original array&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, B, C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, -5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1, 0, -3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , 6, 4&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(Data)&lt;/P&gt;&lt;P&gt;LOAD Rank, if(sum(if(Variables='A' and len(trim(Value))=0, 1))&amp;gt;0, 'Yes', 'No') as [A is null]&lt;/P&gt;&lt;P&gt;Resident Data&lt;/P&gt;&lt;P&gt;Group By Rank&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original row number is saved in the crosstable, so similar filters can be added the same way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 10:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569178#M1119683</guid>
      <dc:creator />
      <dc:date>2014-01-27T10:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Table of statistics in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569179#M1119684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes, empty cells are interpreted differently depending on the source.&lt;/P&gt;&lt;P&gt;From QVD or Excel (formats where there are defined cells), it's taken as null values.&lt;/P&gt;&lt;P&gt;From reading text files, csv or inline load where cells are reconstituted, it's taken as empty strings.&lt;/P&gt;&lt;P&gt;The Len(Trim( formula is worth knowing &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 11:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569179#M1119684</guid>
      <dc:creator />
      <dc:date>2014-01-27T11:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Table of statistics in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569180#M1119685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Pierre.&amp;nbsp;&amp;nbsp; It does seem that QlikView handles Null any several different ways which can cause unexpected or unwanted results.&amp;nbsp; The Len(Trim formula is definitely useful.&amp;nbsp; Below is another method to get Value to display Null instead of an empty space so that the Original Formulas by Michael work as intended using Len(Trim to force Null Values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;DataTemp:&lt;/P&gt;&lt;P&gt;CrossTable (Variables, Value)&lt;/P&gt;&lt;P&gt;LOAD null() AS Dummy, *;&amp;nbsp; // Dummy field is required in order to be able to pivot the columns&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, B, C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, -5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1, 0, -3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , 6, 4&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Variables,&lt;/P&gt;&lt;P&gt;IF(Len(TRIM(Value))&amp;gt;0,Value) as Value&lt;/P&gt;&lt;P&gt;Resident DataTemp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table DataTemp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;P&gt;LOAD Variables,&lt;/P&gt;&lt;P&gt;&amp;nbsp; count(DISTINCT Value) AS Count,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(if(Value=0, 1, 0)) AS CountZeroes,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(if(isnull(Value), 1, 0)) AS CountNull,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(if(Value&amp;lt;0, 1, 0)) AS CountNegative&lt;/P&gt;&lt;P&gt;Resident Data&lt;/P&gt;&lt;P&gt;Group by Variables;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 16:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-of-statistics-in-QV/m-p/569180#M1119685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-27T16:47:26Z</dc:date>
    </item>
  </channel>
</rss>

