<?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: Counting a Count? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Counting-a-Count/m-p/1909066#M74944</link>
    <description>&lt;P&gt;Thank you both, either solution seemed to get the answer I was looking for!&lt;BR /&gt;&lt;BR /&gt;Much appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Mar 2022 23:24:10 GMT</pubDate>
    <dc:creator>Michael_Hart</dc:creator>
    <dc:date>2022-03-23T23:24:10Z</dc:date>
    <item>
      <title>Counting a Count?</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-a-Count/m-p/1908520#M74892</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have a set of data that contains the location of items in a warehouse. As a simplified version:&lt;/P&gt;
&lt;TABLE border="1" width="27.124321429940704%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="22.62357414448669%" height="25px"&gt;Location&lt;/TD&gt;
&lt;TD width="4.500527299481007%" height="25px"&gt;Item no.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="22.62357414448669%" height="25px"&gt;A&lt;/TD&gt;
&lt;TD width="4.500527299481007%" height="25px"&gt;001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="22.62357414448669%" height="25px"&gt;B&lt;/TD&gt;
&lt;TD width="4.500527299481007%" height="25px"&gt;002&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="22.62357414448669%" height="25px"&gt;A&lt;/TD&gt;
&lt;TD width="4.500527299481007%" height="25px"&gt;003&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="22.62357414448669%" height="25px"&gt;A&lt;/TD&gt;
&lt;TD width="4.500527299481007%" height="25px"&gt;004&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="22.62357414448669%" height="25px"&gt;C&lt;/TD&gt;
&lt;TD width="4.500527299481007%" height="25px"&gt;005&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="22.62357414448669%" height="25px"&gt;D&lt;/TD&gt;
&lt;TD width="4.500527299481007%" height="25px"&gt;007&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="22.62357414448669%" height="25px"&gt;C&lt;/TD&gt;
&lt;TD width="4.500527299481007%" height="25px"&gt;008&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can then count the number of times a location is used.&lt;/P&gt;
&lt;TABLE border="1" width="27.124321429940707%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="22.62357414448669%" height="47px"&gt;Location&lt;/TD&gt;
&lt;TD width="4.500527299481007%" height="47px"&gt;count(location)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="22.62357414448669%" height="25px"&gt;A&lt;/TD&gt;
&lt;TD width="4.500527299481007%" height="25px"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="22.62357414448669%" height="25px"&gt;B&lt;/TD&gt;
&lt;TD width="4.500527299481007%" height="25px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="22.62357414448669%" height="25px"&gt;C&lt;/TD&gt;
&lt;TD width="4.500527299481007%" height="25px"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="22.62357414448669%" height="25px"&gt;D&lt;/TD&gt;
&lt;TD width="4.500527299481007%" height="25px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then want a KPI that shows the number of locations that only have &lt;STRONG&gt;1&lt;/STRONG&gt; item.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i.e&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="26.853331636532307%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;2 locations have 1 item&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I do this in one formula.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 06:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-a-Count/m-p/1908520#M74892</guid>
      <dc:creator>Michael_Hart</dc:creator>
      <dc:date>2022-03-23T06:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Counting a Count?</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-a-Count/m-p/1908554#M74894</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/154706"&gt;@Michael_Hart&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try this:&lt;/P&gt;
&lt;P&gt;Sum (&lt;/P&gt;
&lt;P&gt;if( Aggr( Count([Item no.]) , Location ) = 1 , 1, 0 )&lt;/P&gt;
&lt;P&gt;)&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, 23 Mar 2022 07:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-a-Count/m-p/1908554#M74894</guid>
      <dc:creator>joseph_morales</dc:creator>
      <dc:date>2022-03-23T07:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Counting a Count?</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-a-Count/m-p/1908697#M74898</link>
      <description>&lt;P&gt;Hey, you can get the result like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;COUNT({&amp;lt;Location={"=COUNT(Location)=1"}&amp;gt;}Location)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 23 Mar 2022 10:54:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-a-Count/m-p/1908697#M74898</guid>
      <dc:creator>RsQK</dc:creator>
      <dc:date>2022-03-23T10:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Counting a Count?</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-a-Count/m-p/1909066#M74944</link>
      <description>&lt;P&gt;Thank you both, either solution seemed to get the answer I was looking for!&lt;BR /&gt;&lt;BR /&gt;Much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 23:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-a-Count/m-p/1909066#M74944</guid>
      <dc:creator>Michael_Hart</dc:creator>
      <dc:date>2022-03-23T23:24:10Z</dc:date>
    </item>
  </channel>
</rss>

