<?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: Way around Above ( ) function ?similar to Lag function in SQL or oracle in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Way-around-Above-function-similar-to-Lag-function-in-SQL-or/m-p/879030#M306873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to implement before () in one more chart ,if you guys are interested you can find it &lt;A _jive_internal="true" href="https://community.qlik.com/message/798758#798758"&gt;here &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2015 14:58:09 GMT</pubDate>
    <dc:creator>swarup_malli</dc:creator>
    <dc:date>2015-06-16T14:58:09Z</dc:date>
    <item>
      <title>Way around Above ( ) function ?similar to Lag function in SQL or oracle</title>
      <link>https://community.qlik.com/t5/QlikView/Way-around-Above-function-similar-to-Lag-function-in-SQL-or/m-p/879026#M306869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using above function to subtract upper row from the lower .It works fine when I use 2 dimensions ( year and&amp;nbsp; month ),because it displays all the years and months.See fig below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="above 1.png" class="jive-image image-1" src="/legacyfs/online/89186_above 1.png" style="height: 225px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is ,I want to show values for a particular year, which I have done using set analysis.The problem is when I use set analysis&lt;/P&gt;&lt;P&gt;See below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Sum ({&amp;lt;REPORT_YEAR={2014}&amp;gt;}FLIGHT_HRS) &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;/ COUNT({&amp;lt;REPORT_YEAR={2014}&amp;gt;} AC_SERIAL) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;* COUNT({&amp;lt;REPORT_YEAR={2014}&amp;gt;} AC_SERIAL)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;-&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;above( total(Sum ({&amp;lt;REPORT_YEAR={2014}&amp;gt;}FLIGHT_HRS) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;/ COUNT({&amp;lt;REPORT_YEAR={2014}&amp;gt;} AC_SERIAL) )&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;* COUNT({&amp;lt;REPORT_YEAR={2014}&amp;gt;} AC_SERIAL)) &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I again lose the month of jan because of this condition &lt;STRONG&gt;&lt;EM&gt;REPORT_YEAR={2014},&lt;/EM&gt;&lt;/STRONG&gt;because I'm &lt;STRONG&gt;excluding Dec 2013,thus Dec 2013&lt;/STRONG&gt; is null .And &lt;STRONG&gt;&lt;EM&gt;Null minus null is null&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;See fig below&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Above 2.png" class="jive-image image-2" src="/legacyfs/online/89187_Above 2.png" style="height: 170px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get nothing after converting the pivot into cross table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See fig below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Above 3.png" class="jive-image image-3" src="/legacyfs/online/89188_Above 3.png" style="height: 137px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attaching a sample app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 21:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Way-around-Above-function-similar-to-Lag-function-in-SQL-or/m-p/879026#M306869</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2015-06-11T21:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Way around Above ( ) function ?similar to Lag function in SQL or oracle</title>
      <link>https://community.qlik.com/t5/QlikView/Way-around-Above-function-similar-to-Lag-function-in-SQL-or/m-p/879027#M306870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Man... i used the following, attached is&amp;nbsp; the qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum ({&amp;lt;REPORT_YEAR={2014}&amp;gt;}FLIGHT_HRS) &lt;/P&gt;&lt;P&gt;/ COUNT({&amp;lt;REPORT_YEAR={2014}&amp;gt;} AC_SERIAL) &lt;/P&gt;&lt;P&gt;* COUNT({&amp;lt;REPORT_YEAR={2014}&amp;gt;} AC_SERIAL)&lt;/P&gt;&lt;P&gt; )&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;if(rowno()=1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //previous&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Sum (TOTAL{&amp;lt;MONTH_NAME={'dec'}, REPORT_YEAR={"&amp;lt;2014"}&amp;gt;}FLIGHT_HRS) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / COUNT(TOTAL{&amp;lt;MONTH_NAME={'dec'},REPORT_YEAR={"&amp;lt;2014"}&amp;gt;} AC_SERIAL) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * COUNT(TOTAL{&amp;lt;MONTH_NAME={'dec'},REPORT_YEAR={"&amp;lt;2014"}&amp;gt;} AC_SERIAL)&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; above( total(Sum ({&amp;lt;REPORT_YEAR={2014}&amp;gt;}FLIGHT_HRS) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / COUNT({&amp;lt;REPORT_YEAR={2014}&amp;gt;} AC_SERIAL) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * COUNT({&amp;lt;REPORT_YEAR={2014}&amp;gt;} AC_SERIAL)) &lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 21:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Way-around-Above-function-similar-to-Lag-function-in-SQL-or/m-p/879027#M306870</guid>
      <dc:creator>arthur_dom</dc:creator>
      <dc:date>2015-06-11T21:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Way around Above ( ) function ?similar to Lag function in SQL or oracle</title>
      <link>https://community.qlik.com/t5/QlikView/Way-around-Above-function-similar-to-Lag-function-in-SQL-or/m-p/879028#M306871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="2015-06-12 #1.PNG" class="jive-image image-1" src="/legacyfs/online/89167_2015-06-12 #1.PNG" style="height: 208px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 22:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Way-around-Above-function-similar-to-Lag-function-in-SQL-or/m-p/879028#M306871</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-06-11T22:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Way around Above ( ) function ?similar to Lag function in SQL or oracle</title>
      <link>https://community.qlik.com/t5/QlikView/Way-around-Above-function-similar-to-Lag-function-in-SQL-or/m-p/879029#M306872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to make the result cumulative ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;Currently looks like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Cumulative 1.png" class="jive-image image-1" src="/legacyfs/online/89301_Cumulative 1.png" style="height: 36px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Want the result to look like&lt;/P&gt;&lt;P&gt;&lt;IMG alt="cumulative 2.png" class="jive-image image-2" src="/legacyfs/online/89302_cumulative 2.png" style="height: 31px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm starting a new thread for this &lt;A _jive_internal="true" href="https://community.qlik.com/message/796432#796432"&gt;here.&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 17:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Way-around-Above-function-similar-to-Lag-function-in-SQL-or/m-p/879029#M306872</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2015-06-12T17:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Way around Above ( ) function ?similar to Lag function in SQL or oracle</title>
      <link>https://community.qlik.com/t5/QlikView/Way-around-Above-function-similar-to-Lag-function-in-SQL-or/m-p/879030#M306873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to implement before () in one more chart ,if you guys are interested you can find it &lt;A _jive_internal="true" href="https://community.qlik.com/message/798758#798758"&gt;here &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 14:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Way-around-Above-function-similar-to-Lag-function-in-SQL-or/m-p/879030#M306873</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2015-06-16T14:58:09Z</dc:date>
    </item>
  </channel>
</rss>

