<?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: Fetch the First Not NULL Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248644#M461217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do you want this to show?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extending Vijays's Expression you can also use adding a straight table with Year Dim and Expr as below&lt;/P&gt;&lt;P&gt;= Min({&amp;lt; SALE -= {''}&amp;gt;} SALE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2017 22:06:25 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2017-02-09T22:06:25Z</dc:date>
    <item>
      <title>Fetch the First Not NULL Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248639#M461212</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;Hope everybody is good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody please help me for the below scenario?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 128px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="27" width="64"&gt;YEAR&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;SALE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2000&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2001&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2002&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2003&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;678&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2004&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;243&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2005&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;800&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2006&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;&lt;P&gt;456&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I want an expression to fetch the first Year value having NOT NULL value of SALE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In this case I want 2003.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Your Help is appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Srawan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 21:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248639#M461212</guid>
      <dc:creator />
      <dc:date>2017-02-09T21:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the First Not NULL Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248640#M461213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this - &lt;/P&gt;&lt;P&gt;=Min({&amp;lt;SALE={"&amp;lt;&amp;gt;ISNULL()"}&amp;gt;}YEAR)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 21:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248640#M461213</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2017-02-09T21:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the First Not NULL Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248641#M461214</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;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;YEAR = {$(=Min({&amp;lt;YEAR = {"=Sum(SALE) &amp;gt; 0"}&amp;gt;}YEAR))}&amp;gt;}SALE)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 22:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248641#M461214</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-09T22:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the First Not NULL Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248642#M461215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there are really only values for years &amp;gt; 2003, you can try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Min({&amp;lt;SALE = {"*"}&amp;gt;} YEAR)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 22:03:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248642#M461215</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-02-09T22:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the First Not NULL Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248643#M461216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample image and app attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152689_Capture.PNG" style="height: 197px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 22:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248643#M461216</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-09T22:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the First Not NULL Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248644#M461217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do you want this to show?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extending Vijays's Expression you can also use adding a straight table with Year Dim and Expr as below&lt;/P&gt;&lt;P&gt;= Min({&amp;lt; SALE -= {''}&amp;gt;} SALE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 22:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248644#M461217</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-02-09T22:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the First Not NULL Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248645#M461218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's not returning 2003, Sunny &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srawan, if your SALES values could also be just blank, you could also try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Min({&amp;lt;SALE = {"&amp;gt;0"}&amp;gt;}YEAR)&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;=Min({&amp;lt;SALE = {"=Len(Trim(SALE))"} &amp;gt;} YEAR)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 22:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248645#M461218</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-02-09T22:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the First Not NULL Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248646#M461219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if the OP needs to just return the year or the sales associated with that year. If the year is needed, you are bang on target &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 22:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248646#M461219</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-09T22:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the First Not NULL Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248647#M461220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, could be the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option for this would be&lt;/P&gt;&lt;P&gt;=FirstSortedValue({&amp;lt;SALE = {"&amp;gt;0"}&amp;gt;}SALE, YEAR)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 22:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248647#M461220</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-02-09T22:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the First Not NULL Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248648#M461221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp; a lot the solution worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 15:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248648#M461221</guid>
      <dc:creator />
      <dc:date>2017-02-13T15:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the First Not NULL Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248649#M461222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot this worked..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 15:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-the-First-Not-NULL-Value/m-p/1248649#M461222</guid>
      <dc:creator />
      <dc:date>2017-02-13T15:03:45Z</dc:date>
    </item>
  </channel>
</rss>

