<?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: Order by &amp; Group by in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Order-by-Group-by/m-p/662163#M474077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The order by needs to come after the group by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(FieldC) as SumC&lt;/P&gt;&lt;P&gt;GROUP BY FieldA, FieldB&lt;/P&gt;&lt;P&gt;ORDER BY FieldB desc;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Oct 2014 09:38:40 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-10-06T09:38:40Z</dc:date>
    <item>
      <title>Order by &amp; Group by</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-Group-by/m-p/662162#M474076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I use order by and group by together. Order by only works using a resident load. When I try to take the short cut&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;Resident XYZ&lt;/P&gt;&lt;P&gt;Order by [Received Date] asc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then another load statement to group, this doesnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the resident load, do I need to specify all fields and not use Load *?&lt;/P&gt;&lt;P&gt;Can I use Load * when I do the group by part?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because this seems like a long repetition of the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 09:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-Group-by/m-p/662162#M474076</guid>
      <dc:creator />
      <dc:date>2014-10-06T09:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Order by &amp; Group by</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-Group-by/m-p/662163#M474077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The order by needs to come after the group by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(FieldC) as SumC&lt;/P&gt;&lt;P&gt;GROUP BY FieldA, FieldB&lt;/P&gt;&lt;P&gt;ORDER BY FieldB desc;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 09:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-Group-by/m-p/662163#M474077</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-10-06T09:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Order by &amp; Group by</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-Group-by/m-p/662164#M474078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You can use Group by and Order by in Resident load. All the columns mentioned in Load except aggregated columns should be included in Group by clause&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load &lt;STRONG&gt;Col1,Col2&lt;/STRONG&gt;,Max(Col3)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident XYZ&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group by &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Col1,Col2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Order by &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Col1 desc,Col2&lt;/STRONG&gt; &lt;STRONG&gt;asc&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 09:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-Group-by/m-p/662164#M474078</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-06T09:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Order by &amp; Group by</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-Group-by/m-p/662165#M474079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Resident load is works as view when u can select * it will take all columns from previously loaded table.&lt;/P&gt;&lt;P&gt;if u want to take some selected column u are able to select it.&lt;/P&gt;&lt;P&gt;if u do not want previous table or field simply drop it to avoid repetation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 09:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-Group-by/m-p/662165#M474079</guid>
      <dc:creator>deepakqlikview_123</dc:creator>
      <dc:date>2014-10-06T09:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Order by &amp; Group by</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-Group-by/m-p/662166#M474080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Herbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to group by and order by, you first have to group by, loading this field, and then with a new statement, ordering by it. Then, drop it this field you don't need it anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 09:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-Group-by/m-p/662166#M474080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-06T09:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Order by &amp; Group by</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-Group-by/m-p/662167#M474081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 09:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-Group-by/m-p/662167#M474081</guid>
      <dc:creator />
      <dc:date>2014-10-06T09:53:53Z</dc:date>
    </item>
  </channel>
</rss>

