<?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 Apply 'Count' to result of 'Aggr' in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Apply-Count-to-result-of-Aggr/m-p/1876246#M72233</link>
    <description>&lt;P&gt;I want to use the results of the following table to create a KPI:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-12-31 at 00.50.33.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69414iF1B9E376B3CA6D40/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-12-31 at 00.50.33.png" alt="Screen Shot 2021-12-31 at 00.50.33.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The KPI I want to create is the 90 from the right column. In order to access 90, I need to apply 'Count(DISTINCT OrderID)' to the first row of the 'Aggr()'-result in the same expression. How can I achieve that? &lt;/P&gt;</description>
    <pubDate>Fri, 31 Dec 2021 00:00:37 GMT</pubDate>
    <dc:creator>Luca1</dc:creator>
    <dc:date>2021-12-31T00:00:37Z</dc:date>
    <item>
      <title>Apply 'Count' to result of 'Aggr'</title>
      <link>https://community.qlik.com/t5/App-Development/Apply-Count-to-result-of-Aggr/m-p/1876246#M72233</link>
      <description>&lt;P&gt;I want to use the results of the following table to create a KPI:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-12-31 at 00.50.33.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69414iF1B9E376B3CA6D40/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-12-31 at 00.50.33.png" alt="Screen Shot 2021-12-31 at 00.50.33.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The KPI I want to create is the 90 from the right column. In order to access 90, I need to apply 'Count(DISTINCT OrderID)' to the first row of the 'Aggr()'-result in the same expression. How can I achieve that? &lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 00:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Apply-Count-to-result-of-Aggr/m-p/1876246#M72233</guid>
      <dc:creator>Luca1</dc:creator>
      <dc:date>2021-12-31T00:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Apply 'Count' to result of 'Aggr'</title>
      <link>https://community.qlik.com/t5/App-Development/Apply-Count-to-result-of-Aggr/m-p/1876289#M72235</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Try this&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(DISTINCT Customer, Rank(Count(Distinct OrderID), 4, 1), Customer)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 08:25:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Apply-Count-to-result-of-Aggr/m-p/1876289#M72235</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2021-12-31T08:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Apply 'Count' to result of 'Aggr'</title>
      <link>https://community.qlik.com/t5/App-Development/Apply-Count-to-result-of-Aggr/m-p/1876299#M72237</link>
      <description>&lt;P&gt;Hey, your solution yields the following error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-12-31 at 09.59.24.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69423iE4848358B63A9AD5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-12-31 at 09.59.24.png" alt="Screen Shot 2021-12-31 at 09.59.24.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 08:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Apply-Count-to-result-of-Aggr/m-p/1876299#M72237</guid>
      <dc:creator>Luca1</dc:creator>
      <dc:date>2021-12-31T08:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Apply 'Count' to result of 'Aggr'</title>
      <link>https://community.qlik.com/t5/App-Development/Apply-Count-to-result-of-Aggr/m-p/1876302#M72238</link>
      <description>&lt;P&gt;Try something like (with reverse condition to get the false output):&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Count(Distinct{&amp;lt;[customers$.CompanyName]={"=Count(Distinct OrderID)&lt;STRONG&gt;&amp;lt;=&lt;/STRONG&gt;10"}&amp;gt;} OrderID)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 09:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Apply-Count-to-result-of-Aggr/m-p/1876302#M72238</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2021-12-31T09:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Apply 'Count' to result of 'Aggr'</title>
      <link>https://community.qlik.com/t5/App-Development/Apply-Count-to-result-of-Aggr/m-p/1876303#M72239</link>
      <description>&lt;P&gt;Your support is superb guys, thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 09:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Apply-Count-to-result-of-Aggr/m-p/1876303#M72239</guid>
      <dc:creator>Luca1</dc:creator>
      <dc:date>2021-12-31T09:48:48Z</dc:date>
    </item>
  </channel>
</rss>

