<?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: nullcounts of all fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/nullcounts-of-all-fields/m-p/265985#M585993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to work with $Field as the dimension.&amp;nbsp; You have to list each table you care about separately since you have a different ID to count for each table.&amp;nbsp; I suspect in your case all the fields you care about are on a single table so you can simplify that part.&amp;nbsp; There's probably a simpler way than this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;pick(match($Table,'MainTable','OtherTable')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,count(ID)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;-pick(match($Field,'$(=concat($Field,chr(39)&amp;amp;','&amp;amp;chr(39)))')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;$(=concat(',count({&amp;lt;['&amp;amp;$Field&amp;amp;']-={}&amp;gt;} ID)')))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,count(ID2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;-pick(match($Field,'$(=concat($Field,chr(39)&amp;amp;','&amp;amp;chr(39)))')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;$(=concat(',count({&amp;lt;['&amp;amp;$Field&amp;amp;']-={}&amp;gt;} ID2)'))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Edit: OK, here's a little simpler.&amp;nbsp; I still think it should be easier than this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;pick(match($Table,'MainTable','OtherTable'),count(ID),count(ID2))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;-pick(match($Field,'$(=concat($Field,chr(39)&amp;amp;','&amp;amp;chr(39),$FieldNo))')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,count([$(=concat($Field,']),count([',$FieldNo))]))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2011 22:26:42 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-07-07T22:26:42Z</dc:date>
    <item>
      <title>nullcounts of all fields</title>
      <link>https://community.qlik.com/t5/QlikView/nullcounts-of-all-fields/m-p/265984#M585992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if there was an easy way to leverage the system field, $Field, in order to set up a table that lists the field name and its nullcount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the output to be something like:&lt;/P&gt;&lt;P&gt;FieldName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NullCount&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;Age&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;Region&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;Address&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 47&lt;/P&gt;&lt;P&gt;Email&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&lt;/P&gt;&lt;P&gt;SSN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 28437&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can write script and loop through all the field names and get the nullcounts that way, but I would like to keep the association on the calculation as well. For example, if I pick USA as the region, obviously the NullCount for Region would go down to 0, but I would be able to see the nullcounts of all other fields where Region is USA. Is there a way to do this, without brute force?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 21:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nullcounts-of-all-fields/m-p/265984#M585992</guid>
      <dc:creator>phersan_sme</dc:creator>
      <dc:date>2011-07-07T21:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: nullcounts of all fields</title>
      <link>https://community.qlik.com/t5/QlikView/nullcounts-of-all-fields/m-p/265985#M585993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to work with $Field as the dimension.&amp;nbsp; You have to list each table you care about separately since you have a different ID to count for each table.&amp;nbsp; I suspect in your case all the fields you care about are on a single table so you can simplify that part.&amp;nbsp; There's probably a simpler way than this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;pick(match($Table,'MainTable','OtherTable')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,count(ID)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;-pick(match($Field,'$(=concat($Field,chr(39)&amp;amp;','&amp;amp;chr(39)))')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;$(=concat(',count({&amp;lt;['&amp;amp;$Field&amp;amp;']-={}&amp;gt;} ID)')))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,count(ID2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;-pick(match($Field,'$(=concat($Field,chr(39)&amp;amp;','&amp;amp;chr(39)))')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;$(=concat(',count({&amp;lt;['&amp;amp;$Field&amp;amp;']-={}&amp;gt;} ID2)'))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Edit: OK, here's a little simpler.&amp;nbsp; I still think it should be easier than this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;pick(match($Table,'MainTable','OtherTable'),count(ID),count(ID2))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;-pick(match($Field,'$(=concat($Field,chr(39)&amp;amp;','&amp;amp;chr(39),$FieldNo))')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,count([$(=concat($Field,']),count([',$FieldNo))]))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 22:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nullcounts-of-all-fields/m-p/265985#M585993</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-07-07T22:26:42Z</dc:date>
    </item>
  </channel>
</rss>

