<?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 Group By  and Count Question in a Load Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-By-and-Count-Question-in-a-Load-Statement/m-p/514033#M685527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a Load Statement will this work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;AcctNum,&lt;/P&gt;&lt;P&gt;WOID&lt;/P&gt;&lt;P&gt;WOYear,&lt;/P&gt;&lt;P&gt;WOMonth,&lt;/P&gt;&lt;P&gt;Purpose,&lt;/P&gt;&lt;P&gt;Priority,&lt;/P&gt;&lt;P&gt;Craft,&lt;/P&gt;&lt;P&gt;Cost,&lt;/P&gt;&lt;P&gt;Hours&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;C:\QVD\Wotable.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;AcctNum,&lt;/P&gt;&lt;P&gt;Count(WOID) as WOCount,&lt;/P&gt;&lt;P&gt;WOYear,&lt;/P&gt;&lt;P&gt;WOMonth,&lt;/P&gt;&lt;P&gt;Craft,&lt;/P&gt;&lt;P&gt;Purpose&lt;/P&gt;&lt;P&gt;Resident Table 1&lt;/P&gt;&lt;P&gt;Group By AcctNum, WOYear, WOMonth, Craft, Purpose;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is fine I have two questions I need answered.&amp;nbsp; First is it good to have the string of fields in the Group By Statement?&amp;nbsp; Is it going to cause a Load issue?&amp;nbsp; Does the order of the Group By Statement matter?&amp;nbsp; Second is it good to have the Count(WOID) as WOCount as part of the Load statement or better to make it part of the expression on a chart?&amp;nbsp; I want the Load statement to perform as much of the heavy lifting of calculation as it can.&amp;nbsp; With Table A above I am reading in around 80 million rows of data so it is taking time for it to load in memory before I perform the actions in Table B.&amp;nbsp; If there are any suggestions that would be awesome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Dec 2013 13:09:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-20T13:09:51Z</dc:date>
    <item>
      <title>Group By  and Count Question in a Load Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-and-Count-Question-in-a-Load-Statement/m-p/514033#M685527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a Load Statement will this work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;AcctNum,&lt;/P&gt;&lt;P&gt;WOID&lt;/P&gt;&lt;P&gt;WOYear,&lt;/P&gt;&lt;P&gt;WOMonth,&lt;/P&gt;&lt;P&gt;Purpose,&lt;/P&gt;&lt;P&gt;Priority,&lt;/P&gt;&lt;P&gt;Craft,&lt;/P&gt;&lt;P&gt;Cost,&lt;/P&gt;&lt;P&gt;Hours&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;C:\QVD\Wotable.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;AcctNum,&lt;/P&gt;&lt;P&gt;Count(WOID) as WOCount,&lt;/P&gt;&lt;P&gt;WOYear,&lt;/P&gt;&lt;P&gt;WOMonth,&lt;/P&gt;&lt;P&gt;Craft,&lt;/P&gt;&lt;P&gt;Purpose&lt;/P&gt;&lt;P&gt;Resident Table 1&lt;/P&gt;&lt;P&gt;Group By AcctNum, WOYear, WOMonth, Craft, Purpose;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is fine I have two questions I need answered.&amp;nbsp; First is it good to have the string of fields in the Group By Statement?&amp;nbsp; Is it going to cause a Load issue?&amp;nbsp; Does the order of the Group By Statement matter?&amp;nbsp; Second is it good to have the Count(WOID) as WOCount as part of the Load statement or better to make it part of the expression on a chart?&amp;nbsp; I want the Load statement to perform as much of the heavy lifting of calculation as it can.&amp;nbsp; With Table A above I am reading in around 80 million rows of data so it is taking time for it to load in memory before I perform the actions in Table B.&amp;nbsp; If there are any suggestions that would be awesome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 13:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-and-Count-Question-in-a-Load-Statement/m-p/514033#M685527</guid>
      <dc:creator />
      <dc:date>2013-12-20T13:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Group By  and Count Question in a Load Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-and-Count-Question-in-a-Load-Statement/m-p/514034#M685529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script is correct.&amp;nbsp; Multiple fields in "group by" is normal, and the order does not matter.&amp;nbsp; It is better to count in the script especially with that number of records.&amp;nbsp; You'll reduce the record count by using this aggregation in the script, hence smaller app size and better front end performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 13:15:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-and-Count-Question-in-a-Load-Statement/m-p/514034#M685529</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-20T13:15:05Z</dc:date>
    </item>
  </channel>
</rss>

