<?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 Returning the highest value from a list - Part Two in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Returning-the-highest-value-from-a-list-Part-Two/m-p/465167#M173734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, after the excellent help I receive at the weekend from "whiteline"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have run into a problem and I think it has something to do with needing to add a &lt;STRONG&gt;distinct&lt;/STRONG&gt; function to the experession or modifying the &lt;STRONG&gt;rangesum&lt;/STRONG&gt; function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue I'm having is that the Top 3 results are returned in the chart and then I'm using the same expression within a Text Object to return the total value of the Top 3 items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when there are duplicate results (values) e.g. 1st=3.08 2nd=3.08 it returns the 1st value, the 3rd value and the 4th value as a total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate the help.&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(rangesum(&lt;/P&gt;&lt;P&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; Max({$&amp;lt;Ans_Text={'Develop'}, Response_Level_2={*}&amp;gt;}aggr(sum (Ans_Minutes), Response_Level_2, Ans_Text), 1),&lt;/P&gt;&lt;P&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; Max({$&amp;lt;Ans_Text={'Develop'}, Response_Level_2={*}&amp;gt;}aggr(sum (Ans_Minutes), Response_Level_2, Ans_Text), 2),&lt;/P&gt;&lt;P&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; Max({$&amp;lt;Ans_Text={'Develop'}, Response_Level_2={*}&amp;gt;}aggr(sum (Ans_Minutes), Response_Level_2, Ans_Text), 3))/60,'##0.00') &amp;amp; '&amp;nbsp; hrs '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="32446" alt="Barriers Top 3-4.png" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/32446_Barriers+Top+3-4.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jan 2013 19:57:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-28T19:57:43Z</dc:date>
    <item>
      <title>Returning the highest value from a list - Part Two</title>
      <link>https://community.qlik.com/t5/QlikView/Returning-the-highest-value-from-a-list-Part-Two/m-p/465167#M173734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, after the excellent help I receive at the weekend from "whiteline"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have run into a problem and I think it has something to do with needing to add a &lt;STRONG&gt;distinct&lt;/STRONG&gt; function to the experession or modifying the &lt;STRONG&gt;rangesum&lt;/STRONG&gt; function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue I'm having is that the Top 3 results are returned in the chart and then I'm using the same expression within a Text Object to return the total value of the Top 3 items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when there are duplicate results (values) e.g. 1st=3.08 2nd=3.08 it returns the 1st value, the 3rd value and the 4th value as a total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate the help.&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(rangesum(&lt;/P&gt;&lt;P&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; Max({$&amp;lt;Ans_Text={'Develop'}, Response_Level_2={*}&amp;gt;}aggr(sum (Ans_Minutes), Response_Level_2, Ans_Text), 1),&lt;/P&gt;&lt;P&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; Max({$&amp;lt;Ans_Text={'Develop'}, Response_Level_2={*}&amp;gt;}aggr(sum (Ans_Minutes), Response_Level_2, Ans_Text), 2),&lt;/P&gt;&lt;P&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; Max({$&amp;lt;Ans_Text={'Develop'}, Response_Level_2={*}&amp;gt;}aggr(sum (Ans_Minutes), Response_Level_2, Ans_Text), 3))/60,'##0.00') &amp;amp; '&amp;nbsp; hrs '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="32446" alt="Barriers Top 3-4.png" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/32446_Barriers+Top+3-4.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 19:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Returning-the-highest-value-from-a-list-Part-Two/m-p/465167#M173734</guid>
      <dc:creator />
      <dc:date>2013-01-28T19:57:43Z</dc:date>
    </item>
  </channel>
</rss>

