<?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 Above Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Above-Function/m-p/666634#M242516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one explain me with examples how to use above function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2014 08:41:44 GMT</pubDate>
    <dc:creator>upaliwije</dc:creator>
    <dc:date>2014-06-27T08:41:44Z</dc:date>
    <item>
      <title>Above Function</title>
      <link>https://community.qlik.com/t5/QlikView/Above-Function/m-p/666634#M242516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one explain me with examples how to use above function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 08:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-Function/m-p/666634#M242516</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2014-06-27T08:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Above Function</title>
      <link>https://community.qlik.com/t5/QlikView/Above-Function/m-p/666635#M242517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the help file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor315"&gt;&lt;/A&gt;&lt;A name="above"&gt;&lt;/A&gt;&lt;EM&gt;&lt;SPAN class="Bold"&gt;&lt;STRONG&gt;above(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="Italic"&gt;[ &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; ] expression [ , offset [,n ]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;/P&gt;&lt;P&gt;Returns the value of &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt; evaluated with the chart's dimension values as they appear on the row above the current row within a column segment in a table or, in the case of bitmap charts, in the chart's straight table equivalent (Actually all QlikView charts have a straight table equivalent with the exception of the pivot table which has a more complex structure.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the first row of a column segment a NULL value will be returned, as there is no row above this one.&lt;/P&gt;&lt;P&gt;If the chart is one-dimensional or if the &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt; is preceded by the &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; qualifier, the current column segment is always equal to the entire column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the table or table equivalent has multiple vertical dimensions, the current column segment will include only rows with the same values as the current row in all dimension columns except for the column showing the last dimension in the inter field sort order. The inter field sort order for pivot tables is defined simply by the order of the dimensions from left to right. For other chart types this can be manipulated in the &lt;SPAN class="Bold"&gt;Chart Properties: Sort&lt;/SPAN&gt; dialog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifying an &lt;SPAN class="Italic"&gt;offset&lt;/SPAN&gt; greater than 1 lets you move the evaluation of &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt; to rows further up the current row. A negative &lt;SPAN class="Italic"&gt;offset&lt;/SPAN&gt; number will actually make the &lt;SPAN class="Bold"&gt;above&lt;/SPAN&gt; function equivalent to a &lt;SPAN class="Bold"&gt;below&lt;/SPAN&gt; function with the corresponding positive &lt;SPAN class="Italic"&gt;offset&lt;/SPAN&gt; number. Specifying an &lt;SPAN class="Italic"&gt;offset&lt;/SPAN&gt; of 0 will evaluate the &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt; on the current row. Recursive calls will return NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By specifying a third parameter &lt;SPAN class="Italic"&gt;n&lt;/SPAN&gt; greater than 1, the function will return not one but a range of &lt;SPAN class="Italic"&gt;n&lt;/SPAN&gt; values, one for each of &lt;SPAN class="Italic"&gt;n&lt;/SPAN&gt; table rows counting upwards from the original cell. In this form, the function can be used as an argument to any of the special &lt;A class="MCXref_0"&gt;&lt;EM&gt;Chart Range Functions&lt;/EM&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P class="example"&gt;&lt;/P&gt;&lt;P class="example"&gt;&lt;STRONG&gt;Examples:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="Code"&gt;sum( Sales ) / above( sum( Sales ))&lt;/P&gt;&lt;P class="Code"&gt;above( sum( Sales ), 2 )&lt;/P&gt;&lt;P class="Code"&gt;above( total sum( Sales ))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE cellspacing="0" class="TableStyle-LeftBold" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="margin-right: auto;"&gt;&lt;TBODY&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1" style="width: 192px;"&gt;rangeavg (above(sum(x),1,3))&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;returns an average of the three results of the sum(x) function evaluated on the three rows immediately above the current row.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 09:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-Function/m-p/666635#M242517</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-27T09:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Above Function</title>
      <link>https://community.qlik.com/t5/QlikView/Above-Function/m-p/1603200#M444488</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Above simply takes a value from the row Above the current row. It can be used to calculate an accumulating total.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;suppose i have&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;name:&amp;nbsp; &amp;nbsp; &amp;nbsp; sum( salary)&amp;nbsp; &amp;nbsp; above(sum(salary))&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;venkat&amp;nbsp; &amp;nbsp; &amp;nbsp;1000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ramu&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rabga&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;now we are using&amp;nbsp; with offset value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i want&amp;nbsp; above(sum(salary))-sum(salary) for 3 record then it gives 1000 as the value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so as per the requirment&amp;nbsp; we can do different ways&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 12:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-Function/m-p/1603200#M444488</guid>
      <dc:creator>Koniki</dc:creator>
      <dc:date>2019-07-17T12:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Above Function</title>
      <link>https://community.qlik.com/t5/QlikView/Above-Function/m-p/1649954#M447759</link>
      <description>&lt;P&gt;As per the explaination its sound good. But what If i want to have a subraction of average of first two rows - third row value i.e. based on your example I would like to do like this ((100+3000)/2) - 2000 in Qlik sense.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does below logic is correct ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;((above(column(1),0)+&amp;nbsp;above(column(1),1))/2)-above(column(1),3)&lt;/P&gt;&lt;P&gt;If the below logic is not correct could you let me know. How I can do it ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 08:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-Function/m-p/1649954#M447759</guid>
      <dc:creator>Iras</dc:creator>
      <dc:date>2019-11-22T08:33:30Z</dc:date>
    </item>
  </channel>
</rss>

