<?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: List top n values in a text Object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/List-top-n-values-in-a-text-Object/m-p/1075493#M465197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swehl,&lt;/P&gt;&lt;P&gt;Thank you for the quick response.&lt;/P&gt;&lt;P&gt;I think i had it from your expression and realized that I may not have clearly stated my requirement.&lt;/P&gt;&lt;P&gt;I apologize.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the error I am receiving in Text Object: Error in Expression. Nested aggregation not allowed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Rank Expression that I am trying to use in the text object is a value = sum of 3 other ranks generated using 3 aggregated expression.&lt;/P&gt;&lt;P&gt;i.,e&lt;/P&gt;&lt;P&gt;RankA = Rank(sum(X))&amp;nbsp; * (.3)&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;RankB = Rank(AVG(Y)) * (.4)&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;RankC = Rank(sum(Z)) * (.3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;Please let me know if you rather prefer it to be created as a seperate discussion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Mar 2016 20:59:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-26T20:59:25Z</dc:date>
    <item>
      <title>List top n values in a text Object</title>
      <link>https://community.qlik.com/t5/QlikView/List-top-n-values-in-a-text-Object/m-p/1075491#M465195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;I have created a straight table which displays the Dimension values and sorted them as per the Rank calculated in the expression.&lt;/P&gt;&lt;P&gt;Now, I need to display all the top 10 values that I see in the Straight Table in one Text Object .&lt;/P&gt;&lt;P&gt;Using FirstSortedValue function in the Text Object, I could only display the top 1 or bottom 1 value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas please..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;I also need to display Top 10, Bottom 10, and wrap all the rest of the Dimension values into 3 more Text Objects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Mar 2016 19:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-top-n-values-in-a-text-Object/m-p/1075491#M465195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-26T19:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: List top n values in a text Object</title>
      <link>https://community.qlik.com/t5/QlikView/List-top-n-values-in-a-text-Object/m-p/1075492#M465196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this (assuming Sum(Value) is the expression used):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Concat({&amp;lt;DimensionField = {"=Rank(Sum(Value))&amp;lt;=10"}&amp;gt;} DISTINCT DimensionField,', ', -Sum(Value) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Concat({&amp;lt;DimensionField = {"=Rank(-Sum(Value))&amp;lt;=10"}&amp;gt;} DISTINCT DimensionField,', ', -Sum(Value) ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Concat({&amp;lt;DimensionField -= ( {"=Rank(Sum(Value))&amp;lt;=10"} +&lt;SPAN style="font-size: 13.3333px;"&gt;{"=Rank(-Sum(Value))&amp;lt;=10"}&lt;/SPAN&gt; ) &amp;gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DISTINCT DimensionField,', ', -Sum(Value) ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;to list top 10, bottom 10 and all inbetween&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Mar 2016 19:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-top-n-values-in-a-text-Object/m-p/1075492#M465196</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-26T19:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: List top n values in a text Object</title>
      <link>https://community.qlik.com/t5/QlikView/List-top-n-values-in-a-text-Object/m-p/1075493#M465197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swehl,&lt;/P&gt;&lt;P&gt;Thank you for the quick response.&lt;/P&gt;&lt;P&gt;I think i had it from your expression and realized that I may not have clearly stated my requirement.&lt;/P&gt;&lt;P&gt;I apologize.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the error I am receiving in Text Object: Error in Expression. Nested aggregation not allowed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Rank Expression that I am trying to use in the text object is a value = sum of 3 other ranks generated using 3 aggregated expression.&lt;/P&gt;&lt;P&gt;i.,e&lt;/P&gt;&lt;P&gt;RankA = Rank(sum(X))&amp;nbsp; * (.3)&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;RankB = Rank(AVG(Y)) * (.4)&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;RankC = Rank(sum(Z)) * (.3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;Please let me know if you rather prefer it to be created as a seperate discussion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Mar 2016 20:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-top-n-values-in-a-text-Object/m-p/1075493#M465197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-26T20:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: List top n values in a text Object</title>
      <link>https://community.qlik.com/t5/QlikView/List-top-n-values-in-a-text-Object/m-p/1075494#M465198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, the sort weight needs advanced aggregation, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Concat(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;DimensionField = {"=Rank(Sum(Value))&amp;lt;=10"}&amp;gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&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; DISTINCT &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&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; DimensionField,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&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; ', ',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aggr(-Sum(Value),DimensionField) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if you replace Rank(Sum(Value)) in above expression with your sum-of-three-ranks? &lt;/P&gt;&lt;P&gt;How do you get a total rank for your rank expression, BTW, are you using another rank function around the sum-of-three-ranks?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Mar 2016 21:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-top-n-values-in-a-text-Object/m-p/1075494#M465198</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-26T21:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: List top n values in a text Object</title>
      <link>https://community.qlik.com/t5/QlikView/List-top-n-values-in-a-text-Object/m-p/1075495#M465199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you already have the correct values in a straight table then maybe you can make it appear as a text box if that's your preferred visualization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use dimension limits, hide caption, header rows and some columns and switch to horizontal presentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_210991_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119468_QlikCommunity_Thread_210991_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using dimension limits:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_210991_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/119469_QlikCommunity_Thread_210991_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hiding caption and header row and using horizontal presentation.&lt;/P&gt;&lt;P&gt;hidden dimension&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_210991_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/119470_QlikCommunity_Thread_210991_Pic3.JPG" style="height: 219px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;hidden expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG alt="QlikCommunity_Thread_210991_Pic4.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/119471_QlikCommunity_Thread_210991_Pic4.JPG" style="height: auto; width: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Mar 2016 21:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-top-n-values-in-a-text-Object/m-p/1075495#M465199</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-03-26T21:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: List top n values in a text Object</title>
      <link>https://community.qlik.com/t5/QlikView/List-top-n-values-in-a-text-Object/m-p/1075496#M465200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi swehl,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Yes, i have to create a rank of the weighted sum of the three ranks ie., Rank(RankA*x% + RankB*y% + RankC*z%).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I made progress using the Advanced aggregation you suggested.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I was able to make some progress in displaying the top N values in one single 'text object'.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;However, my requirement also needed me to display some additional dimension and expression values when I hover over each of the Dimension values in the 'text object'.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;This leads me to create one 'text object' for each Rank. Then, i need to somehow use the 'Help Text' under 'Caption tab' of the 'text object' to display the required &lt;SPAN style="font-size: 13.3333px;"&gt;additional dimension and expression values relevant to the Dimension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;So, i gave up on this approach and started looking at creating one 'Straight Table' for each of the Dimension values that would look like a 'text object'&amp;nbsp; as Marco also suggested.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;---&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Marco,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I started using this approach. Since I have to display more details when I hover over each of the Dimension values, I ended up creating about 300 straight tables with Conditional show/hide of each value ie., one for each Dimension value as I need to display all the Dimension values by Default. All these 300 straight tables are arranged in the required order of Top N , Everything in Between, Bottom N.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;This has affected the Dashboard performance. The dashboard is not loading data unless i pass very little data.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;So, even though I have visually what the user is looking to see, it just not effectively reloading data as needed.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;--&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I appreciate any advice and thank you for the help so far&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 22:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-top-n-values-in-a-text-Object/m-p/1075496#M465200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-06T22:20:05Z</dc:date>
    </item>
  </channel>
</rss>

