<?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 SQL to QV in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-to-QV/m-p/1348185#M618347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to write in script for a graphic this SQL query :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT Max(Sum(Qté receptionnée)) From table GROUP BY Site;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 May 2017 07:49:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-05-02T07:49:32Z</dc:date>
    <item>
      <title>SQL to QV</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-to-QV/m-p/1348185#M618347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to write in script for a graphic this SQL query :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT Max(Sum(Qté receptionnée)) From table GROUP BY Site;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 07:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-to-QV/m-p/1348185#M618347</guid>
      <dc:creator />
      <dc:date>2017-05-02T07:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: SQL to QV</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-to-QV/m-p/1348186#M618348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to get the max of sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Qté receptionnée&lt;/SPAN&gt;) among all the sites, the above sql query will not work i guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We cant use a aggr function inside another aggr function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your SQL query should be something like &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SELECT Max(B.A) From (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SELECT Sum(Qté receptionnée) as A From table GROUP BY Site&lt;/SPAN&gt;)B.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in qlikview you can use it as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load max(A) as max;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Qté receptionnée&lt;/SPAN&gt;) as A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,Site&lt;/P&gt;&lt;P&gt;Resident table / From filename&lt;/P&gt;&lt;P&gt;Group by Site&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 08:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-to-QV/m-p/1348186#M618348</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-02T08:17:01Z</dc:date>
    </item>
  </channel>
</rss>

