<?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 Display all the results possible if equals in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Display-all-the-results-possible-if-equals/m-p/1736335#M56286</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I use a form allowing me to display the name of a person according to his results:&lt;BR /&gt;=FirstSortedValue(DISTINCT Name,-aggr(sum(test_ID), player_ID))&lt;BR /&gt;&lt;BR /&gt;I only display in my KPI the "max" thanks to the firstshortedvalue formula.&lt;/P&gt;&lt;P&gt;However, I would like this time to display all the people in case of identical result ... How to do please ??&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If there are several possible results, display them all by separating them with "commas" for example&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you !&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Mon, 17 Aug 2020 11:34:57 GMT</pubDate>
    <dc:creator>smic</dc:creator>
    <dc:date>2020-08-17T11:34:57Z</dc:date>
    <item>
      <title>Display all the results possible if equals</title>
      <link>https://community.qlik.com/t5/App-Development/Display-all-the-results-possible-if-equals/m-p/1736335#M56286</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I use a form allowing me to display the name of a person according to his results:&lt;BR /&gt;=FirstSortedValue(DISTINCT Name,-aggr(sum(test_ID), player_ID))&lt;BR /&gt;&lt;BR /&gt;I only display in my KPI the "max" thanks to the firstshortedvalue formula.&lt;/P&gt;&lt;P&gt;However, I would like this time to display all the people in case of identical result ... How to do please ??&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If there are several possible results, display them all by separating them with "commas" for example&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you !&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 11:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-all-the-results-possible-if-equals/m-p/1736335#M56286</guid>
      <dc:creator>smic</dc:creator>
      <dc:date>2020-08-17T11:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Display all the results possible if equals</title>
      <link>https://community.qlik.com/t5/App-Development/Display-all-the-results-possible-if-equals/m-p/1736395#M56301</link>
      <description>&lt;P&gt;Hi Smic.&lt;/P&gt;&lt;P&gt;Have a look at the &lt;A href="https://help.qlik.com/en-US/sense/June2020/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/StringAggregationFunctions/concat.htm" target="_self"&gt;&lt;STRONG&gt;CONCAT()&lt;/STRONG&gt;-formula&lt;/A&gt;. You can use the DISTINCT -parameter and even a custom sorting like yours above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 13:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-all-the-results-possible-if-equals/m-p/1736395#M56301</guid>
      <dc:creator>haskia</dc:creator>
      <dc:date>2020-08-17T13:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Display all the results possible if equals</title>
      <link>https://community.qlik.com/t5/App-Development/Display-all-the-results-possible-if-equals/m-p/1736441#M56308</link>
      <description>&lt;P&gt;Hi Smic,&lt;BR /&gt;Can you please attach qvf or screenshot?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 16:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-all-the-results-possible-if-equals/m-p/1736441#M56308</guid>
      <dc:creator>Usama</dc:creator>
      <dc:date>2020-08-17T16:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Display all the results possible if equals</title>
      <link>https://community.qlik.com/t5/App-Development/Display-all-the-results-possible-if-equals/m-p/1737217#M56393</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;thanks you to reply.&lt;BR /&gt;So, i have 2 table like this:&lt;/P&gt;&lt;TABLE width="410"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="80"&gt;Player_ID&lt;/TD&gt;&lt;TD width="90"&gt;Player_Name&lt;/TD&gt;&lt;TD width="80"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="80"&gt;Test_ID&lt;/TD&gt;&lt;TD width="80"&gt;Player_ID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Toto&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Titi&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Tata&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&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 know my players who are most present during the tests. I want to display the most present player during the tests. However, as in the current case, several players are tied ... I therefore wish that in my KPI indicator, there is the list of the first names of the most present players. Currently with the fistsortedvalue only one is displayed even if there is a tie ...&lt;/P&gt;&lt;P&gt;the formula with the sum is wrong. It is a count that it takes:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;= FirstSortedValue (DISTINCT Name, -aggr (sum (test_ID), player_ID))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS:&amp;nbsp;&lt;SPAN&gt;I just saw that in the custom objects, there were multi KPIs. But now i want to filter the set analysis with a "count" function ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=count({&amp;lt;player_ID =- {'0','-1'}, count(distinct test_id) = max(aggr(count({&amp;lt;Distinct test_id), player_ID))&amp;gt;} distinct test_id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 22:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-all-the-results-possible-if-equals/m-p/1737217#M56393</guid>
      <dc:creator>smic</dc:creator>
      <dc:date>2020-08-19T22:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Display all the results possible if equals</title>
      <link>https://community.qlik.com/t5/App-Development/Display-all-the-results-possible-if-equals/m-p/1737221#M56394</link>
      <description>&lt;P&gt;What is the expected output? Can you share some sample data?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 22:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-all-the-results-possible-if-equals/m-p/1737221#M56394</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-19T22:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Display all the results possible if equals</title>
      <link>https://community.qlik.com/t5/App-Development/Display-all-the-results-possible-if-equals/m-p/1737229#M56395</link>
      <description>&lt;P&gt;hi,&lt;BR /&gt;&lt;BR /&gt;I want this (because these two persons have been present during 2 tests sessions):&lt;/P&gt;&lt;TABLE border="0" width="160" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="80" height="20"&gt;Toto&lt;/TD&gt;&lt;TD width="80"&gt;Titi&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a Multi KPI chart.&lt;BR /&gt;&lt;BR /&gt;In fact, i want to count distinct test_id by player_id.&lt;BR /&gt;But i want display only Player_id where count distinct test_id = max(aggr(count( Distinct test_id), Player_id))&lt;BR /&gt;How to filter the count&amp;nbsp; function and keep only max values of this count please ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 22:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-all-the-results-possible-if-equals/m-p/1737229#M56395</guid>
      <dc:creator>smic</dc:creator>
      <dc:date>2020-08-19T22:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Display all the results possible if equals</title>
      <link>https://community.qlik.com/t5/App-Development/Display-all-the-results-possible-if-equals/m-p/1737232#M56396</link>
      <description>&lt;LI-CODE lang="javascript"&gt;// Replace below inline table with your actual data
Data:
Load * Inline [
Player_id,Player_Name, Test_id
1,toto,1
2,titi,1
1,toto,2
2,titi,2
3,tata,1 ];

Now you can use below expression in KPI object

=concat(aggr(if(max(total aggr(Count(distinct Test_id),Player_id))=max(total &amp;lt;Player_id&amp;gt;aggr(Count(distinct Test_id),Player_id)),
Player_Name&amp;amp;':'&amp;amp;count(distinct Test_id)),Player_id),',')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2020-08-20 001022.png" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39283i242B4C38583A2617/image-size/small?v=v2&amp;amp;px=200" role="button" title="Annotation 2020-08-20 001022.png" alt="Annotation 2020-08-20 001022.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 23:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-all-the-results-possible-if-equals/m-p/1737232#M56396</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-19T23:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Display all the results possible if equals</title>
      <link>https://community.qlik.com/t5/App-Development/Display-all-the-results-possible-if-equals/m-p/1737676#M56422</link>
      <description>&lt;P&gt;Hi Kush,&lt;BR /&gt;&lt;BR /&gt;thanks you for helping !!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 09:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-all-the-results-possible-if-equals/m-p/1737676#M56422</guid>
      <dc:creator>smic</dc:creator>
      <dc:date>2020-08-21T09:34:21Z</dc:date>
    </item>
  </channel>
</rss>

