<?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: Combining 2 COUNT statements with different Dimension values? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Combining-2-COUNT-statements-with-different-Dimension-values/m-p/561832#M209687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!&amp;nbsp; Worked like a charm.&amp;nbsp; Thanks so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jul 2013 19:36:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-11T19:36:36Z</dc:date>
    <item>
      <title>Combining 2 COUNT statements with different Dimension values?</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-2-COUNT-statements-with-different-Dimension-values/m-p/561830#M209685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to combine 2 COUNT statements that have unique Dimension values.&amp;nbsp; I need these to be aggregated, not added.&amp;nbsp; So if either of the two Count statements have some of the same value, that value only gets counted once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the 2 statements..... Notice that they have some similar Dimension values (Year, Code04), but then some different (Code01,Code02,Code03)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried putting an 'OR' between them, but just got -1 as the result.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count( {$&amp;lt;Year = {$(=max(MaxYear))}, Code1 = {'Value01','Value02'}, Code04 = {'Value15'}&amp;gt;}distinct ACCOUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count ({$&amp;lt;Year = {$(=max(MaxYear))}, Code1 = {'Value03'}, Code2 = {'Value05'},&amp;nbsp; Code3&amp;nbsp; = {'Value09'}, Code04 = {'Value15'}&amp;gt;}distinct ACCOUNT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 14:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-2-COUNT-statements-with-different-Dimension-values/m-p/561830#M209685</guid>
      <dc:creator />
      <dc:date>2013-07-10T14:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Combining 2 COUNT statements with different Dimension values?</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-2-COUNT-statements-with-different-Dimension-values/m-p/561831#M209686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;Count( {$&amp;lt;Year = {$(=max(MaxYear))}, Code1 = {'Value01','Value02'}, Code04 = {'Value15'}&amp;gt; + &amp;lt;Year = {$(=max(MaxYear))}, Code1 = {'Value03'}, Code2 = {'Value05'},&amp;nbsp; Code3&amp;nbsp; = {'Value09'}, Code04 = {'Value15'}&amp;gt;}distinct ACCOUNT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 17:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-2-COUNT-statements-with-different-Dimension-values/m-p/561831#M209686</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-11T17:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Combining 2 COUNT statements with different Dimension values?</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-2-COUNT-statements-with-different-Dimension-values/m-p/561832#M209687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!&amp;nbsp; Worked like a charm.&amp;nbsp; Thanks so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 19:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-2-COUNT-statements-with-different-Dimension-values/m-p/561832#M209687</guid>
      <dc:creator />
      <dc:date>2013-07-11T19:36:36Z</dc:date>
    </item>
  </channel>
</rss>

