<?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: aggr and max question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-and-max-question/m-p/1777353#M454975</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;Could you explain the logic behind the chart you want - what do you mean by 'highest rank' - I don't think it is obvious from your example.</description>
    <pubDate>Tue, 26 Jan 2021 09:45:52 GMT</pubDate>
    <dc:creator>richard_chilvers</dc:creator>
    <dc:date>2021-01-26T09:45:52Z</dc:date>
    <item>
      <title>aggr and max question</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-and-max-question/m-p/1777351#M454974</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a data set like this.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Customer&lt;/TD&gt;&lt;TD&gt;rank&lt;/TD&gt;&lt;TD&gt;amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cust1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cust1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cust2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cust2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;56&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cust2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cust3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;56&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to make a chart to show&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Customer&lt;/TD&gt;&lt;TD&gt;amount of highest rank&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cust1&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cust2&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cust3&lt;/TD&gt;&lt;TD&gt;56&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for the amount column the expression is&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;rank={"$(=only(aggr(max(rank),customer)))"}&amp;gt;}amount)&lt;/P&gt;&lt;P&gt;but it is not working and giving me all zero values.&lt;/P&gt;&lt;P&gt;what am I missing here?&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-and-max-question/m-p/1777351#M454974</guid>
      <dc:creator>jduluc12</dc:creator>
      <dc:date>2024-11-15T23:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: aggr and max question</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-and-max-question/m-p/1777353#M454975</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Could you explain the logic behind the chart you want - what do you mean by 'highest rank' - I don't think it is obvious from your example.</description>
      <pubDate>Tue, 26 Jan 2021 09:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-and-max-question/m-p/1777353#M454975</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2021-01-26T09:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: aggr and max question</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-and-max-question/m-p/1777354#M454976</link>
      <description>&lt;P&gt;there is a rank column in the data set.&lt;/P&gt;&lt;P&gt;so whichever amount has the highest rank, we need to show the amount of that&lt;/P&gt;&lt;P&gt;for example, cust2 has 3 rows with ranks 1, 2, and 3. so the chart should show the amount 45 for cust 2, which is the amount for rank 3.&lt;/P&gt;&lt;P&gt;I hope it is clear now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 09:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-and-max-question/m-p/1777354#M454976</guid>
      <dc:creator>jduluc12</dc:creator>
      <dc:date>2021-01-26T09:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: aggr and max question</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-and-max-question/m-p/1777366#M454977</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18372"&gt;@jduluc12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;Dim: Customer&lt;/P&gt;&lt;P&gt;Exp:&amp;nbsp;Aggr(If(rank=Max(Total&amp;lt;Customer&amp;gt;rank),sum(amount)),Customer,rank)&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 10:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-and-max-question/m-p/1777366#M454977</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-01-26T10:41:26Z</dc:date>
    </item>
  </channel>
</rss>

