<?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 AW:Count ID per Value in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-ID-per-Value-in-script/m-p/171003#M41199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick reply Pascal. This was my foremost thought too, because 17 would be the correct result if I take the whole raw dataset instead of a subtotal. Unfortunately the result remains the same, even using the distinct function.&lt;/P&gt;&lt;P&gt;In my original data 2 synthetic keys will be created in the script. Maybe this is a problem? (Even I have ben working with QV since some month now, I am still not familiar with all its functions... )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Dec 2009 23:32:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-03T23:32:07Z</dc:date>
    <item>
      <title>Count ID per Value in script</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-per-Value-in-script/m-p/171001#M41197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;another month, another try [:)]&lt;/P&gt;&lt;P&gt;I need to count out the number of IDs during a value. This should be done in the script, what looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;Main.Data:&lt;BR /&gt;Load&lt;BR /&gt; ID AS CountIDMin,&lt;BR /&gt; Start,&lt;BR /&gt; End,&lt;BR /&gt; Date&lt;BR /&gt;Resident Original.Data;&lt;BR /&gt;&lt;BR /&gt;LEFT JOIN (Main.Data)&lt;BR /&gt;INTERVALMATCH (Datum_time)&lt;BR /&gt;LOAD&lt;BR /&gt; Start,&lt;BR /&gt; End&lt;BR /&gt;RESIDENT Original.Data2;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Final.table:&lt;BR /&gt;Load&lt;BR /&gt; CountIDMin,&lt;BR /&gt; Start As StartMin,&lt;BR /&gt; End as EndMin,&lt;BR /&gt; Date as DateMin,&lt;BR /&gt; Datum_time&lt;BR /&gt;RESIDENT Main.Data;&lt;BR /&gt;&lt;BR /&gt;Final.Count:&lt;BR /&gt;Load&lt;BR /&gt; Date_time,&lt;BR /&gt; Count(CountIDMin) AS Count&lt;BR /&gt;Resident Main.Data&lt;BR /&gt;Group by Datum_time;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the result in a simple table in the layout looks like the attached jpeg. Instead of the expected result "8" the column Count shows "17".&lt;/P&gt;&lt;P&gt;Maybe there is something wrong in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 21:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-per-Value-in-script/m-p/171001#M41197</guid>
      <dc:creator />
      <dc:date>2009-12-01T21:52:00Z</dc:date>
    </item>
    <item>
      <title>AW:Count ID per Value in script</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-per-Value-in-script/m-p/171002#M41198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try count(distinct ...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 22:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-per-Value-in-script/m-p/171002#M41198</guid>
      <dc:creator />
      <dc:date>2009-12-01T22:11:45Z</dc:date>
    </item>
    <item>
      <title>AW:Count ID per Value in script</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-per-Value-in-script/m-p/171003#M41199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick reply Pascal. This was my foremost thought too, because 17 would be the correct result if I take the whole raw dataset instead of a subtotal. Unfortunately the result remains the same, even using the distinct function.&lt;/P&gt;&lt;P&gt;In my original data 2 synthetic keys will be created in the script. Maybe this is a problem? (Even I have ben working with QV since some month now, I am still not familiar with all its functions... )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 23:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-per-Value-in-script/m-p/171003#M41199</guid>
      <dc:creator />
      <dc:date>2009-12-03T23:32:07Z</dc:date>
    </item>
    <item>
      <title>AW:Count ID per Value in script</title>
      <link>https://community.qlik.com/t5/QlikView/Count-ID-per-Value-in-script/m-p/171004#M41200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are right Pascal - it of course distinct. Also I just avoid using synth. keys and it works fine now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 20:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-ID-per-Value-in-script/m-p/171004#M41200</guid>
      <dc:creator />
      <dc:date>2009-12-11T20:57:42Z</dc:date>
    </item>
  </channel>
</rss>

