<?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: How can I identify null field(s) in data source? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774095#M1028823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. Switch will work for you. Below is the syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="dp-c" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; list-style-position: initial; list-style-image: initial; color: #5c5c5c; margin-bottom: 1px !important; margin-left: 45px !important;"&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt; SWITCH RESERVELOCATION&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CASE 001&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD TRIM(PSAREA) &amp;amp; TRIM(PSZONE) &amp;amp; Left(TRIM(PSAISL),1) &amp;amp; Right(TRIM(PSAISL),1) &amp;amp; TRIM(PSBAY);&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CASE 003&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD TRIM(PSAISL) &amp;amp; TRIM(PSLEVL) &amp;amp; TRIM(PSPOSN);&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEFAULT&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD TRIM(PSAISL) &amp;amp; TRIM(PSLEVL) &amp;amp; TRIM(PSPOSN);&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END SWITCH;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2015 17:36:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-23T17:36:49Z</dc:date>
    <item>
      <title>How can I identify null field(s) in data source?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774091#M1028819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Dear QV community,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;I’d be grateful if you could help me with the following issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;I need to identify which field (or fields) are null in my data source.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Suppose I have to validate 03 fields&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FLD1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FLD2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FLD3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;For 03 fields, there are 07 possibilities&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;‘FLD1 is empty’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;‘FLD2 is empty’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;‘FLD3 is empty’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;‘FLD1 and FLD2 are empty’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;‘FLD2 and FLD3 are empty’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;‘FLD1 and FLD3 are empty’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;‘FLD1, FLD2 and FLD3 are empty’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;For 03 fields only, I’d be rather simple to solve using a structure of nested if’s and isnull() function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;But unfortunately I have to validate ‘n’ fields, so I think nested if’s would be pretty complicated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Is there any other structure available in QLIKVIEW to perform the validation above?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Leonardo&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 16:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774091#M1028819</guid>
      <dc:creator />
      <dc:date>2015-02-23T16:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify null field(s) in data source?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774092#M1028820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess it depends on where you're going with this but is the Information Density feature of the Table Viewer not what you're after?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 17:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774092#M1028820</guid>
      <dc:creator>lawrenceiow</dc:creator>
      <dc:date>2015-02-23T17:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify null field(s) in data source?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774093#M1028821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might look at the SWITCH keyword in script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 17:09:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774093#M1028821</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2015-02-23T17:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify null field(s) in data source?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774094#M1028822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;Given that more than one field can be null, I need to store in one field the resulting text that clearly depicts which fields are empty. Think it as a "data quality" check. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the example:&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;‘FLD1 is empty’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;‘FLD2 is empty’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;‘FLD3 is empty’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;‘FLD1 and FLD2 are empty’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;‘FLD2 and FLD3 are empty’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;‘FLD1 and FLD3 are empty’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;‘FLD1, FLD2 and FLD3 are empty’&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;So I need to store in one field the text that describes which field(s) are empty.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 17:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774094#M1028822</guid>
      <dc:creator />
      <dc:date>2015-02-23T17:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify null field(s) in data source?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774095#M1028823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. Switch will work for you. Below is the syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="dp-c" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; list-style-position: initial; list-style-image: initial; color: #5c5c5c; margin-bottom: 1px !important; margin-left: 45px !important;"&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt; SWITCH RESERVELOCATION&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CASE 001&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD TRIM(PSAREA) &amp;amp; TRIM(PSZONE) &amp;amp; Left(TRIM(PSAISL),1) &amp;amp; Right(TRIM(PSAISL),1) &amp;amp; TRIM(PSBAY);&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CASE 003&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD TRIM(PSAISL) &amp;amp; TRIM(PSLEVL) &amp;amp; TRIM(PSPOSN);&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEFAULT&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD TRIM(PSAISL) &amp;amp; TRIM(PSLEVL) &amp;amp; TRIM(PSPOSN);&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END SWITCH;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 17:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774095#M1028823</guid>
      <dc:creator />
      <dc:date>2015-02-23T17:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify null field(s) in data source?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774096#M1028824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies, I don't have the answer but could you clarify something ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you seeking to find which RECORDS have empty FIELDS or which FIELDS over the entire dataset are empty?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for any given record you would like a field to inform you that Fields 1 and 4 (for example) are empty .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Over the entire dataset (table) you need to know that no records contain values in Fields 1 and 4 (for example).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 17:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774096#M1028824</guid>
      <dc:creator>lawrenceiow</dc:creator>
      <dc:date>2015-02-23T17:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify null field(s) in data source?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774097#M1028825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry I was not clear, my fault&lt;/P&gt;&lt;P&gt;It's the first situation: For any given record I would like a field to inform that fields 1 and 4 are empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 17:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774097#M1028825</guid>
      <dc:creator />
      <dc:date>2015-02-23T17:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify null field(s) in data source?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774098#M1028826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After you loaded your data, you could try something like this (using "base 2" strategy):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_fld1 = IF(FieldIndex( 'FLD1', Null( ) ) &amp;lt;&amp;gt; 0, 1, 0);&amp;nbsp;&amp;nbsp; // 1 = 2^0&lt;/P&gt;&lt;P&gt;v_fld2 = IF(FieldIndex( 'FLD2', Null( ) ) &amp;lt;&amp;gt; 0, 2, 0);&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; // 2 = 2^1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;v_fld3 = IF(FieldIndex( 'FLD3', Null( ) ) &amp;lt;&amp;gt; 0, 4, 0);&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; // 4 = 2^2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;v_fld4 = IF(FieldIndex( 'FLD4', Null( ) ) &amp;lt;&amp;gt; 0, 8, 0);&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; // 8 = 2^3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would then just need to compare the value of the sum of all the v_fld* variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 --&amp;gt; No null values exist&lt;/P&gt;&lt;P&gt;1 --&amp;gt; Only FLD1 has a null value&lt;/P&gt;&lt;P&gt;2.--&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Only FLD2 has a null value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;3 --&amp;gt; FLD1 and FLD2 have a null value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;4 --&amp;gt; Only FLD3 has a null value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;5.--&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;FLD1 and FLD3 have a null value&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;6 --&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;FLD2 and FLD3 have a null value&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;7 --&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;FLD1, FLD2, and FLD3 have a null value&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;8 --&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Only FLD4 has a null value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;9 --&amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;FLD1 and FLD4 have a null value&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;etc etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can put this whole list into a SWITCH statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;switch v_fld1 + v_fld2 + v_fld3 + v_fld4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;case 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v_result = '&lt;SPAN style="font-size: 13.3333330154419px;"&gt;No null values exist';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;case 2&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v_result = '&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Only FLD1 has a null value&lt;/SPAN&gt;';&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;end switch&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hope this helps.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 18:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774098#M1028826</guid>
      <dc:creator />
      <dc:date>2015-02-23T18:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify null field(s) in data source?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774099#M1028827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it with Base2 flags as Ruben suggested, but here's what I think is an easier bit of script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// Create some test data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NullMap:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Mapping LOAD 0,null() AutoGenerate 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MAP FLD1, FLD2, FLD3 USING NullMap;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FLD1, FLD2, FLD3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;0,1,1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1,0,1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1,1,0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;0,0,1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1,0,0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;0,0,0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt; line-height: 1.5em;"&gt;//Flag which fields have null&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt; line-height: 1.5em;"&gt;data2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; IsNull(FLD1) * -1 + IsNull(FLD2) * -2+&amp;nbsp; IsNull(FLD3) * -4 as Flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Resident data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP TABLE data;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will generate Flag values 1-7 corresponding to your seven possible states. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-02-23_11-18-48.jpg" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/78850_2015-02-23_11-18-48.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&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 style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com" rel="nofollow"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 19:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774099#M1028827</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-02-23T19:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify null field(s) in data source?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774100#M1028828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, thank you for your help. It is actually an elegant solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 19:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-identify-null-field-s-in-data-source/m-p/774100#M1028828</guid>
      <dc:creator />
      <dc:date>2015-02-23T19:30:35Z</dc:date>
    </item>
  </channel>
</rss>

