<?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: Total count is wrong in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-count-is-wrong/m-p/459143#M1166214</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what the problem is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make a clustered bar chart if you have several dimensions, or if you have one dimension and several expressions. And this is true irrespectivley of which data model you choose to create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the data model: Do you want the three pairs MSM/MEM, MSC/MEC and MST/MET to be uncorrelated? If so, you probably are doing the right thing. But at this stage, I do not see any problem in having then correlated, i.e. let them keep their original names: MinutesStart, MinutesEnd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2012 12:14:47 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2012-10-02T12:14:47Z</dc:date>
    <item>
      <title>Total count is wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Total-count-is-wrong/m-p/459138#M1166204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; How come when i run this piece of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IntervalMatch (MarshallingTimeTaken) LOAD MinutesStart as MSM, MinutesEnd as MEM Resident TimeInMinutes;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and do a Count(MSM),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by right I have 220 rows, but I only got 22 rows&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 10:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-count-is-wrong/m-p/459138#M1166204</guid>
      <dc:creator />
      <dc:date>2012-10-02T10:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Total count is wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Total-count-is-wrong/m-p/459139#M1166207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's impossible to say why without seeing the data. But my guess is that you for some reason really only have 22 matches between the intervals in the TimeInMinutes table and the MarshallingTimeTaken, which resides in another table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 10:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-count-is-wrong/m-p/459139#M1166207</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-10-02T10:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Total count is wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Total-count-is-wrong/m-p/459140#M1166211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric, I found out whats the cause of problem. The 22 rows comes from MarshallingTimeTaken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i do a count(MSM), it return me count (DISTINCT MarshallingTimeTaken). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why it happened?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 10:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-count-is-wrong/m-p/459140#M1166211</guid>
      <dc:creator />
      <dc:date>2012-10-02T10:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Total count is wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Total-count-is-wrong/m-p/459141#M1166212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you use intervalmatch, it creates a third table with just MarshallingTimeTaken, MSM and MEM. (Do a ctrl-T, and you'll see.) This means that MarshallingTimeTaken is now a key linking two tables and the function Count() is no longer defined. (In which table should QlikView do the count?) But Count(distinct...) is well defined, so this is what the function returns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use the count function on a field that is not a key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, why do you rename MinutesStart as MSM and MinutesEnd as MEM? Don't you want the intervalmatch table to link to your TimeInMinutes table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 11:09:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-count-is-wrong/m-p/459141#M1166212</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-10-02T11:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Total count is wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Total-count-is-wrong/m-p/459142#M1166213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, the reason I rename it is because I got intervalmatch for another two table like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IntervalMatch (MarshallingTimeTaken) LOAD MinutesStart as MSM, MinutesEnd as MEM Resident TimeInMinutes;&lt;/P&gt;&lt;P&gt;IntervalMatch (ConsumptionTimeTaken) LOAD MinutesStart as MSC, MinutesEnd as MEC Resident TimeInMinutes;&lt;/P&gt;&lt;P&gt;IntervalMatch (TotalTimeTaken) LOAD MinutesStart as MST, MinutesEnd as MET Resident TimeInMinutes;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I am trying to make a cluster bar chart. Am I doing it wrong? please advice me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 11:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-count-is-wrong/m-p/459142#M1166213</guid>
      <dc:creator />
      <dc:date>2012-10-02T11:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Total count is wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Total-count-is-wrong/m-p/459143#M1166214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what the problem is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make a clustered bar chart if you have several dimensions, or if you have one dimension and several expressions. And this is true irrespectivley of which data model you choose to create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the data model: Do you want the three pairs MSM/MEM, MSC/MEC and MST/MET to be uncorrelated? If so, you probably are doing the right thing. But at this stage, I do not see any problem in having then correlated, i.e. let them keep their original names: MinutesStart, MinutesEnd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 12:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-count-is-wrong/m-p/459143#M1166214</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-10-02T12:14:47Z</dc:date>
    </item>
  </channel>
</rss>

