<?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: Table Dimensions show top 10 only. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Table-Dimensions-show-top-10-only/m-p/2516125#M105757</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Yes, you can do it using a calculated dimension and the AGGR() function, in combination with advanced ("expression") search. Something like this:&lt;BR /&gt;&lt;BR /&gt;Dimension X:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;=AGGR( only({X={"=Rank(X)&amp;lt;=10"} }&amp;nbsp; X), (X, NUMERIC, DESC))&lt;/P&gt;&lt;P&gt;There is quite a bit of syntax to unpack here. The AGGR() function, sorted by X in the descending numerical order, will provide the equivalent of a usual dimension. The ability to use Set Analysis with the advanced search allows you to limit X to the top 10 numerical values - presuming that the values of X are all numeric, as you mentioned.&lt;/P&gt;&lt;P&gt;Allow me to invite you to my session on Set Analysis and AGGR() at the &lt;A href="https://masterssummit.com" target="_self"&gt;Masters Summit for Qlik&lt;/A&gt; - coming up this fall to Hamburg, Germany.&lt;/P&gt;&lt;P&gt;Cheers,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;!--  
        Layout, Style or Voice Helpers
      --&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--  
        Compliance
      --&gt;&lt;DIV class=""&gt;&lt;!--   For autoSmartRem addNewWindowWarnings div is referenced in an aria-describedby   --&gt;&lt;DIV&gt;Opens in new window&lt;/DIV&gt;&lt;DIV&gt;PDF Download&lt;/DIV&gt;&lt;DIV&gt;Word Download&lt;/DIV&gt;&lt;DIV&gt;Excel Download&lt;/DIV&gt;&lt;DIV&gt;PowerPoint Download&lt;/DIV&gt;&lt;DIV&gt;Document Download&lt;/DIV&gt;&lt;/DIV&gt;&lt;!--  
        Versioning Control Panel if versioning = true !
      --&gt;&lt;!--  
        Launcher
      --&gt;&lt;!--   Toolbar   --&gt;&lt;!--  
        Site Menu
      --&gt;&lt;!--  
        Generic Aria Live message container
      --&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--   Symbol definitions   --&gt;&lt;/DIV&gt;&lt;!--   end #ae_app   --&gt;</description>
    <pubDate>Tue, 29 Apr 2025 13:44:04 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2025-04-29T13:44:04Z</dc:date>
    <item>
      <title>Table Dimensions show top 10 only.</title>
      <link>https://community.qlik.com/t5/App-Development/Table-Dimensions-show-top-10-only/m-p/2516106#M105750</link>
      <description>&lt;P class=""&gt;Hi,&lt;/P&gt;&lt;P class=""&gt;I have a table with four dimensions, and I want to &lt;STRONG&gt;display only the Top 10 rows based on the largest values in one of those dimensions (let's call it Column X)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P class=""&gt;My goal is to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Sort the table by Column X (descending)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Show only the top 10 values by Column X&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Keep the table dimensions-only (no visible measures)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;However, I’m running into a few issues:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;The &lt;STRONG&gt;"Limitation"&lt;/STRONG&gt; option is disabled when using only dimensions.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;If I use Column X as a &lt;STRONG&gt;measure&lt;/STRONG&gt;, it requires me to choose a dimension to group by, which doesn't give the correct granularity for my use case.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;The only workaround I've found is to &lt;STRONG&gt;use Column X as both a dimension and a measure&lt;/STRONG&gt;, then apply a limitation — but this displays Column X twice, and there’s no clean way to &lt;STRONG&gt;hide the extra column&lt;/STRONG&gt;, which feels like a clumsy solution.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;To complicate things further, I plan to apply this approach in another table where I’ll also need to filter one of the dimensions beforehand, so I want a reusable and clean method.&lt;/P&gt;&lt;P class=""&gt;Is there a way to filter a table to the top N rows based on a dimension’s numeric value, without displaying the ranking field or duplicating columns?&lt;/P&gt;&lt;P class=""&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;!--    end #ae_app    --&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;!--  
        Layout, Style or Voice Helpers
      --&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--  
        Compliance
      --&gt;&lt;DIV class=""&gt;&lt;!--   For autoSmartRem addNewWindowWarnings div is referenced in an aria-describedby   --&gt;&lt;DIV&gt;Opens in new window&lt;/DIV&gt;&lt;DIV&gt;PDF Download&lt;/DIV&gt;&lt;DIV&gt;Word Download&lt;/DIV&gt;&lt;DIV&gt;Excel Download&lt;/DIV&gt;&lt;DIV&gt;PowerPoint Download&lt;/DIV&gt;&lt;DIV&gt;Document Download&lt;/DIV&gt;&lt;/DIV&gt;&lt;!--  
        Versioning Control Panel if versioning = true !
      --&gt;&lt;!--  
        Launcher
      --&gt;&lt;!--   Toolbar   --&gt;&lt;!--  
        Site Menu
      --&gt;&lt;!--  
        Generic Aria Live message container
      --&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--   Symbol definitions   --&gt;&lt;/DIV&gt;&lt;!--   end #ae_app   --&gt;</description>
      <pubDate>Tue, 29 Apr 2025 11:15:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Table-Dimensions-show-top-10-only/m-p/2516106#M105750</guid>
      <dc:creator>WillJP</dc:creator>
      <dc:date>2025-04-29T11:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Table Dimensions show top 10 only.</title>
      <link>https://community.qlik.com/t5/App-Development/Table-Dimensions-show-top-10-only/m-p/2516125#M105757</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Yes, you can do it using a calculated dimension and the AGGR() function, in combination with advanced ("expression") search. Something like this:&lt;BR /&gt;&lt;BR /&gt;Dimension X:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;=AGGR( only({X={"=Rank(X)&amp;lt;=10"} }&amp;nbsp; X), (X, NUMERIC, DESC))&lt;/P&gt;&lt;P&gt;There is quite a bit of syntax to unpack here. The AGGR() function, sorted by X in the descending numerical order, will provide the equivalent of a usual dimension. The ability to use Set Analysis with the advanced search allows you to limit X to the top 10 numerical values - presuming that the values of X are all numeric, as you mentioned.&lt;/P&gt;&lt;P&gt;Allow me to invite you to my session on Set Analysis and AGGR() at the &lt;A href="https://masterssummit.com" target="_self"&gt;Masters Summit for Qlik&lt;/A&gt; - coming up this fall to Hamburg, Germany.&lt;/P&gt;&lt;P&gt;Cheers,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;!--  
        Layout, Style or Voice Helpers
      --&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--  
        Compliance
      --&gt;&lt;DIV class=""&gt;&lt;!--   For autoSmartRem addNewWindowWarnings div is referenced in an aria-describedby   --&gt;&lt;DIV&gt;Opens in new window&lt;/DIV&gt;&lt;DIV&gt;PDF Download&lt;/DIV&gt;&lt;DIV&gt;Word Download&lt;/DIV&gt;&lt;DIV&gt;Excel Download&lt;/DIV&gt;&lt;DIV&gt;PowerPoint Download&lt;/DIV&gt;&lt;DIV&gt;Document Download&lt;/DIV&gt;&lt;/DIV&gt;&lt;!--  
        Versioning Control Panel if versioning = true !
      --&gt;&lt;!--  
        Launcher
      --&gt;&lt;!--   Toolbar   --&gt;&lt;!--  
        Site Menu
      --&gt;&lt;!--  
        Generic Aria Live message container
      --&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;!--   Symbol definitions   --&gt;&lt;/DIV&gt;&lt;!--   end #ae_app   --&gt;</description>
      <pubDate>Tue, 29 Apr 2025 13:44:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Table-Dimensions-show-top-10-only/m-p/2516125#M105757</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2025-04-29T13:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Table Dimensions show top 10 only.</title>
      <link>https://community.qlik.com/t5/App-Development/Table-Dimensions-show-top-10-only/m-p/2516144#M105760</link>
      <description>&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;I am currently struggling in getting this to function correctly.&lt;/P&gt;&lt;P&gt;I have substituted X with my actual field: [4.4.Product_Suspect.cumulative_total_net_amount_in_gbp].&lt;/P&gt;&lt;P&gt;Here is the formula I am using:&lt;/P&gt;&lt;P&gt;=AGGR(ONLY({\[4.4.Product_Suspect.cumulative_total_net_amount_in_gbp\]={"=Rank(\[4.4.Product_Suspect.cumulative_total_net_amount_in_gbp\])&amp;lt;=10"}}, \[4.4.Product_Suspect.cumulative_total_net_amount_in_gbp\]), (\[4.4.Product_Suspect.cumulative_total_net_amount_in_gbp\], NUMERIC, DESC))&lt;/P&gt;&lt;P&gt;Additionally, I need to display data from three other dimensions:&lt;/P&gt;&lt;P&gt;[4.4.Product_Suspect.billing_system]&lt;BR /&gt;[4.4.Product_Suspect.source_customer_number]&lt;BR /&gt;[4.4.Product_Suspect.material_number]&lt;/P&gt;&lt;P&gt;When I add all these as dimensions in my Expression, my calculation field returns "-"&lt;BR /&gt;And I get&amp;nbsp; over 10 rows of data?&lt;/P&gt;&lt;P&gt;To summarise my ask:&lt;/P&gt;&lt;P&gt;If this were an Excel table, I would sort [4.4.Product_Suspect.cumulative_total_net_amount_in_gbp] from largest to smallest and then display the top 10 rows across all four dimensions.&lt;BR /&gt;Not grouping any dimension&lt;/P&gt;&lt;!--   end #ae_app   --&gt;</description>
      <pubDate>Tue, 29 Apr 2025 14:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Table-Dimensions-show-top-10-only/m-p/2516144#M105760</guid>
      <dc:creator>WillJP</dc:creator>
      <dc:date>2025-04-29T14:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Table Dimensions show top 10 only.</title>
      <link>https://community.qlik.com/t5/App-Development/Table-Dimensions-show-top-10-only/m-p/2516164#M105762</link>
      <description>&lt;P&gt;I could give you a more detailed and pointed advise if I could see a sample app with your data. It's hard to guess what's wrong there&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 18:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Table-Dimensions-show-top-10-only/m-p/2516164#M105762</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2025-04-29T18:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table Dimensions show top 10 only.</title>
      <link>https://community.qlik.com/t5/App-Development/Table-Dimensions-show-top-10-only/m-p/2516252#M105773</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm unable to give a sample app as I'm on my works environment.&amp;nbsp;&lt;BR /&gt;I can advise I'm working on Qlik Sense August 2023 Patch 8&lt;BR /&gt;&lt;BR /&gt;And here is some sample data.&lt;BR /&gt;My dimension do not contain unique fields and I do not want to group.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 08:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Table-Dimensions-show-top-10-only/m-p/2516252#M105773</guid>
      <dc:creator>WillJP</dc:creator>
      <dc:date>2025-04-30T08:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Table Dimensions show top 10 only.</title>
      <link>https://community.qlik.com/t5/App-Development/Table-Dimensions-show-top-10-only/m-p/2516314#M105779</link>
      <description>&lt;P&gt;Also just for reference.&lt;BR /&gt;In my original data set, I will need to do this for other fields.&lt;BR /&gt;As thought I may have to do some work in my load script if I cant do this in Expression&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 13:55:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Table-Dimensions-show-top-10-only/m-p/2516314#M105779</guid>
      <dc:creator>WillJP</dc:creator>
      <dc:date>2025-04-30T13:55:33Z</dc:date>
    </item>
  </channel>
</rss>

