<?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: Above ( ) function which is smiliar to lag function used in sql not giving desired result  ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Above-function-which-is-similar-to-lag-function-used-in-sql-not/m-p/877516#M306431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But when I use set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&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;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;-&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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;How can I include Jan of 2014 this way I can get all 12 months&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2015 19:59:33 GMT</pubDate>
    <dc:creator>swarup_malli</dc:creator>
    <dc:date>2015-06-11T19:59:33Z</dc:date>
    <item>
      <title>Above ( ) function which is similar to lag function used in sql not giving desired result  ?</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-which-is-similar-to-lag-function-used-in-sql-not/m-p/877511#M306426</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;In the expression I'm trying to find the difference between 2 rows .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex&amp;nbsp; : Raw data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year&amp;nbsp;&amp;nbsp;&amp;nbsp; Month&amp;nbsp;&amp;nbsp; Sum&lt;/P&gt;&lt;P&gt;2012&amp;nbsp;&amp;nbsp;&amp;nbsp; Dec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;2013&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;2013&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 300&lt;/P&gt;&lt;P&gt;2013&amp;nbsp;&amp;nbsp;&amp;nbsp; March&amp;nbsp;&amp;nbsp; 400&lt;/P&gt;&lt;P&gt;2013&amp;nbsp;&amp;nbsp;&amp;nbsp; April&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 700&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'm trying to get this result by subtracting the value in the value present in the row above from the row below ( see below for ex)&lt;/P&gt;&lt;P&gt;The result should look like ,&lt;/P&gt;&lt;P&gt;2013 Jan&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;2013&amp;nbsp; Feb&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;2013&amp;nbsp; March 100&lt;/P&gt;&lt;P&gt;2014&amp;nbsp; April&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using above() function, for some reason the result does not contain the first month of that year ..in my case the month of jan disappears from&amp;nbsp; the result .Any ideas ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attaching a sample qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 19:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-which-is-similar-to-lag-function-used-in-sql-not/m-p/877511#M306426</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2015-06-11T19:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Above ( ) function which is smiliar to lag function used in sql not giving desired result  ?</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-which-is-similar-to-lag-function-used-in-sql-not/m-p/877512#M306427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have two dimensions Year and Month ... Above() at the the first row of a new year returns Null and the difference between Null and January is Null...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 19:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-which-is-similar-to-lag-function-used-in-sql-not/m-p/877512#M306427</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-06-11T19:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Above ( ) function which is smiliar to lag function used in sql not giving desired result  ?</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-which-is-similar-to-lag-function-used-in-sql-not/m-p/877513#M306428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So Above(TOTAL Amount) will be the right for you...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 19:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-which-is-similar-to-lag-function-used-in-sql-not/m-p/877513#M306428</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-06-11T19:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Above ( ) function which is similar to lag function used in sql not giving desired result  ?</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-which-is-similar-to-lag-function-used-in-sql-not/m-p/877514#M306429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If(RowNo() = 1,Sum(..),&lt;/P&gt;&lt;P&gt;Sum(.. )-Above(Sum(..))&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>Thu, 11 Jun 2015 19:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-which-is-similar-to-lag-function-used-in-sql-not/m-p/877514#M306429</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2015-06-11T19:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Above ( ) function which is smiliar to lag function used in sql not giving desired result  ?</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-which-is-similar-to-lag-function-used-in-sql-not/m-p/877515#M306430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are the man !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 19:15:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-which-is-similar-to-lag-function-used-in-sql-not/m-p/877515#M306430</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2015-06-11T19:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Above ( ) function which is smiliar to lag function used in sql not giving desired result  ?</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-which-is-similar-to-lag-function-used-in-sql-not/m-p/877516#M306431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But when I use set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&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;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;-&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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;How can I include Jan of 2014 this way I can get all 12 months&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 19:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-which-is-similar-to-lag-function-used-in-sql-not/m-p/877516#M306431</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2015-06-11T19:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Above ( ) function which is smiliar to lag function used in sql not giving desired result  ?</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-which-is-similar-to-lag-function-used-in-sql-not/m-p/877517#M306432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you restrict the underlying rows to be only in 2014 you can't really get hold of December 2013. So then you have to include the December value from the previous year but make sure that you don't include it in any other expressions except the one with Above() in it. Then December 2013 shouldn't come up as a row as you have the chart eliminating rows with nulls (that is the standard for all charts at least).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 20:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-which-is-similar-to-lag-function-used-in-sql-not/m-p/877517#M306432</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-06-11T20:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Above ( ) function which is similar to lag function used in sql not giving desired result  ?</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-which-is-similar-to-lag-function-used-in-sql-not/m-p/877518#M306433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Petter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That makes sense, let me start a new thread with a sample qvw, because when I convert the pivot into a cross table (by dragging the dim upwards) I again get dashes '-' instead of valid data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm pasting the new thread &lt;A _jive_internal="true" href="https://community.qlik.com/message/795670#795670"&gt;here.&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 20:09:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-which-is-similar-to-lag-function-used-in-sql-not/m-p/877518#M306433</guid>
      <dc:creator>swarup_malli</dc:creator>
      <dc:date>2015-06-11T20:09:29Z</dc:date>
    </item>
  </channel>
</rss>

