<?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: Trying to get highest value for a dimension in a KPI in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Trying-to-get-highest-value-for-a-dimension-in-a-KPI/m-p/1693204#M53005</link>
    <description>&lt;P&gt;I think that I may have solved this by using the following code&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Max( Aggr(Count({$&amp;lt;[Customer Number]-={''},[Visit In Year To Date]={"-1"}&amp;gt;}[Visit Entry Number]),[Customer Number]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Apr 2020 08:58:00 GMT</pubDate>
    <dc:creator>acholchemit</dc:creator>
    <dc:date>2020-04-14T08:58:00Z</dc:date>
    <item>
      <title>Trying to get highest value for a dimension in a KPI</title>
      <link>https://community.qlik.com/t5/App-Development/Trying-to-get-highest-value-for-a-dimension-in-a-KPI/m-p/1693165#M52995</link>
      <description>&lt;P&gt;I have a table of data that looks like the following;&lt;/P&gt;&lt;P&gt;Customer, Visit Duration&lt;/P&gt;&lt;P&gt;123, 60&lt;/P&gt;&lt;P&gt;123, 45&lt;/P&gt;&lt;P&gt;456, 50&lt;/P&gt;&lt;P&gt;789, 30&lt;/P&gt;&lt;P&gt;789, 50&lt;/P&gt;&lt;P&gt;789, 20&lt;/P&gt;&lt;P&gt;I am trying to put in a KPI the highest count of rows or entries by Customer.&amp;nbsp; I have seen a few similar examples of this but so far I haven't been able to get this working.&lt;/P&gt;&lt;P&gt;This is what I have so far which as I say doesn't work.&lt;/P&gt;&lt;P&gt;FirstSortedValue([Customer Number], -Aggr(Count({$&amp;lt;[Customer Number]-={},[Visit In Year To Date]={"-1"}&amp;gt;}[Customer Number]), [Customer Number]))&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trying-to-get-highest-value-for-a-dimension-in-a-KPI/m-p/1693165#M52995</guid>
      <dc:creator>acholchemit</dc:creator>
      <dc:date>2021-12-20T21:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get highest value for a dimension in a KPI</title>
      <link>https://community.qlik.com/t5/App-Development/Trying-to-get-highest-value-for-a-dimension-in-a-KPI/m-p/1693204#M53005</link>
      <description>&lt;P&gt;I think that I may have solved this by using the following code&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Max( Aggr(Count({$&amp;lt;[Customer Number]-={''},[Visit In Year To Date]={"-1"}&amp;gt;}[Visit Entry Number]),[Customer Number]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 08:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trying-to-get-highest-value-for-a-dimension-in-a-KPI/m-p/1693204#M53005</guid>
      <dc:creator>acholchemit</dc:creator>
      <dc:date>2020-04-14T08:58:00Z</dc:date>
    </item>
  </channel>
</rss>

