<?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 choose the first non-null value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/choose-the-first-non-null-value/m-p/1320022#M836000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I got three variables&lt;/P&gt;&lt;P&gt;v1, v2, and v3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to use these inside an expression but as follows:&lt;/P&gt;&lt;P&gt;if($(v1) is not null null then $(v1)&lt;/P&gt;&lt;P&gt;if($(v1) is null then if $(v2) is null then $(v3) else $(v2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a way or a function that chooses the first non null value ?&lt;/P&gt;&lt;P&gt;the priority is for V1, then V2 and finally V3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>choose the first non-null value</title>
      <link>https://community.qlik.com/t5/QlikView/choose-the-first-non-null-value/m-p/1320022#M836000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I got three variables&lt;/P&gt;&lt;P&gt;v1, v2, and v3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to use these inside an expression but as follows:&lt;/P&gt;&lt;P&gt;if($(v1) is not null null then $(v1)&lt;/P&gt;&lt;P&gt;if($(v1) is null then if $(v2) is null then $(v3) else $(v2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a way or a function that chooses the first non null value ?&lt;/P&gt;&lt;P&gt;the priority is for V1, then V2 and finally V3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/choose-the-first-non-null-value/m-p/1320022#M836000</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: choose the first non-null value</title>
      <link>https://community.qlik.com/t5/QlikView/choose-the-first-non-null-value/m-p/1320023#M836001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1) If($(v1) &amp;lt;&amp;gt; '0' or $(v1) &amp;lt;&amp;gt; ' ' or $(v1) &amp;lt;&amp;gt; '-', $(v1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) If(IsNull($(v1)), If(IsNull($(v2)), $(v3), $(v2)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 12:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/choose-the-first-non-null-value/m-p/1320023#M836001</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-23T12:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: choose the first non-null value</title>
      <link>https://community.qlik.com/t5/QlikView/choose-the-first-non-null-value/m-p/1320024#M836002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe&lt;/P&gt;&lt;P&gt;Alt(V1,V2,V3)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 14:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/choose-the-first-non-null-value/m-p/1320024#M836002</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-05-23T14:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: choose the first non-null value</title>
      <link>https://community.qlik.com/t5/QlikView/choose-the-first-non-null-value/m-p/1320025#M836003</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;Maybe this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;If(not IsNull($(v1)), $(v1),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(IsNull($(v1)), if(IsNull($(v2)),$(v3),$(v2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&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; )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 11:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/choose-the-first-non-null-value/m-p/1320025#M836003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-24T11:29:05Z</dc:date>
    </item>
  </channel>
</rss>

