<?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: Count distinct combinations of two fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-distinct-combinations-of-two-fields/m-p/763711#M472206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What dimensions do you want in your straight table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could just try using Count(Distinct %Product &amp;amp; %Depot) which would count the distinct combinations available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise if you just want the figure, create a straight table with %Product and %Depot as your dimensions and just shove a count in there!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2015 11:56:37 GMT</pubDate>
    <dc:creator>morganaaron</dc:creator>
    <dc:date>2015-01-26T11:56:37Z</dc:date>
    <item>
      <title>Count distinct combinations of two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-combinations-of-two-fields/m-p/763708#M472203</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 would like to calculate a simple Count of distinct combinations of two fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two fields are %Product and %Depot. To count the unique combinations of %Product and %Depot, do I need something like the following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Aggr(Count(Distinct %Product),%Depot)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Not sure if I'm on the right track...the equation will just be used in a straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 11:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-combinations-of-two-fields/m-p/763708#M472203</guid>
      <dc:creator />
      <dc:date>2015-01-26T11:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct combinations of two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-combinations-of-two-fields/m-p/763709#M472204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt; =Count(Distinct( %Product))+Count(Distinct(%Depot))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 11:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-combinations-of-two-fields/m-p/763709#M472204</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-01-26T11:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct combinations of two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-combinations-of-two-fields/m-p/763710#M472205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count(distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px;"&gt;%Product &amp;amp; '|' &amp;amp; %Depot)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 11:54:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-combinations-of-two-fields/m-p/763710#M472205</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-01-26T11:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct combinations of two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-combinations-of-two-fields/m-p/763711#M472206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What dimensions do you want in your straight table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could just try using Count(Distinct %Product &amp;amp; %Depot) which would count the distinct combinations available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise if you just want the figure, create a straight table with %Product and %Depot as your dimensions and just shove a count in there!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 11:56:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-combinations-of-two-fields/m-p/763711#M472206</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2015-01-26T11:56:37Z</dc:date>
    </item>
  </channel>
</rss>

