<?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>article Qlik Sense Analytics: Unable to sort measures when using chart function in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Analytics-Unable-to-sort-measures-when-using-chart/ta-p/2549021</link>
    <description>&lt;P&gt;In &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Qlik Sense Enterprise Analytics&lt;/STRONG&gt;&lt;/FONT&gt;, using the &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Above()&lt;/STRONG&gt;&lt;/FONT&gt; function in a measure can lead to unexpected behavior when sorting; when a measure includes the &lt;STRONG&gt;Above()&lt;/STRONG&gt; function, sorting (including other measures on the same chart or table) is not supported.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the following Straight Table, the third column (Running Total) uses an expression in its measure to calculate a running total by adding the previous row's value.&lt;/P&gt;
&lt;PRE class="lia-indent-padding-left-30px"&gt;rangesum(above(Sum(SalesAmount),0,RowNo()))&lt;/PRE&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="straight table.png" style="width: 744px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/188335iF1C3C9FF6E0E4422/image-size/large?v=v2&amp;amp;px=999" role="button" title="straight table.png" alt="straight table.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In this case, you cannot change the sorting order to ascending or descending for the second column, "&lt;STRONG&gt;Sum(sales)&lt;/STRONG&gt;", or the third column, "&lt;STRONG&gt;Running Total&lt;/STRONG&gt;", since the &lt;STRONG&gt;Above()&lt;/STRONG&gt; function is used in the third column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is working as designed:&lt;/P&gt;
&lt;P&gt;Sorting on y-values in charts or sorting by expression columns in tables is not allowed when the chart function (Above, Below, Bottom, Column, Dimensionality) is used in any of the chart's expressions. These sort alternatives are therefore automatically disabled. When you use this chart function in a visualization or table, the sorting of the visualization will revert back to the sorted input to this function.&lt;/P&gt;
&lt;P&gt;Source:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/InterRecordFunctions/above.htm" target="_blank" rel="noopener"&gt;Above - chart function | Limitations&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;As a workaround, you can use a structured (&lt;STRONG&gt;sort&lt;/STRONG&gt;) parameter in the&lt;STRONG&gt; Aggr()&lt;/STRONG&gt; function.&lt;/P&gt;
&lt;P&gt;For example, you change the expression like the following:&lt;/P&gt;
&lt;PRE class="language-markup" style="background: #efefef; padding: 8px; display: block; border: 1px solid #cccccc; overflow-x: auto;"&gt;&lt;CODE&gt;sum(Aggr(Rangesum(Above(Sum(SalesAmount),0,rowno())),(SalesAmount, (Numeric, Ascending)) ))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now you can change the sort to ascending or descending order in measure columns.&lt;/P&gt;
&lt;P&gt;However, it does not recalculate based on the new sorting order due to a limitation of the &lt;STRONG&gt;Aggr()&lt;/STRONG&gt; function, which returns results based on the calculated hypercube. The expression (&lt;STRONG&gt;Numeric&lt;/STRONG&gt;, &lt;STRONG&gt;Ascending&lt;/STRONG&gt;) part will have to be modified in order to reflect another sort order if necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Internal Investigation ID(s)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;SUPPORT-9243&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Sense Enterprise on Windows&lt;/LI&gt;
&lt;LI&gt;Qlik Cloud&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Wed, 13 May 2026 08:03:48 GMT</pubDate>
    <dc:creator>Nao_Baba</dc:creator>
    <dc:date>2026-05-13T08:03:48Z</dc:date>
    <item>
      <title>Qlik Sense Analytics: Unable to sort measures when using chart function</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Analytics-Unable-to-sort-measures-when-using-chart/ta-p/2549021</link>
      <description>&lt;P&gt;In &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Qlik Sense Enterprise Analytics&lt;/STRONG&gt;&lt;/FONT&gt;, using the &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Above()&lt;/STRONG&gt;&lt;/FONT&gt; function in a measure can lead to unexpected behavior when sorting; when a measure includes the &lt;STRONG&gt;Above()&lt;/STRONG&gt; function, sorting (including other measures on the same chart or table) is not supported.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the following Straight Table, the third column (Running Total) uses an expression in its measure to calculate a running total by adding the previous row's value.&lt;/P&gt;
&lt;PRE class="lia-indent-padding-left-30px"&gt;rangesum(above(Sum(SalesAmount),0,RowNo()))&lt;/PRE&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="straight table.png" style="width: 744px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/188335iF1C3C9FF6E0E4422/image-size/large?v=v2&amp;amp;px=999" role="button" title="straight table.png" alt="straight table.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In this case, you cannot change the sorting order to ascending or descending for the second column, "&lt;STRONG&gt;Sum(sales)&lt;/STRONG&gt;", or the third column, "&lt;STRONG&gt;Running Total&lt;/STRONG&gt;", since the &lt;STRONG&gt;Above()&lt;/STRONG&gt; function is used in the third column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is working as designed:&lt;/P&gt;
&lt;P&gt;Sorting on y-values in charts or sorting by expression columns in tables is not allowed when the chart function (Above, Below, Bottom, Column, Dimensionality) is used in any of the chart's expressions. These sort alternatives are therefore automatically disabled. When you use this chart function in a visualization or table, the sorting of the visualization will revert back to the sorted input to this function.&lt;/P&gt;
&lt;P&gt;Source:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/InterRecordFunctions/above.htm" target="_blank" rel="noopener"&gt;Above - chart function | Limitations&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;As a workaround, you can use a structured (&lt;STRONG&gt;sort&lt;/STRONG&gt;) parameter in the&lt;STRONG&gt; Aggr()&lt;/STRONG&gt; function.&lt;/P&gt;
&lt;P&gt;For example, you change the expression like the following:&lt;/P&gt;
&lt;PRE class="language-markup" style="background: #efefef; padding: 8px; display: block; border: 1px solid #cccccc; overflow-x: auto;"&gt;&lt;CODE&gt;sum(Aggr(Rangesum(Above(Sum(SalesAmount),0,rowno())),(SalesAmount, (Numeric, Ascending)) ))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now you can change the sort to ascending or descending order in measure columns.&lt;/P&gt;
&lt;P&gt;However, it does not recalculate based on the new sorting order due to a limitation of the &lt;STRONG&gt;Aggr()&lt;/STRONG&gt; function, which returns results based on the calculated hypercube. The expression (&lt;STRONG&gt;Numeric&lt;/STRONG&gt;, &lt;STRONG&gt;Ascending&lt;/STRONG&gt;) part will have to be modified in order to reflect another sort order if necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Internal Investigation ID(s)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;SUPPORT-9243&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Sense Enterprise on Windows&lt;/LI&gt;
&lt;LI&gt;Qlik Cloud&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 13 May 2026 08:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Analytics-Unable-to-sort-measures-when-using-chart/ta-p/2549021</guid>
      <dc:creator>Nao_Baba</dc:creator>
      <dc:date>2026-05-13T08:03:48Z</dc:date>
    </item>
  </channel>
</rss>

