<?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 Summing up values from a large UNION query containing sums/groups by's... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Summing-up-values-from-a-large-UNION-query-containing-sums/m-p/218527#M71636</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;I have a large union query containing 5 union elements.&lt;/P&gt;&lt;P&gt;Each one performs a sum and group by from the same SQL server database.&lt;/P&gt;&lt;P&gt;I then need to sum up the result of the UNINO statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, i'm not sure whether to do this in QlikView script (in which case how do I perform a sum in the LOAD and add a group by at the bottom, when all of the queries have group by's already)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or.. whether to wrap this UNION query into a main query that sums the UNION results - if that makes sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;answers on a postcard.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jul 2010 10:51:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-09T10:51:48Z</dc:date>
    <item>
      <title>Summing up values from a large UNION query containing sums/groups by's...</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-up-values-from-a-large-UNION-query-containing-sums/m-p/218527#M71636</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;I have a large union query containing 5 union elements.&lt;/P&gt;&lt;P&gt;Each one performs a sum and group by from the same SQL server database.&lt;/P&gt;&lt;P&gt;I then need to sum up the result of the UNINO statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, i'm not sure whether to do this in QlikView script (in which case how do I perform a sum in the LOAD and add a group by at the bottom, when all of the queries have group by's already)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or.. whether to wrap this UNION query into a main query that sums the UNION results - if that makes sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;answers on a postcard.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jul 2010 10:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-up-values-from-a-large-UNION-query-containing-sums/m-p/218527#M71636</guid>
      <dc:creator />
      <dc:date>2010-07-09T10:51:48Z</dc:date>
    </item>
  </channel>
</rss>

