<?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: &amp;quot;Above&amp;quot; function - not working in Talend Cloud</title>
    <link>https://community.qlik.com/t5/Talend-Cloud/quot-Above-quot-function-not-working/m-p/2548295#M637</link>
    <description>&lt;P&gt;Hi, I did a test and it returns the 1:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rubenmarin_0-1777708182493.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/188122i008F2910418F754C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rubenmarin_0-1777708182493.png" alt="rubenmarin_0-1777708182493.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The row returning "-" could be the first, as it doesn't have any more "Above" records.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe your tabel has more dimensions, in that case you can use:&amp;nbsp;Above(TOTAL NBR)-NBR.&lt;/P&gt;&lt;P&gt;Can you post an example that shows the issue?&lt;/P&gt;</description>
    <pubDate>Sat, 02 May 2026 07:52:00 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2026-05-02T07:52:00Z</dc:date>
    <item>
      <title>"Above" function - not working</title>
      <link>https://community.qlik.com/t5/Talend-Cloud/quot-Above-quot-function-not-working/m-p/2548279#M636</link>
      <description>&lt;P&gt;I'm trying to do what should be a very simple task for the "Above" function.&amp;nbsp; I have a table with very few columns.&amp;nbsp; It would look something like:&lt;/P&gt;&lt;P&gt;DATE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NBR&lt;/P&gt;&lt;P&gt;xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;/P&gt;&lt;P&gt;xx1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/P&gt;&lt;P&gt;I want to use the Above function to put in a new column with the difference and then calculate the percent of change.&lt;/P&gt;&lt;P&gt;It would be from above 5 minus the current row which is 4&amp;nbsp; -&amp;nbsp; &amp;nbsp;5-4=1&lt;/P&gt;&lt;P&gt;Above formula should be something like&lt;/P&gt;&lt;P&gt;Above(NBR)-NBR&amp;nbsp; &amp;nbsp;(this would be taking the 5 to minus the 4)&lt;/P&gt;&lt;P&gt;If it is&amp;nbsp;&lt;/P&gt;&lt;P&gt;NBR-Above(NBR)&amp;nbsp; &amp;nbsp; (this would be taking the 4 and minus the 5)&lt;/P&gt;&lt;P&gt;It will not work either way.&amp;nbsp; Produces a column with nothing but " - " in it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the correct process for this?&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2026 21:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Cloud/quot-Above-quot-function-not-working/m-p/2548279#M636</guid>
      <dc:creator>jdgraham</dc:creator>
      <dc:date>2026-05-01T21:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: "Above" function - not working</title>
      <link>https://community.qlik.com/t5/Talend-Cloud/quot-Above-quot-function-not-working/m-p/2548295#M637</link>
      <description>&lt;P&gt;Hi, I did a test and it returns the 1:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rubenmarin_0-1777708182493.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/188122i008F2910418F754C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rubenmarin_0-1777708182493.png" alt="rubenmarin_0-1777708182493.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The row returning "-" could be the first, as it doesn't have any more "Above" records.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe your tabel has more dimensions, in that case you can use:&amp;nbsp;Above(TOTAL NBR)-NBR.&lt;/P&gt;&lt;P&gt;Can you post an example that shows the issue?&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2026 07:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Cloud/quot-Above-quot-function-not-working/m-p/2548295#M637</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2026-05-02T07:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: "Above" function - not working</title>
      <link>https://community.qlik.com/t5/Talend-Cloud/quot-Above-quot-function-not-working/m-p/2548379#M638</link>
      <description>&lt;P&gt;The Above function in Qlik is failing likely because the table is not properly sorted, or because the expression requires an aggregation (like Sum) to function correctly within the table's context. A "-" usually indicates a NULL value in Qlik Sense, which happens on the first row because there is no row above it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the correct process to calculate the difference and percent change.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1. The Correct Formulas (As Measures)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming your dimension is DATE and your measure is NBR:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;&lt;STRONG&gt;Difference:&lt;/STRONG&gt; Sum(NBR) - Above(Sum(NBR))&lt;/LI&gt;
 &lt;LI&gt;&lt;STRONG&gt;Percent Change:&lt;/STRONG&gt; (Sum(NBR) - Above(Sum(NBR))) / Above(Sum(NBR))&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;2. Why it's returning " - " (Null)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;&lt;STRONG&gt;No Data Above:&lt;/STRONG&gt; The very first row in your table will always show a NULL (-) because there is no row above it to compare to.&lt;/LI&gt;
 &lt;LI&gt;&lt;STRONG&gt;Sorting Issue:&lt;/STRONG&gt; Above() works on the &lt;I&gt;displayed&lt;/I&gt; table sorting. If your dates aren't sorted chronologically, the "above" row is arbitrary.&lt;/LI&gt;
 &lt;LI&gt;&lt;STRONG&gt;Missing Aggregation:&lt;/STRONG&gt; If NBR is a field that appears multiple times for the same date, Above(NBR) will return null. You must use Above(Sum(NBR)).&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3. Step-by-Step Solution&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;&lt;STRONG&gt;Add Dimensions:&lt;/STRONG&gt; Create a table with DATE and NBR.&lt;/LI&gt;
 &lt;LI&gt;&lt;STRONG&gt;Sort Properly:&lt;/STRONG&gt; Go to &lt;STRONG&gt;Sorting&lt;/STRONG&gt; in the property panel. Ensure DATE is sorted &lt;STRONG&gt;Ascending&lt;/STRONG&gt; (earliest to latest).&lt;/LI&gt;
 &lt;LI&gt;&lt;STRONG&gt;Add Measure (Difference):&lt;/STRONG&gt;
  &lt;UL&gt;
   &lt;LI&gt;Label: Difference&lt;/LI&gt;
   &lt;LI&gt;Expression: =Sum(NBR) - Above(Sum(NBR))&lt;/LI&gt;
  &lt;/UL&gt;&lt;/LI&gt;
 &lt;LI&gt;&lt;STRONG&gt;Add Measure (% Change):&lt;/STRONG&gt;
  &lt;UL&gt;
   &lt;LI&gt;Label: % Change&lt;/LI&gt;
   &lt;LI&gt;Expression: =(Sum(NBR) - Above(Sum(NBR))) / Above(Sum(NBR))&lt;/LI&gt;
   &lt;LI&gt;&lt;I&gt;Set Number Formatting to "Percentage"&lt;/I&gt;.&amp;nbsp;&lt;/LI&gt;
  &lt;/UL&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;4. Handling the First Row Nulls&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to avoid NULL or the hyphen, use RangeSum to treat nulls as 0, or Alt to replace it:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Returns 0 instead of '-' if there is no previous value =RangeSum(Sum(NBR) - Above(Sum(NBR)))&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;5. Troubleshooting (If the above fails)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have multiple dimensions (e.g., Year, Month) or Above still returns -, use the TOTAL keyword to ignore the inner dimension sorting:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;=Sum(NBR) - Above(TOTAL Sum(NBR))&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 04 May 2026 18:05:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Cloud/quot-Above-quot-function-not-working/m-p/2548379#M638</guid>
      <dc:creator>Greg_Taffer</dc:creator>
      <dc:date>2026-05-04T18:05:32Z</dc:date>
    </item>
  </channel>
</rss>

