<?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: Aggr Syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Syntax/m-p/1399614#M424473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe check your other post (and I would appreciate to stick to one thread).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And maybe attach some sample records and your expected result. It's not 100% clear to me what you are trying to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: your other thread seems to be deleted. This was my suggestion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;DEFECT_ID = e({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COM_CAT &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'ERC - Routing'}&amp;gt;}) &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Nov 2017 20:34:30 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-11-29T20:34:30Z</dc:date>
    <item>
      <title>Aggr Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Syntax/m-p/1399613#M424472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to ID the count of DEFECT_ID that have never been COM_CAT = 'ERC - Routing'. Everything I am trying is only excluding the one row that COM_CAT = 'ERC - Routing' as opposed to showing those that have never been in that status. What is the right syntax for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COM_CAT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={'ERC - Routing'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COM_CAT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REQUEST_REGION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUR_STATUS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 20:27:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Syntax/m-p/1399613#M424472</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2017-11-29T20:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Syntax/m-p/1399614#M424473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe check your other post (and I would appreciate to stick to one thread).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And maybe attach some sample records and your expected result. It's not 100% clear to me what you are trying to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: your other thread seems to be deleted. This was my suggestion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;DEFECT_ID = e({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COM_CAT &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'ERC - Routing'}&amp;gt;}) &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 20:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Syntax/m-p/1399614#M424473</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-11-29T20:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Syntax/m-p/1399615#M424474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Hi, i think you can use E() function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;COM_CAT&lt;/SPAN&gt;= E({1 &amp;lt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;COM_CAT={&lt;/SPAN&gt;'ERC - Routing'}&amp;gt;})&amp;gt;} &lt;SPAN style="color: #0000ff;"&gt;distinct&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DEFECT_ID&lt;/SPAN&gt;), &lt;SPAN style="color: #800000;"&gt;DEFECT_ID&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;COM_CAT&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;REQUEST_REGION&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;CUR_STATUS&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 20:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Syntax/m-p/1399615#M424474</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2017-11-29T20:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Syntax/m-p/1399616#M424475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. I actually did delete that comment before writing this one. Apologies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the attached sample. I am looking for a distinct count of DEFECT_ID for those that did not EVER have a COM_CAT = 'ERC - Routing'. While the expression with e appears to get me closer, it's showing a count of 1 for each COM_CAT as opposed to 1 per distinct DEFECT. Any thoughts? !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 21:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Syntax/m-p/1399616#M424475</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2017-11-29T21:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Syntax/m-p/1399617#M424476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried my expression (the one without advanced aggregation)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 21:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Syntax/m-p/1399617#M424476</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-11-29T21:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Syntax/m-p/1399618#M424477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It still shows 1 for each COM_CAT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;DEFECT_ID = e({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COM_CAT &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'ERC - Routing'}&amp;gt;}) &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="11-29-2017 2-32-20 PM.jpg" class="jive-image image-1" src="/legacyfs/online/185164_11-29-2017 2-32-20 PM.jpg" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 21:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Syntax/m-p/1399618#M424477</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2017-11-29T21:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Syntax/m-p/1399619#M424478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's because you are using COM_CAT as dimension.&lt;/P&gt;&lt;P&gt;The Total line should be correct, displaying the distinct count of Defect IDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you expect to see in your table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 21:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Syntax/m-p/1399619#M424478</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-11-29T21:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Syntax/m-p/1399620#M424479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or maybe try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(&lt;/P&gt;&lt;P&gt;Aggr(Count({$&amp;lt;DEFECT_ID= E({1 &amp;lt;COM_CAT={'ERC - Routing'}&amp;gt;})&amp;gt;} distinct DEFECT_ID),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEFECT_ID,REQUEST_REGION,CUR_STATUS) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 22:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Syntax/m-p/1399620#M424479</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-11-29T22:38:46Z</dc:date>
    </item>
  </channel>
</rss>

