<?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: Select the second field value if the first field value is null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983123#M335522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes it's Alt Function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Dec 2015 08:34:29 GMT</pubDate>
    <dc:creator>mdmukramali</dc:creator>
    <dc:date>2015-12-24T08:34:29Z</dc:date>
    <item>
      <title>Select the second field value if the first field value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983117#M335516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to create a new field which contains A values, if any place A value is missing (Null) then it should select the value from second&amp;nbsp; B field.&lt;/P&gt;&lt;P&gt;i don't remember the function for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;A,B&lt;/P&gt;&lt;P&gt;1,&lt;/P&gt;&lt;P&gt;,4&lt;/P&gt;&lt;P&gt;2,3&lt;/P&gt;&lt;P&gt;6,2&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * ,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;{FUNCTION}&lt;/STRONG&gt;&lt;/SPAN&gt; (A,B) AS NewField&lt;/P&gt;&lt;P&gt;Resident a;&lt;/P&gt;&lt;P&gt;DROP Table a;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTPUT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;NewField&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;mukram&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 08:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983117#M335516</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2015-12-24T08:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select the second field value if the first field value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983118#M335517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with Peek() and Previous() function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 08:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983118#M335517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-24T08:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select the second field value if the first field value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983119#M335518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replace &lt;STRONG style="font-size: 18.6667px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{FUNCTION}&lt;/STRONG&gt; with &lt;EM&gt;ALT&lt;/EM&gt;. The &lt;SPAN style="font-family: 'courier new', courier;"&gt;Alt()&lt;/SPAN&gt; function will choose the first non-NULL value from a list of parameters. Alt(A,B) will select A, or B if A contains a NULL (or non-numeric) value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 08:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983119#M335518</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-12-24T08:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select the second field value if the first field value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983120#M335519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The function u are looking for is ALT()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 08:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983120#M335519</guid>
      <dc:creator>shaileshyerram</dc:creator>
      <dc:date>2015-12-24T08:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select the second field value if the first field value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983121#M335520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; *, &lt;/P&gt;&lt;P&gt;&amp;nbsp; If(IsNull(A) or Len(Trim(A))=0, B, A) as NewField &lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; A,B&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,4&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2,3&lt;/P&gt;&lt;P&gt;&amp;nbsp; 6,2&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 08:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983121#M335520</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-12-24T08:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Select the second field value if the first field value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983122#M335521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, so ALT() will pick alternate values..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What If I am having multiple continous null values like?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A, B&lt;/P&gt;&lt;P&gt;1,&lt;/P&gt;&lt;P&gt;, 3&lt;/P&gt;&lt;P&gt;, 4&lt;/P&gt;&lt;P&gt;, 5&lt;/P&gt;&lt;P&gt;2, &lt;/P&gt;&lt;P&gt;7, &lt;/P&gt;&lt;P&gt;8,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 08:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983122#M335521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-24T08:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select the second field value if the first field value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983123#M335522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes it's Alt Function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 08:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983123#M335522</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2015-12-24T08:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select the second field value if the first field value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983124#M335523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's works with system variable "NULLINTERPRET":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;NULLINTERPRET&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; =&amp;lt;null&amp;gt;;&lt;BR /&gt; a:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[A,B&lt;BR /&gt; 1,&amp;lt;null&amp;gt;&lt;BR /&gt; &amp;lt;null&amp;gt;,4&lt;BR /&gt; 2,3&lt;BR /&gt; 6,2&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 08:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983124#M335523</guid>
      <dc:creator>asgardd2</dc:creator>
      <dc:date>2015-12-24T08:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select the second field value if the first field value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983125#M335524</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;Try like this&lt;/P&gt;&lt;P&gt;LOAD *, If(Len(Trim(A))=0, B, A) as C Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;A, B&lt;/P&gt;&lt;P&gt;1,&lt;/P&gt;&lt;P&gt;, 3&lt;/P&gt;&lt;P&gt;, 4&lt;/P&gt;&lt;P&gt;, 5&lt;/P&gt;&lt;P&gt;2,&lt;/P&gt;&lt;P&gt;7,&lt;/P&gt;&lt;P&gt;8,&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 08:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983125#M335524</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2015-12-24T08:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select the second field value if the first field value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983126#M335525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apparently, the output needs to be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NewField&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only restriction Mohammed should take into account is that for every missing A-value, there should be a B-value, or he'll still end up with NULLs in field NewField.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 08:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983126#M335525</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-12-24T08:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select the second field value if the first field value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983127#M335526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 08:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-second-field-value-if-the-first-field-value-is-null/m-p/983127#M335526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-24T08:44:47Z</dc:date>
    </item>
  </channel>
</rss>

