<?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 Bug ? Group by only on x-records ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bug-Group-by-only-on-x-records/m-p/233223#M84763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I'm not sure if I have encountered a bug or maybe that group by can only be performed on x number of records ? I have an applications where I join two tables and a group by on one of them.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Simplified example:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;B style="mso-bidi-font-weight: normal;"&gt;TableA&lt;/B&gt;:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Load&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Key, RegistrationDate, Department&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;From xx;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;B style="mso-bidi-font-weight: normal;"&gt;TableB&lt;/B&gt;:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;BKey as Key, Action_Code, ActionDate&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;From yy&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Where ActionDate &amp;gt;=to_date('2009-01-01','yyyy-mm-dd');&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;B style="mso-bidi-font-weight: normal;"&gt;TableC&lt;/B&gt;:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Key, Action_Code as MaxAction_Code,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Max(date(date("ActionDate",'DD-MM-YYYY'))) as "MaxActionDate"&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Resident TableB&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Group by Key, Action_Code;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I only need to see records where ActionDate from TableB is greather than or equal to 2009, but I need to see it for all keys from TableA. I need to make a group by from TableB as Action_Code per ActionDate and BKey can be more than one record but should only count/be displayed as one.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;TableA and TableB load without problems but TableC fails with the following error:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;05-02-2010 16:33:41: 0118 group by "Key","Action_Code"&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;05-02-2010 16:41:51: General Script Error&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;05-02-2010 16:41:51: Execution Failed&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;05-02-2010 16:41:51: Execution finished.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;The strange thing is that if I limit TableA to load only records with RegistrationDate &amp;lt;=2009-06-30, TableC loads without any errors (no synthetic keys - everything ok).&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;If I load TableA with RegistrationDate &amp;lt;=2009-10-01 TableC fails.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;If I load RegistrationDate &amp;gt;=2007-01-01 no problems either (600.641 lines fetched from TableA, 6.916.410 lines fetched from TableB, 3.824.216 lines fetched from TableC). But if I load RegistrationDate &amp;gt;=2006-01-01 TableC fails (748.225 lines fetched from TableA, 7.369.643 lines fetched from TableB, TableC fails).&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I first thought that there was some faulty data that caused the error, but as I can load 1992 till June 2009 without problems and 2007 till today without problems that doesn't seem to be the case.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Could it be that group by can only be performed on a limited amount of data? I'm using version 8.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Feb 2010 13:11:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-08T13:11:44Z</dc:date>
    <item>
      <title>Bug ? Group by only on x-records ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-Group-by-only-on-x-records/m-p/233223#M84763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I'm not sure if I have encountered a bug or maybe that group by can only be performed on x number of records ? I have an applications where I join two tables and a group by on one of them.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Simplified example:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;B style="mso-bidi-font-weight: normal;"&gt;TableA&lt;/B&gt;:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Load&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Key, RegistrationDate, Department&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;From xx;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;B style="mso-bidi-font-weight: normal;"&gt;TableB&lt;/B&gt;:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;BKey as Key, Action_Code, ActionDate&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;From yy&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Where ActionDate &amp;gt;=to_date('2009-01-01','yyyy-mm-dd');&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;B style="mso-bidi-font-weight: normal;"&gt;TableC&lt;/B&gt;:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Key, Action_Code as MaxAction_Code,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Max(date(date("ActionDate",'DD-MM-YYYY'))) as "MaxActionDate"&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Resident TableB&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Group by Key, Action_Code;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I only need to see records where ActionDate from TableB is greather than or equal to 2009, but I need to see it for all keys from TableA. I need to make a group by from TableB as Action_Code per ActionDate and BKey can be more than one record but should only count/be displayed as one.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;TableA and TableB load without problems but TableC fails with the following error:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;05-02-2010 16:33:41: 0118 group by "Key","Action_Code"&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;05-02-2010 16:41:51: General Script Error&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;05-02-2010 16:41:51: Execution Failed&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;05-02-2010 16:41:51: Execution finished.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;The strange thing is that if I limit TableA to load only records with RegistrationDate &amp;lt;=2009-06-30, TableC loads without any errors (no synthetic keys - everything ok).&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;If I load TableA with RegistrationDate &amp;lt;=2009-10-01 TableC fails.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;If I load RegistrationDate &amp;gt;=2007-01-01 no problems either (600.641 lines fetched from TableA, 6.916.410 lines fetched from TableB, 3.824.216 lines fetched from TableC). But if I load RegistrationDate &amp;gt;=2006-01-01 TableC fails (748.225 lines fetched from TableA, 7.369.643 lines fetched from TableB, TableC fails).&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I first thought that there was some faulty data that caused the error, but as I can load 1992 till June 2009 without problems and 2007 till today without problems that doesn't seem to be the case.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Could it be that group by can only be performed on a limited amount of data? I'm using version 8.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 13:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-Group-by-only-on-x-records/m-p/233223#M84763</guid>
      <dc:creator />
      <dc:date>2010-02-08T13:11:44Z</dc:date>
    </item>
    <item>
      <title>Bug ? Group by only on x-records ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-Group-by-only-on-x-records/m-p/233224#M84764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know the above is a quite long, but I would really appreciate if anyone can help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 11:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-Group-by-only-on-x-records/m-p/233224#M84764</guid>
      <dc:creator />
      <dc:date>2010-02-10T11:32:29Z</dc:date>
    </item>
  </channel>
</rss>

