<?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 Count Distinct IF - Straight Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Distinct-IF-Straight-Table/m-p/220312#M73238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. An account can have many status's associated with it (i.e 'Action')&lt;/P&gt;&lt;P&gt;2. An account can be 'actioned' (commented on ) on many days.&lt;/P&gt;&lt;P&gt;3. An account can be ('commented on by multiple agents on a day/s.&lt;/P&gt;&lt;P&gt;4 An account can have different comments or same comments on an account by different users or same users on the same day or different day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for each day distinct accounts that were commented on by users&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I haven't confused you even more.&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jul 2010 08:52:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-13T08:52:45Z</dc:date>
    <item>
      <title>Count Distinct IF - Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-IF-Straight-Table/m-p/220310#M73236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Has anyone en-counted the same problem as me here goes.&lt;/P&gt;&lt;P&gt;We are in a call center environment one of the things we measure is the no of accounts that an agent may work for a given time period.&lt;/P&gt;&lt;P&gt;I have a straight table which has an expression that does the ffg&lt;/P&gt;&lt;P&gt;"count(distinct(if(Status = 'Action', [Account Code])))"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result set that come of this is as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; height: 198px;" width="203"&gt;&lt;COL style="width: 47pt;" width="63" /&gt;&lt;COL style="width: 63pt;" width="84" /&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="height: 12.75pt; width: 47pt;" width="63"&gt;Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; width: 63pt;" width="84"&gt;Accs Touched&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="height: 12.75pt; border-top: medium none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: medium none;"&gt;17,284&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;2010/07/01&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none;"&gt;3,211&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;2010/07/05&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none;"&gt;4,235&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;2010/07/06&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none;"&gt;3,084&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;2010/07/07&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none;"&gt;4,012&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;2010/07/10&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none;"&gt;1,032&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;2010/07/02&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none;"&gt;3,461&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;2010/07/09&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none;"&gt;2,428&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;2010/07/08&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none;"&gt;3,008&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total as per Qlikview Totaling " Expression Total" : 17284 which is correct&lt;/P&gt;&lt;P&gt;However if you add up each of the days data it totals to 24471, we have established that it is not distinct counting at an un-grouped level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help will be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 09:12:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-IF-Straight-Table/m-p/220310#M73236</guid>
      <dc:creator />
      <dc:date>2010-07-12T09:12:45Z</dc:date>
    </item>
    <item>
      <title>Count Distinct IF - Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-IF-Straight-Table/m-p/220311#M73237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure I'm understanding. For each Date, QlikView will count the distinct 'Action' accounts for that day. Assuming an 'Action' account can be associated with more than one Date, then it will be counted under more than one date. even though it is only counted once per date. But the total line counts distinct 'Action' accounts across the entire date range, so would be lower.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 02:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-IF-Straight-Table/m-p/220311#M73237</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-07-13T02:01:18Z</dc:date>
    </item>
    <item>
      <title>Count Distinct IF - Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-IF-Straight-Table/m-p/220312#M73238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. An account can have many status's associated with it (i.e 'Action')&lt;/P&gt;&lt;P&gt;2. An account can be 'actioned' (commented on ) on many days.&lt;/P&gt;&lt;P&gt;3. An account can be ('commented on by multiple agents on a day/s.&lt;/P&gt;&lt;P&gt;4 An account can have different comments or same comments on an account by different users or same users on the same day or different day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for each day distinct accounts that were commented on by users&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I haven't confused you even more.&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 08:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-IF-Straight-Table/m-p/220312#M73238</guid>
      <dc:creator />
      <dc:date>2010-07-13T08:52:45Z</dc:date>
    </item>
    <item>
      <title>Count Distinct IF - Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-IF-Straight-Table/m-p/220313#M73239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't THINK you've confused me even more. I think you've confirmed for me exactly why your data looks the way it does. Let me take a very simple example:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Date, Account Code, Status, Agent&lt;BR /&gt;2010/07/01, 1, Action, Bob&lt;BR /&gt;2010/07/01, 2, Action, Bob&lt;BR /&gt;2010/07/02, 1, Action, Bob&lt;BR /&gt;2010/07/02, 3, Action, Bob&lt;/P&gt;&lt;P&gt;Here's the chart you'll get:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Date Accs Touched&lt;BR /&gt;Total 3&lt;BR /&gt;2010/07/01 2&lt;BR /&gt;2010/07/02 2&lt;/P&gt;&lt;P&gt;All three rows in the chart are correct, even though 2 + 2 does not equal 3. Bob touched a total of three accounts. On July 1, Bob touched two accounts. On July 2, Bob touched two accounts. If that isn't what you want to see, what DO you want to see? THAT would be my confusion.&lt;/P&gt;&lt;P&gt;But perhaps I've misunderstood.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 17:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-IF-Straight-Table/m-p/220313#M73239</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-07-13T17:36:37Z</dc:date>
    </item>
  </channel>
</rss>

