<?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 proper syntax for distinct count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/proper-syntax-for-distinct-count/m-p/792297#M1033939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to do a distinct count of Rx# when Refill# = 0. Here's my expression so far...&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;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[RX#]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;P&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Refill#]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={0}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[RX#]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[RX#]&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;How do you tweak this to include a distinct count of RX#?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm failing at figuring this one out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jan 2015 18:58:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-14T18:58:03Z</dc:date>
    <item>
      <title>proper syntax for distinct count</title>
      <link>https://community.qlik.com/t5/QlikView/proper-syntax-for-distinct-count/m-p/792297#M1033939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to do a distinct count of Rx# when Refill# = 0. Here's my expression so far...&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;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[RX#]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;P&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Refill#]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={0}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[RX#]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[RX#]&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;How do you tweak this to include a distinct count of RX#?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm failing at figuring this one out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 18:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/proper-syntax-for-distinct-count/m-p/792297#M1033939</guid>
      <dc:creator />
      <dc:date>2015-01-14T18:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: proper syntax for distinct count</title>
      <link>https://community.qlik.com/t5/QlikView/proper-syntax-for-distinct-count/m-p/792298#M1033940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(Distinct {$&amp;lt;[Refil#]={0}&amp;gt;}[RX#])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 19:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/proper-syntax-for-distinct-count/m-p/792298#M1033940</guid>
      <dc:creator>vinafidalgo</dc:creator>
      <dc:date>2015-01-14T19:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: proper syntax for distinct count</title>
      <link>https://community.qlik.com/t5/QlikView/proper-syntax-for-distinct-count/m-p/792299#M1033941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DISTINCT clause must precede you Set Analysis expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 19:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/proper-syntax-for-distinct-count/m-p/792299#M1033941</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-01-14T19:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: proper syntax for distinct count</title>
      <link>https://community.qlik.com/t5/QlikView/proper-syntax-for-distinct-count/m-p/792300#M1033942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Vinivius! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 22:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/proper-syntax-for-distinct-count/m-p/792300#M1033942</guid>
      <dc:creator />
      <dc:date>2015-01-15T22:22:39Z</dc:date>
    </item>
  </channel>
</rss>

