<?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: Error when using group by. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-when-using-group-by/m-p/1176197#M381751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any reason why you don't show the LOAD statement with the fields you are loading?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do field1 and field2 exist in your QVD?&lt;/P&gt;&lt;P&gt;Do cal_key, mat_key, cus_key, sdo and Flag exist in your QVD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What error message do you get?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jun 2016 19:23:45 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-06-22T19:23:45Z</dc:date>
    <item>
      <title>Error when using group by.</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-using-group-by/m-p/1176194#M381748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; abcd.QVD (qvd)&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE EXISTS (Flag) &lt;/P&gt;&lt;P&gt;&amp;nbsp; AND [field1] &amp;lt;&amp;gt; 'XYZ'&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND field2 &amp;lt;&amp;gt; 'PQRS'&lt;/P&gt;&lt;P&gt;Group by&lt;/P&gt;&lt;P&gt;cal_key,&lt;/P&gt;&lt;P&gt;mat_key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cus_key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sdo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag &lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I included all fields in the group by.&lt;/P&gt;&lt;P&gt;without group by it works fine. But When I use group by along with two AND conditions, its failing to run.&lt;/P&gt;&lt;P&gt;Also, It works fine when I use "group by"&amp;nbsp; and remove the&amp;nbsp; two 'AND" conditions.&lt;/P&gt;&lt;P&gt;I am using aggregations in the load statement.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Prithvi K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 18:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-using-group-by/m-p/1176194#M381748</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2016-06-22T18:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using group by.</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-using-group-by/m-p/1176195#M381749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An added requirement for using the GROUP BY clause is that all fields listed in the GROUP BY clause should also appear - &lt;EM&gt;without aggregation functions&lt;/EM&gt; - in the column list of the LOAD statement. Otherwise the group by makes no sense: should it create a single output record because there are no differing characteristics in the group by result set? Or should it create multiple records that have no identifying field values of their own?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 19:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-using-group-by/m-p/1176195#M381749</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-06-22T19:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using group by.</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-using-group-by/m-p/1176196#M381750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing about the portion of the load statement you show is jumping out at me, but clearly that's not your actual load statement. It would be much easier to debug your code if you showed us the actual code that has the bug. Also, what does "failing to run" mean? You get an error? What error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 19:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-using-group-by/m-p/1176196#M381750</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-06-22T19:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using group by.</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-using-group-by/m-p/1176197#M381751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any reason why you don't show the LOAD statement with the fields you are loading?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do field1 and field2 exist in your QVD?&lt;/P&gt;&lt;P&gt;Do cal_key, mat_key, cus_key, sdo and Flag exist in your QVD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What error message do you get?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 19:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-using-group-by/m-p/1176197#M381751</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-22T19:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using group by.</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-using-group-by/m-p/1176198#M381752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes the field1 and field2 exist in QVD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 19:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-using-group-by/m-p/1176198#M381752</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2016-06-22T19:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using group by.</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-using-group-by/m-p/1176199#M381753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;somehow its running fine now. Thanks very much for looking into this. Really appreciate your responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, my posts doesn't get posted unless the moderator approves it. Not sure why this happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 21:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-using-group-by/m-p/1176199#M381753</guid>
      <dc:creator>qvqfqlik</dc:creator>
      <dc:date>2016-06-22T21:55:00Z</dc:date>
    </item>
  </channel>
</rss>

