<?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: Can Qlik Sense Auto Totals respect Dimension Limitation (Top / First N rows)? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Can-Qlik-Sense-Auto-Totals-respect-Dimension-Limitation-Top/m-p/2544304#M109665</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;I’m not sure if this is Qlik’s expected behavior, but I tried your approach and the totals do ignore the limitations.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;If you’re interested in showing the top/bottom N rows, you might be able to fix it using a rank function as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt;[field] = {"=Rank(Sum([value])) &amp;lt;= 3"}&amp;gt;} [value])&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Default sort order of the field:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(Aggr(IF(RowNo() &amp;lt;= 3, [value]), [field]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’m not sure how complex your table is, but you should be careful when using &lt;/SPAN&gt;&lt;SPAN&gt;RowNo()&lt;/SPAN&gt;&lt;SPAN&gt; if there are multiple columns in the table. You might need to use &lt;/SPAN&gt;&lt;SPAN&gt;RowNo(TOTAL)&lt;/SPAN&gt;&lt;SPAN&gt; instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this works for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 08 Mar 2026 08:42:17 GMT</pubDate>
    <dc:creator>alexquimu</dc:creator>
    <dc:date>2026-03-08T08:42:17Z</dc:date>
    <item>
      <title>Can Qlik Sense Auto Totals respect Dimension Limitation (Top / First N rows)?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-Qlik-Sense-Auto-Totals-respect-Dimension-Limitation-Top/m-p/2544288#M109661</link>
      <description>&lt;P class="isSelectedEnd"&gt;&lt;SPAN&gt;I have a &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Qlik Sense table&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; where the dimension is limited using:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="isSelectedEnd"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Dimension → Limitation → Show first N rows&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="isSelectedEnd"&gt;&lt;SPAN&gt;The table correctly displays only those &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;N rows&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="isSelectedEnd"&gt;&lt;SPAN&gt;However, the &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Totals row still calculates using all rows&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, not just the limited/displayed rows.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="isSelectedEnd"&gt;&lt;SPAN&gt;My requirement is:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL data-spread="false"&gt;
&lt;LI&gt;
&lt;P class="isSelectedEnd"&gt;&lt;SPAN&gt;Show only &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;first N rows&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; in the table&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="isSelectedEnd"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Totals row should reflect only those same N rows&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="isSelectedEnd"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Total mode must remain = Auto&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; because the measure contains complex calculations&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="isSelectedEnd"&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH&gt;&lt;SPAN&gt;Partner&lt;/SPAN&gt;&lt;/TH&gt;
&lt;TH&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;SPAN&gt;A&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;SPAN&gt;500&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;SPAN&gt;B&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;SPAN&gt;400&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;SPAN&gt;C&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;SPAN&gt;300&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;SPAN&gt;D&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;SPAN&gt;200&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;SPAN&gt;E&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P class="isSelectedEnd"&gt;&lt;SPAN&gt;If I limit the dimension to &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Top 3 rows&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, the table shows:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="isSelectedEnd"&gt;&lt;SPAN&gt;A, B, C&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="isSelectedEnd"&gt;&lt;SPAN&gt;But the &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Totals row still calculates using all rows (A+B+C+D+E)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; instead of &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;A+B+C&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="isSelectedEnd"&gt;&lt;SPAN&gt;Is there a way to make &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Auto totals respect the dimension limitation&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, or is this expected Qlik behavior?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would like to avoid switching &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Total mode to Sum&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, since the measure relies on &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Auto total logic&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 16:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-Qlik-Sense-Auto-Totals-respect-Dimension-Limitation-Top/m-p/2544288#M109661</guid>
      <dc:creator>AThaduru</dc:creator>
      <dc:date>2026-03-06T16:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can Qlik Sense Auto Totals respect Dimension Limitation (Top / First N rows)?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-Qlik-Sense-Auto-Totals-respect-Dimension-Limitation-Top/m-p/2544304#M109665</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;I’m not sure if this is Qlik’s expected behavior, but I tried your approach and the totals do ignore the limitations.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;If you’re interested in showing the top/bottom N rows, you might be able to fix it using a rank function as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt;[field] = {"=Rank(Sum([value])) &amp;lt;= 3"}&amp;gt;} [value])&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Default sort order of the field:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(Aggr(IF(RowNo() &amp;lt;= 3, [value]), [field]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’m not sure how complex your table is, but you should be careful when using &lt;/SPAN&gt;&lt;SPAN&gt;RowNo()&lt;/SPAN&gt;&lt;SPAN&gt; if there are multiple columns in the table. You might need to use &lt;/SPAN&gt;&lt;SPAN&gt;RowNo(TOTAL)&lt;/SPAN&gt;&lt;SPAN&gt; instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this works for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Mar 2026 08:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-Qlik-Sense-Auto-Totals-respect-Dimension-Limitation-Top/m-p/2544304#M109665</guid>
      <dc:creator>alexquimu</dc:creator>
      <dc:date>2026-03-08T08:42:17Z</dc:date>
    </item>
  </channel>
</rss>

