<?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 Null values and total percentage.. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Null-values-and-total-percentage/m-p/201665#M503563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajani,&lt;/P&gt;&lt;P&gt;The hyphen is displayed by default in a QlikView chart when the data value is null. You can change that behavior by right-clicking the chart and selecting &lt;EM&gt;Properties&lt;/EM&gt; and selecting the &lt;EM&gt;Presentation&lt;/EM&gt; tab. You'll see a place where you can define a null symbol and a missing symbol. I sometimes set the null symboll to the word null just to make the data issues clear.&lt;/P&gt;&lt;P&gt;The Statistics Box doesn't give you the kind of control you need (if I understand your question correctly) - it makes you select a field and doesn't allow you to enter an expression that would only include specified values of the field.&lt;/P&gt;&lt;P&gt;You could try a text object with expressions that include or exclude the data according to your requirements. For example, this text expression could be used in a text object to show information about a field named BUDGET but excluding null values:&lt;/P&gt;&lt;P&gt;='Total count = '&amp;amp;Count(total if(not isnull(BUDGET),BUDGET))&amp;amp;'&lt;BR /&gt; Sum = '&amp;amp;Sum(BUDGET)&amp;amp;'&lt;BR /&gt; Average = '&amp;amp;Round(Sum(BUDGET)/Count(if(not isnull(BUDGET),BUDGET)))&amp;amp;'&lt;BR /&gt; Min = '&amp;amp;min(if(not isnull(BUDGET),BUDGET))&amp;amp;'&lt;BR /&gt; Max = '&amp;amp;max(if(not isnull(BUDGET),BUDGET))&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;&lt;STRONG&gt;If&lt;/STRONG&gt;&lt;/EM&gt; statement can be used to include or exclude any values. Use the &lt;EM&gt;Round&lt;/EM&gt; function and &lt;EM&gt;Num&lt;/EM&gt; functions as needed to format the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Apr 2010 15:46:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-07T15:46:14Z</dc:date>
    <item>
      <title>Null values and total percentage..</title>
      <link>https://community.qlik.com/t5/QlikView/Null-values-and-total-percentage/m-p/201664#M503561</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 a beginner and I really need help to solve these problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.How to handle values which are displayed like -(Hypen) in my table box from a sql query.I have used&lt;/P&gt;&lt;P&gt;is not null with sql in where clause but still getting records with hypen values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.I want to display a Percentage of correct records(without null) over total records(including nulls)&lt;/P&gt;&lt;P&gt;3. Can we do an aggregation on the values which are displayed in statistics box&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Please respond ASAP.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thank You.&lt;/DIV&gt;&lt;DIV&gt;RP.&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Apr 2010 18:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-values-and-total-percentage/m-p/201664#M503561</guid>
      <dc:creator />
      <dc:date>2010-04-02T18:07:15Z</dc:date>
    </item>
    <item>
      <title>Null values and total percentage..</title>
      <link>https://community.qlik.com/t5/QlikView/Null-values-and-total-percentage/m-p/201665#M503563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajani,&lt;/P&gt;&lt;P&gt;The hyphen is displayed by default in a QlikView chart when the data value is null. You can change that behavior by right-clicking the chart and selecting &lt;EM&gt;Properties&lt;/EM&gt; and selecting the &lt;EM&gt;Presentation&lt;/EM&gt; tab. You'll see a place where you can define a null symbol and a missing symbol. I sometimes set the null symboll to the word null just to make the data issues clear.&lt;/P&gt;&lt;P&gt;The Statistics Box doesn't give you the kind of control you need (if I understand your question correctly) - it makes you select a field and doesn't allow you to enter an expression that would only include specified values of the field.&lt;/P&gt;&lt;P&gt;You could try a text object with expressions that include or exclude the data according to your requirements. For example, this text expression could be used in a text object to show information about a field named BUDGET but excluding null values:&lt;/P&gt;&lt;P&gt;='Total count = '&amp;amp;Count(total if(not isnull(BUDGET),BUDGET))&amp;amp;'&lt;BR /&gt; Sum = '&amp;amp;Sum(BUDGET)&amp;amp;'&lt;BR /&gt; Average = '&amp;amp;Round(Sum(BUDGET)/Count(if(not isnull(BUDGET),BUDGET)))&amp;amp;'&lt;BR /&gt; Min = '&amp;amp;min(if(not isnull(BUDGET),BUDGET))&amp;amp;'&lt;BR /&gt; Max = '&amp;amp;max(if(not isnull(BUDGET),BUDGET))&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;&lt;STRONG&gt;If&lt;/STRONG&gt;&lt;/EM&gt; statement can be used to include or exclude any values. Use the &lt;EM&gt;Round&lt;/EM&gt; function and &lt;EM&gt;Num&lt;/EM&gt; functions as needed to format the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 15:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-values-and-total-percentage/m-p/201665#M503563</guid>
      <dc:creator />
      <dc:date>2010-04-07T15:46:14Z</dc:date>
    </item>
    <item>
      <title>Null values and total percentage..</title>
      <link>https://community.qlik.com/t5/QlikView/Null-values-and-total-percentage/m-p/201666#M503565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;to handle values which are displayed like -(Hypen) in the table box&lt;/P&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;set nulldisplay=' - '&lt;/P&gt;&lt;P&gt;since you are importing data from sql database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 19:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-values-and-total-percentage/m-p/201666#M503565</guid>
      <dc:creator />
      <dc:date>2010-04-07T19:02:50Z</dc:date>
    </item>
    <item>
      <title>Null values and total percentage..</title>
      <link>https://community.qlik.com/t5/QlikView/Null-values-and-total-percentage/m-p/201667#M503566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Tim.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please write me a sample code to read a table box using Macro . I have a table box having 4 fields (Country,County,Collateral,Name)&lt;/P&gt;&lt;P&gt;I want to read table box for each field and check the Null values and incorrect values present for each field . If there are null values then the row should not be displayed in table box and a counter to count the total records which are not to be displayed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Country county collateral Name&lt;/P&gt;&lt;P&gt;USA FL Fire xyz&lt;/P&gt;&lt;P&gt;UK Bedford Wind ABC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;et Doc = ActiveDocument&lt;/P&gt;&lt;P&gt;ActiveDocument.ClearAll(false)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set tb = ActiveDocument.Sheets("Main").SheetObjects("TB01")&lt;/P&gt;&lt;P&gt;set fld = tb.GetField(1)&lt;/P&gt;&lt;P&gt;msgbox(fld.Name)&lt;/P&gt;&lt;P&gt;For r = 1 to tb.GetRowCount-1&lt;/P&gt;&lt;P&gt;set cell = tb.GetCell(r,2)&lt;/P&gt;&lt;P&gt;msgbox(cell)&lt;/P&gt;&lt;P&gt;if cell is null or len(cell)&amp;lt;6 then&lt;/P&gt;&lt;P&gt;//statement to remove the record from table box.&lt;/P&gt;&lt;P&gt;set counter1 = counter1+1&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the variable Cell is not holding the field value (USA). Please help me to read the content of each field in table box until end of the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 22:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-values-and-total-percentage/m-p/201667#M503566</guid>
      <dc:creator />
      <dc:date>2010-04-07T22:24:36Z</dc:date>
    </item>
  </channel>
</rss>

