<?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: How to avoid the distinct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-avoid-the-distinct/m-p/518640#M193678</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;Try this exp...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(NODISTINCT count(DISTINCT MemberId), YearMonth)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Dec 2013 05:32:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-23T05:32:03Z</dc:date>
    <item>
      <title>How to avoid the distinct</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-the-distinct/m-p/518634#M193672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YearMonth, MemberId, LoginMinutes&lt;/P&gt;&lt;P&gt;2013-1,123,300&lt;/P&gt;&lt;P&gt;2013-1,123,500&lt;/P&gt;&lt;P&gt;2013-1,125,500&lt;/P&gt;&lt;P&gt;2013-2,123,900&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to use one pivot table to show how many unique visitor to login the web site:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I use YearMonth as the Dimension and use count(distinct MemberId) as the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I heard that use distinct is not efficient, could you suggest which expression should be used to instead of distinct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 02:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-the-distinct/m-p/518634#M193672</guid>
      <dc:creator />
      <dc:date>2013-12-23T02:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid the distinct</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-the-distinct/m-p/518635#M193673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isaac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This blog may give you the answer you seek:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/10/22/a-myth-about-countdistinct" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/10/22/a-myth-about-countdistinct"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/10/22/a-myth-about-countdistinct&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 02:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-the-distinct/m-p/518635#M193673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-23T02:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid the distinct</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-the-distinct/m-p/518636#M193674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isaac,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can give some example for expect result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 02:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-the-distinct/m-p/518636#M193674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-23T02:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid the distinct</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-the-distinct/m-p/518637#M193675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the performance of the application slower than desired?&amp;nbsp; If so, you may need to move some of the expression into the script itself.&amp;nbsp; Otherwise the Distinct issue is a myth as Rod pointed out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 03:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-the-distinct/m-p/518637#M193675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-23T03:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid the distinct</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-the-distinct/m-p/518638#M193676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isaac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to avoid DISTINCT then do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YearMonth, MemberId, LoginMinutes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FROM SourceData;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Members:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LOAD Distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MemberId,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;1 AS MemberFlag&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;RESIDENT Data;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Now you can just use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MemberFlag&lt;/SPAN&gt;) to get the distinct count of users.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 04:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-the-distinct/m-p/518638#M193676</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-12-23T04:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid the distinct</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-the-distinct/m-p/518639#M193677</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;Personally, You have made correct statement for distinct. I always do the same way never thought of that it &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;is not efficient or need to change.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 04:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-the-distinct/m-p/518639#M193677</guid>
      <dc:creator>qlikpahadi07</dc:creator>
      <dc:date>2013-12-23T04:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid the distinct</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-the-distinct/m-p/518640#M193678</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;Try this exp...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(NODISTINCT count(DISTINCT MemberId), YearMonth)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 05:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-the-distinct/m-p/518640#M193678</guid>
      <dc:creator />
      <dc:date>2013-12-23T05:32:03Z</dc:date>
    </item>
  </channel>
</rss>

