<?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: First non null value, regardless selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332271#M830982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maje he bhai tere&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jun 2017 11:58:41 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2017-06-21T11:58:41Z</dc:date>
    <item>
      <title>First non null value, regardless selection</title>
      <link>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332266#M830977</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;I've attached an app sample and data file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the app I explain the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get the first non null value, even if the first month of the monthyear selection, does not have value.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;- if I select from fev-2017 to mai-2017, the first non null value is 14079,37. Which is correct. And I want to repeat that number in every month.&lt;/P&gt;&lt;P&gt;. If I select from jan-2017 to mai-2017, the first non null value is still 14079,37. Even though there is no vaue in jan. So I want to repeat that number in every month too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bottom of line, regardless the first month I select have or not value, I want to get the first non null value and repeat it in every month after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Image below is my expected result.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="167592" alt="expected.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167592_expected.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced,&lt;/P&gt;&lt;P&gt;Sílvia&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/First-non-null-value-regardless-selection/m-p/1332266#M830977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: First non null value, regardless selection</title>
      <link>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332267#M830978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Data:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;Code,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;if(rowno()=1,&lt;SPAN style="font-size: 13.3333px;"&gt;Value,peek('NewValue')) as &lt;SPAN style="font-size: 13.3333px;"&gt;NewValue,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MonthYear,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FaseActive,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Active,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Value,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Metric,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Date,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Flag&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM Table;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 09:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332267#M830978</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-06-21T09:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: First non null value, regardless selection</title>
      <link>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332268#M830979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kushal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I cannot do this via script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to achieve this via set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sílvia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 09:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332268#M830979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-21T09:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: First non null value, regardless selection</title>
      <link>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332269#M830980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;=if(rowno()=1,sum(Value), above(total sum(Value))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 10:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332269#M830980</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-06-21T10:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: First non null value, regardless selection</title>
      <link>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332270#M830981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey hey... I just might get a chance for another coffee here.... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg(Aggr(FirstSortedValue(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;Value = {'*'}&amp;gt;}&lt;/SPAN&gt;TOTAL &amp;lt;Code&amp;gt; Aggr(SUM ({&amp;lt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Metric = {"Sales"}, &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Value = {'*'}&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;, Active={"1"}&amp;gt;}Value), Code, Date), Aggr(Only(Date), Code, Date))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(distinct&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&amp;lt;Active={"1"},Flag = {'CR'}&amp;gt;} Code), Code, MonthYear))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 11:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332270#M830981</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-21T11:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: First non null value, regardless selection</title>
      <link>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332271#M830982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maje he bhai tere&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 11:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332271#M830982</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-06-21T11:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: First non null value, regardless selection</title>
      <link>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332272#M830983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And once again, a cup of coffee to you Sunny, thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a few twists to make it work in my app, but it did worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sílvia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 14:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332272#M830983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-21T14:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: First non null value, regardless selection</title>
      <link>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332273#M830984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome... how many coffee do I have so far &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 14:51:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332273#M830984</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-21T14:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: First non null value, regardless selection</title>
      <link>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332274#M830985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not counting, but I believe that enough to stay awake at least one month straight &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 14:57:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-non-null-value-regardless-selection/m-p/1332274#M830985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-21T14:57:25Z</dc:date>
    </item>
  </channel>
</rss>

