<?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: number of null values... optimized in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/number-of-null-values-optimized/m-p/1041932#M350576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob, I will have a look.&lt;/P&gt;&lt;P&gt;I'm loading the actual data.... Loading the XML header never comes in my mind.... I will try it. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2016 05:11:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-21T05:11:04Z</dc:date>
    <item>
      <title>number of null values... optimized</title>
      <link>https://community.qlik.com/t5/QlikView/number-of-null-values-optimized/m-p/1041928#M350572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have idea anymore, my brain is pretty dry.&lt;/P&gt;&lt;P&gt;I'm doing&amp;nbsp; QVD audit. I load each QVD, catch the metadata and the structure.&lt;/P&gt;&lt;P&gt;For each field, I take the field Name, number of distinct values. so far so good.&lt;/P&gt;&lt;P&gt;The problem comes when I try to catch the number of null values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried many thing as quering such as :&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;NULL_COUNT:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LOAD MyField resident Mytable where isnull(myfield);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;set NullCount = NoOfRows(MyTable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;It's working but tooooo slow (I need to audit bunch of QVD).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;another tried was around NullAsValue and NullValue...&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;not really successful ...yet (I couldn't find a way to get the frequency of the default value)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;n an ideal situation I can get a function : FieldNullValueCount(MyField)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Alternatively, I'm happy if we can find a function to do a count (similar to FieldValueCount how is doing a distinct). with a count of values and the NoOfRows () I can calculate the null ones.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Or something as Subset Ratio, Density, Non-null values from Qliksens&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Any thought?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 01:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/number-of-null-values-optimized/m-p/1041928#M350572</guid>
      <dc:creator />
      <dc:date>2016-01-21T01:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: number of null values... optimized</title>
      <link>https://community.qlik.com/t5/QlikView/number-of-null-values-optimized/m-p/1041929#M350573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure about that. But there is a function to find the Null Value Count. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NullCount()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;From the Qv help..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/112175_Capture.JPG" style="height: 162px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 03:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/number-of-null-values-optimized/m-p/1041929#M350573</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-01-21T03:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: number of null values... optimized</title>
      <link>https://community.qlik.com/t5/QlikView/number-of-null-values-optimized/m-p/1041930#M350574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you loading the metadata from the XML header or by loading the actual data? You can get number of values quickly from the XML header, but I don't see null value counts in there. Tools like QViewer and TIQ Profiler display the number of null values rather quickly, so I image they are looking at the symbol tables directly. Perhaps one of those authors will add something to this thread. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 04:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/number-of-null-values-optimized/m-p/1041930#M350574</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-01-21T04:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: number of null values... optimized</title>
      <link>https://community.qlik.com/t5/QlikView/number-of-null-values-optimized/m-p/1041931#M350575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Even if it's a right answer, I cannot use that because it's parsing the table and my script is generic. So it's take as my 1st try a really long run :S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 05:09:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/number-of-null-values-optimized/m-p/1041931#M350575</guid>
      <dc:creator />
      <dc:date>2016-01-21T05:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: number of null values... optimized</title>
      <link>https://community.qlik.com/t5/QlikView/number-of-null-values-optimized/m-p/1041932#M350576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob, I will have a look.&lt;/P&gt;&lt;P&gt;I'm loading the actual data.... Loading the XML header never comes in my mind.... I will try it. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 05:11:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/number-of-null-values-optimized/m-p/1041932#M350576</guid>
      <dc:creator />
      <dc:date>2016-01-21T05:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: number of null values... optimized</title>
      <link>https://community.qlik.com/t5/QlikView/number-of-null-values-optimized/m-p/1041933#M350577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the XML header there is Number of symbols give my the count distinct but I don't see any field for the count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 05:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/number-of-null-values-optimized/m-p/1041933#M350577</guid>
      <dc:creator />
      <dc:date>2016-01-21T05:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: number of null values... optimized</title>
      <link>https://community.qlik.com/t5/QlikView/number-of-null-values-optimized/m-p/1041934#M350578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I don't know your exact requirements in terms of where you want to output the audit result (in a text file? In a QV table?), but yet the following might work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop through all your fields to build:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;A Fields table with: FieldName, FieldId&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;An expresion variable like so: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; =pick ( FieldId, NullValueCount(field1), etc....&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;Then create a chart with Dimension = FieldName, and Expression = $(=Expression). That should do the trick hopefully...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 17:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/number-of-null-values-optimized/m-p/1041934#M350578</guid>
      <dc:creator>jcamps</dc:creator>
      <dc:date>2016-01-21T17:58:26Z</dc:date>
    </item>
  </channel>
</rss>

