<?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 with set_expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620151#M228322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, in the attached example, the technician 16997 is "overbooked" in the week 03/02/14, because he's contemporarly busy with the customer 1010000980 and the customer 1010001376.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to picture the background of the "overbooked" cell with another color, so that they are immediately visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it's clear now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Feb 2014 11:29:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-02-07T11:29:42Z</dc:date>
    <item>
      <title>Count distinct with set_expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620141#M228312</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 need to count the number of occurrences of a name within a week in a year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something like that:&lt;/P&gt;&lt;P&gt;=COUNT( DISTINCT &amp;lt;WeekNumberOfTheYear&amp;gt; Name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me, please?&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;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 09:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620141#M228312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-07T09:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct with set_expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620142#M228313</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;create week number in calendar of your app.&lt;/P&gt;&lt;P&gt;Count({&amp;lt;WeekNo = {'$(=Max(WeekNo))'}, Date=, Day= &amp;gt;} Distinct Name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 09:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620142#M228313</guid>
      <dc:creator>senpradip007</dc:creator>
      <dc:date>2014-02-07T09:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct with set_expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620143#M228314</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;Distinct is in the wrong place;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=COUNT(&amp;lt;WeekNumberOfTheYear&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DISTINCT&lt;/SPAN&gt; Name)&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;HTH&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;Jonathan&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;PS = this is ignoring selections in a field called [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;WeekNumberOfTheYear&lt;/SPAN&gt;]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 09:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620143#M228314</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-02-07T09:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct with set_expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620144#M228315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Edp,&lt;/P&gt;&lt;P&gt;Try below Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;Laod Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&lt;/P&gt;&lt;P&gt;from Datasource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test1:&lt;/P&gt;&lt;P&gt;Load Week(Date) as WeekNo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year(Date) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(Distinct Name) as NameCount&lt;/P&gt;&lt;P&gt;resident Test&lt;/P&gt;&lt;P&gt;Group by WeekNo, Year;&lt;/P&gt;&lt;P&gt;Drop table Test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 10:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620144#M228315</guid>
      <dc:creator>kiranmanoharrode</dc:creator>
      <dc:date>2014-02-07T10:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct with set_expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620145#M228316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the function in the chart, not in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 10:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620145#M228316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-07T10:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct with set_expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620146#M228317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jonathan,&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;I switched as you explained, but it's doesn't work again (the result is an '-').&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;Thank you.&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;N.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 10:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620146#M228317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-07T10:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct with set_expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620147#M228318</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 tried as you explained (I calculated WeekNo As Year*100+Week, so I have 201401, 201402 and so on...), but the result is always 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 10:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620147#M228318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-07T10:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct with set_expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620148#M228319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a Straight Table with&lt;/P&gt;&lt;P&gt;WeekNumber as Dimension&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;Count (Distinct Name) as Expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 10:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620148#M228319</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-07T10:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct with set_expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620149#M228320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please elaborate your requirement.&lt;/P&gt;&lt;P&gt;What is the dimension u r using? and in what type of chart?&lt;/P&gt;&lt;P&gt;u want to count the number of occurance of a particular name in a partucular week of a year or in all weeks of the year?&lt;/P&gt;&lt;P&gt;Try to post a sample data and expected output.&lt;/P&gt;&lt;P&gt;-Sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 10:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620149#M228320</guid>
      <dc:creator>sundarakumar</dc:creator>
      <dc:date>2014-02-07T10:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct with set_expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620150#M228321</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;As we are all just guessing at the problem now, it would be a good idea to post your qvw with some sample data so that can be looked at in more detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 10:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620150#M228321</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-02-07T10:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct with set_expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620151#M228322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, in the attached example, the technician 16997 is "overbooked" in the week 03/02/14, because he's contemporarly busy with the customer 1010000980 and the customer 1010001376.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to picture the background of the "overbooked" cell with another color, so that they are immediately visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it's clear now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 11:29:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620151#M228322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-07T11:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct with set_expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620152#M228323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 10:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-distinct-with-set-expression/m-p/620152#M228323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-25T10:42:00Z</dc:date>
    </item>
  </channel>
</rss>

