<?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 aggregates question in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/counting-aggregates-question/m-p/954265#M13581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes the only différence was the single quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'am not sure to understand your need&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;"I am trying to do a count of the number of households where anyone in the household has a ‘T’ for TestOrControl and anyone in the household has a ‘1’ for response.&amp;nbsp; So, in this example, I should get 2 as a result."&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 4.65pt; padding: 0px 5.4pt; border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; width: 311px;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="69"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;Individual&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="83"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;Household&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="95"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;TestOrControl&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="64"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;Response&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="69"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="83"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="95"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;STRONG style="color: #ff0000;"&gt;T&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="64"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="69"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="83"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="95"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="64"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="69"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="83"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="95"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&lt;STRONG style="color: #ff0000;"&gt;T&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="64"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="color: #ff0000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="69"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="83"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="95"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="64"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="69"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="83"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="95"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&lt;STRONG style="color: #ff0000;"&gt;T&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="64"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="69"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="83"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="95"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="64"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have three distinct household &lt;/P&gt;&lt;P&gt;three testorcontrole = T &lt;/P&gt;&lt;P&gt;and only one houshold with a T as testorcontrol and 1 for response gives 1 occurence and not 2 ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the qvf attached where i test the different count method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure is that what you want ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Nov 2015 09:26:14 GMT</pubDate>
    <dc:creator>brunobertels</dc:creator>
    <dc:date>2015-11-21T09:26:14Z</dc:date>
    <item>
      <title>counting aggregates question</title>
      <link>https://community.qlik.com/t5/App-Development/counting-aggregates-question/m-p/954259#M13575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;BR /&gt; &lt;BR /&gt; I am new to the community and Qlik Sense. I’ve looked around for an answer to something I’m trying to do but haven’t found the answer anywhere yet.&amp;nbsp;&amp;nbsp; I think the solution to my problem is some sort of combination of aggr() and set analysis, but I haven’t come up with a solution yet.&amp;nbsp; Here’s an example of some data I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 4.65pt; padding: 0 5.4pt 0 5.4pt;" width="311"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="69"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;Individual&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="83"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;Household&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="95"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;TestOrControl&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;Response&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="69"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="83"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="95"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;T&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="69"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="83"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="95"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="69"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="83"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="95"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;T&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="69"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="83"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="95"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="69"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="83"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="95"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;T&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="69"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="83"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="95"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do a count of the number of households where anyone in the household has a ‘T’ for TestOrControl and anyone in the household has a ‘1’ for response.&amp;nbsp; So, in this example, I should get 2 as a result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression that I’m currently using is only coming up with 1 as a result, only counting household B because there is an individual that has both conditions that I’m looking for (individual 3) when I really want to include household A because, as a whole, the two individuals combing to meet my two criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here’s what I have right now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;TestOrControl={'C'}, Response={1}&amp;gt;} distinct Household)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I need to get an aggr() in there somewhere, but I can’t figure out how.&amp;nbsp; The problem is that I have two conditions that I’m looking at instead of just one.&amp;nbsp; I can get one of those to work, but not both.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’ve also been doing some research on using FirstSortedValue() and that looks somewhat promising as well, but I’m not sure how to incorporate that here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on where to start on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 16:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/counting-aggregates-question/m-p/954259#M13575</guid>
      <dc:creator>rossdoug</dc:creator>
      <dc:date>2015-11-20T16:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: counting aggregates question</title>
      <link>https://community.qlik.com/t5/App-Development/counting-aggregates-question/m-p/954260#M13576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Doug &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count({&amp;lt;TestOrControl={'C'}, Response={'1'}&amp;gt;} distinct Household)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hope this help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;To help you with set analysis ses this tool :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;A href="http://tools.qlikblog.at/SetAnalysisWizard/QlikView-SetAnalysis_Wizard_and_Generator.aspx?sa="&gt;http://tools.qlikblog.at/SetAnalysisWizard/QlikView-SetAnalysis_Wizard_and_Generator.aspx?sa=&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Bruno &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 18:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/counting-aggregates-question/m-p/954260#M13576</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2015-11-20T18:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: counting aggregates question</title>
      <link>https://community.qlik.com/t5/App-Development/counting-aggregates-question/m-p/954261#M13577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response.&amp;nbsp; The only difference I see there is the single quotes around the 1, right?&amp;nbsp; I tried it and got the same result as I did without the quotes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 18:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/counting-aggregates-question/m-p/954261#M13577</guid>
      <dc:creator>rossdoug</dc:creator>
      <dc:date>2015-11-20T18:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: counting aggregates question</title>
      <link>https://community.qlik.com/t5/App-Development/counting-aggregates-question/m-p/954262#M13578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in a textbox you can get A B&lt;/P&gt;&lt;P&gt;for count replace concat with count&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;concat(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;aggr( if(count({$ &amp;lt;TestOrControl={C}&amp;gt;} Household)&amp;gt;0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; and count({$ &amp;lt;Response={1}&amp;gt;} Household)&amp;gt;0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; ,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Household&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; ), &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Household)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;, ' ')&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 19:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/counting-aggregates-question/m-p/954262#M13578</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-11-20T19:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: counting aggregates question</title>
      <link>https://community.qlik.com/t5/App-Development/counting-aggregates-question/m-p/954263#M13579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp;&amp;nbsp; I think that will work for me.&amp;nbsp; I pulled out concat and replaced with count:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(aggr( if(count({$ &amp;lt;TestOrControl={T}&amp;gt;} Household)&amp;gt;0 and count({$ &amp;lt;Response={1}&amp;gt;} Household)&amp;gt;0, Household ), Household))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That gave me the result of 2 that I was looking for.&amp;nbsp; I need to put this into my real application and into some calculations involving sales, but I think it will do the trick.&amp;nbsp; Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 23:10:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/counting-aggregates-question/m-p/954263#M13579</guid>
      <dc:creator>rossdoug</dc:creator>
      <dc:date>2015-11-20T23:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: counting aggregates question</title>
      <link>https://community.qlik.com/t5/App-Development/counting-aggregates-question/m-p/954264#M13580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you get the answer, please close the threa, thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Nov 2015 07:37:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/counting-aggregates-question/m-p/954264#M13580</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-11-21T07:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: counting aggregates question</title>
      <link>https://community.qlik.com/t5/App-Development/counting-aggregates-question/m-p/954265#M13581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes the only différence was the single quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'am not sure to understand your need&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;"I am trying to do a count of the number of households where anyone in the household has a ‘T’ for TestOrControl and anyone in the household has a ‘1’ for response.&amp;nbsp; So, in this example, I should get 2 as a result."&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 4.65pt; padding: 0px 5.4pt; border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; width: 311px;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="69"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;Individual&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="83"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;Household&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="95"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;TestOrControl&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="64"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;Response&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="69"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="83"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="95"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;STRONG style="color: #ff0000;"&gt;T&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="64"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="69"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="83"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="95"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="64"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="69"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="83"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="95"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&lt;STRONG style="color: #ff0000;"&gt;T&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="64"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="color: #ff0000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="69"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="83"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="95"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="64"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="69"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="83"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="95"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&lt;STRONG style="color: #ff0000;"&gt;T&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="64"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border: 1pt solid windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="69"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="83"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="95"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt; border-right-width: 1pt; border-bottom-width: 1pt; border-style: none solid solid none; border-right-color: windowtext; border-bottom-color: windowtext; font-style: inherit; font-family: inherit;" valign="bottom" width="64"&gt;&lt;P align="center" style="font-weight: inherit; font-style: inherit; font-family: inherit; text-align: center;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have three distinct household &lt;/P&gt;&lt;P&gt;three testorcontrole = T &lt;/P&gt;&lt;P&gt;and only one houshold with a T as testorcontrol and 1 for response gives 1 occurence and not 2 ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the qvf attached where i test the different count method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure is that what you want ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Nov 2015 09:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/counting-aggregates-question/m-p/954265#M13581</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2015-11-21T09:26:14Z</dc:date>
    </item>
  </channel>
</rss>

