<?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: Using DISTINCT in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-DISTINCT/m-p/640831#M1091241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a straight table; dimension:Account, Expression: =count (distinct [task name])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2014 05:39:31 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-05-21T05:39:31Z</dc:date>
    <item>
      <title>Using DISTINCT</title>
      <link>https://community.qlik.com/t5/QlikView/Using-DISTINCT/m-p/640830#M1091240</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;I am trying to calculate the percentage which tasks have been delivered for accounts.&amp;nbsp; Tasks may be performed more than once, however i am disregarding this as i am looking for completeness in the range of tasks.&amp;nbsp; So if i have task 1, 2, 3, 4, 5 and 6 where 1, 2, 3 was completed but 3 was done twice, the calculation should still result in 50% completion not 66%.&amp;nbsp; So I am trying to use DISTINCT as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count (distinct [task name])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which works when i've filtered down to 1 account.&amp;nbsp; When unfiltered so i have more than 1 account it consolidates the count of distinct task names. So if account 1 and 2 had completed tasks 1, 2 and 3, it would give me a count of 3 instead of the desired 6.&amp;nbsp; How do I get QV to count distinct task names per account??&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 05:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-DISTINCT/m-p/640830#M1091240</guid>
      <dc:creator />
      <dc:date>2014-05-21T05:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using DISTINCT</title>
      <link>https://community.qlik.com/t5/QlikView/Using-DISTINCT/m-p/640831#M1091241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a straight table; dimension:Account, Expression: =count (distinct [task name])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 05:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-DISTINCT/m-p/640831#M1091241</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-21T05:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using DISTINCT</title>
      <link>https://community.qlik.com/t5/QlikView/Using-DISTINCT/m-p/640832#M1091242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count (distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;account &lt;/SPAN&gt;&amp;amp; [task name])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 05:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-DISTINCT/m-p/640832#M1091242</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-05-21T05:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using DISTINCT</title>
      <link>https://community.qlik.com/t5/QlikView/Using-DISTINCT/m-p/640833#M1091243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to you both - i'd neglected the dimension!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Carlo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 06:22:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-DISTINCT/m-p/640833#M1091243</guid>
      <dc:creator />
      <dc:date>2014-05-21T06:22:06Z</dc:date>
    </item>
  </channel>
</rss>

