<?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: help with Group By in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/help-with-Group-By/m-p/1686183#M5035</link>
    <description>&lt;P&gt;How would I achieve the output I wanted with the SQL code i attached? As when I do simple joins to the tables without grouping by Policy numbers etc, i am not getting the output I require. Any suggestions?&lt;/P&gt;&lt;P&gt;I tried to include aggregations as shown below, but getting this error message:&amp;nbsp;&lt;/P&gt;&lt;DIV class="headline edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;The following error occurred:&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;Invalid expression&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="empty undefined"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="headline edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;The error occurred here:&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;LOAD SUM(GrossWrittenPremium) as GrossWrittenPremiumSum ,SUM(NetWrittenPremium) as NetWRittenPremiumSum ,SUM(Commission) as CommissionSum ,* FROM [lib://QVD/DMA\FactPremium.qvd] (qvd)&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="empty undefined"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="headline edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;The following error occurred:&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;Invalid expression&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="empty undefined"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="headline edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;The error occurred here:&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;?&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;SUM(GrossWrittenPremium) as GrossWrittenPremiumSum&lt;BR /&gt;,SUM(NetWrittenPremium) as NetWRittenPremiumSum&lt;BR /&gt;,SUM(Commission) as CommissionSum&lt;BR /&gt;,*&lt;/P&gt;&lt;P&gt;FROM [lib://QVD/DMA\FactPremium.qvd]&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;JOIN&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;LineOfBusinessOID as FKLineOfBusinessOID&lt;BR /&gt;,*&lt;BR /&gt;FROM [lib://QVD/DMA\DimLineOfBusiness.qvd]&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;PolicyOID as FKPolicyOID&lt;BR /&gt;,*&lt;BR /&gt;FROM [lib://QVD/DMA\DimPolicy.qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;WHERE CurrentRecordIndicatorPolicy = '1'&lt;BR /&gt;AND PolicyEffectiveDate = PolicyExpiryDate;&lt;/P&gt;&lt;P&gt;JOIN&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;TransactionOID as FKTransactionOID&lt;BR /&gt;,*&lt;BR /&gt;FROM [lib://QVD/DMA\DimTransaction.qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;Where CurrentRecordIndicatorTransaction = '1'&lt;/P&gt;&lt;P&gt;GROUP BY PolicyNumber,PolicyInceptionDate, PolicyEffectiveDate, PolicyExpiryDate, PolicyCancellationDate, SAPLOBCode, SAPLOB;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2020 15:41:23 GMT</pubDate>
    <dc:creator>QlikBeginner1</dc:creator>
    <dc:date>2020-03-19T15:41:23Z</dc:date>
    <item>
      <title>help with Group By</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/help-with-Group-By/m-p/1686165#M5033</link>
      <description>&lt;P&gt;Hey all!&lt;/P&gt;&lt;P&gt;I have this SQL code, and been trying to interperate this in Qlik, and having issues!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;select dp.PolicyNumber&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,dp.PolicyInceptionDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,dp.PolicyEffectiveDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,dp.PolicyExpiryDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,dp.PolicyCancellationDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,datediff(year,dp.PolicyInceptionDate,dp.PolicyEffectiveDate) TermNumber --this is derived so not actually as per Cogen&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,dlob.SAPLobCode&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,dlob.SapLobDescription&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,SUM(fp.GrossWrittenPremium) AS GrossWrittenPremium&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,SUM(fp.NetWrittenPremium) AS NetWrittenPremium&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,SUM(fp.Commission) AS Commission&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from [cdm].[FactPremium] fp&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;join [cdm].[DimLineOfBusiness] dlob on fp.FKLineOfBusinessOID = dlob.LineOfBusinessOID&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;join [cdm].[DimPolicy] dp on fp.FKPolicyOID = dp.PolicyOID &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;and dp.CurrentRecordIndicator = '1'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;join [cdm].[DimPremiumTransaction] dpt on fp.FKTransactionOID = dpt.PremiumTransactionOID&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;and dpt.CurrentRecordIndicator = '1'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where 1=1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;and dlob.SAPLobCode IN ('B0100', 'B0098', 'B0099')&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;AND dp.PolicyEffectiveDate = dp.PolicyExpiryDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GROUP BY dp.PolicyNumber&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,dp.PolicyInceptionDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,dp.PolicyEffectiveDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,dp.PolicyExpiryDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,dp.PolicyCancellationDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,datediff(year,dp.PolicyInceptionDate,dp.PolicyEffectiveDate) &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,dlob.SAPLobCode&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,dlob.SapLobDescription&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HAVING SUM(fp.GrossWrittenPremium) &amp;lt;&amp;gt; 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have these tables loaded via QVD files. I have started building this in the back end and got this error message?&amp;nbsp;&lt;STRONG&gt;Aggregation expressions required by GROUP BY clause.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is what I have so far, any help at all would be much appreciated, &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM [lib://QVD/DMA\FactPremium.qvd]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;JOIN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LineOfBusinessOID as FKLineOfBusinessOID&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,*&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;FROM [lib://QVD/DMA\DimLineOfBusiness.qvd]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;PolicyOID as FKPolicyOID&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,*&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;FROM [lib://QVD/DMA\DimPolicy.qvd]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(qvd)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WHERE CurrentRecordIndicatorPolicy = '1'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;AND PolicyEffectiveDate = PolicyExpiryDate;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;JOIN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;TransactionOID as FKTransactionOID&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,*&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;FROM [lib://QVD/DMA\DimTransaction.qvd]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(qvd)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Where CurrentRecordIndicatorTransaction = '1'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GROUP BY PolicyNumber,PolicyInceptionDate, PolicyEffectiveDate, PolicyExpiryDate, PolicyCancellationDate, SAPLOBCode, SAPLOB;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 14:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/help-with-Group-By/m-p/1686165#M5033</guid>
      <dc:creator>QlikBeginner1</dc:creator>
      <dc:date>2021-12-23T14:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: help with Group By</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/help-with-Group-By/m-p/1686172#M5034</link>
      <description>&lt;P&gt;delete the group by statement at the end.&lt;/P&gt;&lt;P&gt;Yor need an aggregation in an aggregation statement&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;load&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(Value) as Sumvalue,&lt;/P&gt;&lt;P&gt;CustomerId&lt;/P&gt;&lt;P&gt;from datasource&lt;/P&gt;&lt;P&gt;group by CustomerId;&lt;/P&gt;&lt;P&gt;but when there is no aggregation in the script you don't need a group by&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 15:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/help-with-Group-By/m-p/1686172#M5034</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2020-03-19T15:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: help with Group By</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/help-with-Group-By/m-p/1686183#M5035</link>
      <description>&lt;P&gt;How would I achieve the output I wanted with the SQL code i attached? As when I do simple joins to the tables without grouping by Policy numbers etc, i am not getting the output I require. Any suggestions?&lt;/P&gt;&lt;P&gt;I tried to include aggregations as shown below, but getting this error message:&amp;nbsp;&lt;/P&gt;&lt;DIV class="headline edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;The following error occurred:&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;Invalid expression&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="empty undefined"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="headline edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;The error occurred here:&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;LOAD SUM(GrossWrittenPremium) as GrossWrittenPremiumSum ,SUM(NetWrittenPremium) as NetWRittenPremiumSum ,SUM(Commission) as CommissionSum ,* FROM [lib://QVD/DMA\FactPremium.qvd] (qvd)&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="empty undefined"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="headline edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;The following error occurred:&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;Invalid expression&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="empty undefined"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="headline edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;The error occurred here:&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;U&gt;&lt;STRONG&gt;?&lt;/STRONG&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;SUM(GrossWrittenPremium) as GrossWrittenPremiumSum&lt;BR /&gt;,SUM(NetWrittenPremium) as NetWRittenPremiumSum&lt;BR /&gt;,SUM(Commission) as CommissionSum&lt;BR /&gt;,*&lt;/P&gt;&lt;P&gt;FROM [lib://QVD/DMA\FactPremium.qvd]&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;JOIN&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;LineOfBusinessOID as FKLineOfBusinessOID&lt;BR /&gt;,*&lt;BR /&gt;FROM [lib://QVD/DMA\DimLineOfBusiness.qvd]&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;PolicyOID as FKPolicyOID&lt;BR /&gt;,*&lt;BR /&gt;FROM [lib://QVD/DMA\DimPolicy.qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;WHERE CurrentRecordIndicatorPolicy = '1'&lt;BR /&gt;AND PolicyEffectiveDate = PolicyExpiryDate;&lt;/P&gt;&lt;P&gt;JOIN&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;TransactionOID as FKTransactionOID&lt;BR /&gt;,*&lt;BR /&gt;FROM [lib://QVD/DMA\DimTransaction.qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;Where CurrentRecordIndicatorTransaction = '1'&lt;/P&gt;&lt;P&gt;GROUP BY PolicyNumber,PolicyInceptionDate, PolicyEffectiveDate, PolicyExpiryDate, PolicyCancellationDate, SAPLOBCode, SAPLOB;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 15:41:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/help-with-Group-By/m-p/1686183#M5035</guid>
      <dc:creator>QlikBeginner1</dc:creator>
      <dc:date>2020-03-19T15:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: help with Group By</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/help-with-Group-By/m-p/1686184#M5036</link>
      <description>&lt;P&gt;now you do a sum and you need a group by.&lt;/P&gt;&lt;P&gt;But it won't work. You load * (all fields). so each line value will stay in a single line.&lt;/P&gt;&lt;P&gt;You have to list all dimension fields and use them by group by.&lt;/P&gt;&lt;P&gt;BUT&lt;/P&gt;&lt;P&gt;why to aggregate in script ?&lt;/P&gt;&lt;P&gt;use sum(GrossWrittenPremium) in a chart (or a table) and you will have the result.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 15:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/help-with-Group-By/m-p/1686184#M5036</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2020-03-19T15:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: help with Group By</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/help-with-Group-By/m-p/1686206#M5037</link>
      <description>&lt;P&gt;Thanks for your patience Martinpohl. Appreciate the help, I am still struggling to figure it out. I only included the dimensions I required, and still coming up with the error message. Could you show me an example?&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;FKTransactionOID,&lt;BR /&gt;FKPolicyOID,&lt;BR /&gt;FKLineOfBusinessOID,&lt;BR /&gt;GrossWrittenPremium,&lt;BR /&gt;NetWrittenPremium,&lt;BR /&gt;Commission&lt;BR /&gt;FROM [lib://QVD/DMA\FactPremium.qvd]&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;JOIN&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;LineOfBusinessOID as FKLineOfBusinessOID,&lt;BR /&gt;SAPLobCode,&lt;BR /&gt;SAPLOB&lt;BR /&gt;FROM [lib://QVD/DMA\DimLineOfBusiness.qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;WHERE SAPLobCode = 'B0100, B0098, B0099';&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;PolicyOID as FKPolicyOID,&lt;BR /&gt;PolicyNumber,&lt;BR /&gt;PolicyInceptionDate,&lt;BR /&gt;PolicyEffectiveDate,&lt;BR /&gt;PolicyExpiryDate,&lt;BR /&gt;PolicyCancellationDate&lt;BR /&gt;FROM [lib://QVD/DMA\DimPolicy.qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;WHERE CurrentRecordIndicatorPolicy = '1'&lt;BR /&gt;AND PolicyEffectiveDate = PolicyExpiryDate;&lt;/P&gt;&lt;P&gt;JOIN&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;TransactionOID as FKTransactionOID&lt;BR /&gt;FROM [lib://QVD/DMA\DimTransaction.qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;Where CurrentRecordIndicatorTransaction = '1'&lt;/P&gt;&lt;P&gt;GROUP BY PolicyNumber,PolicyInceptionDate, PolicyEffectiveDate, PolicyExpiryDate, PolicyCancellationDate, SAPLOBCode, SAPLOB;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 16:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/help-with-Group-By/m-p/1686206#M5037</guid>
      <dc:creator>QlikBeginner1</dc:creator>
      <dc:date>2020-03-19T16:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: help with Group By</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/help-with-Group-By/m-p/1686224#M5038</link>
      <description>&lt;P&gt;Anyone? It might be so small and simple to most but i have only recently started developing in Qlik and still understanding syntax and how to code, but this would really help me get this finished, please &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 16:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/help-with-Group-By/m-p/1686224#M5038</guid>
      <dc:creator>QlikBeginner1</dc:creator>
      <dc:date>2020-03-19T16:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: help with Group By</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/help-with-Group-By/m-p/1686419#M5039</link>
      <description>&lt;P&gt;No one can help?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 09:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/help-with-Group-By/m-p/1686419#M5039</guid>
      <dc:creator>QlikBeginner1</dc:creator>
      <dc:date>2020-03-20T09:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: help with Group By</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/help-with-Group-By/m-p/1686664#M5042</link>
      <description>&lt;P&gt;The Group By is acting on the LOAD statement just before it, not the result of all the joins that you have made.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The proper syntax is like this...&lt;/P&gt;&lt;P&gt;[UnaggregatedTable]:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD * blah * FROM [...] (qvd) WHERE ...;&lt;/P&gt;&lt;P&gt;JOIN([UnaggregatedTable])&lt;/P&gt;&lt;P&gt;LOAD * blah * FROM [...] (qvd) WHERE ...;&lt;/P&gt;&lt;P&gt;JOIN([UnaggregatedTable])&lt;/P&gt;&lt;P&gt;LOAD * blah * FROM [...] (qvd) WHERE ...;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[AggregatedTable]&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;GrossWrittenPremiumSum&amp;lt;&amp;gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;PolicyNumber,PolicyInceptionDate, PolicyEffectiveDate, PolicyExpiryDate, PolicyCancellationDate, SAPLOBCode, SAPLOB,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SUM(GrossWrittenPremium) as GrossWrittenPremiumSum,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SUM(NetWrittenPremium) as NetWRittenPremiumSum,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SUM(Commission) as CommissionSum&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RESIDENT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[UnaggregatedTable]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;GROUP BY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;PolicyNumber,PolicyInceptionDate, PolicyEffectiveDate, PolicyExpiryDate, PolicyCancellationDate, SAPLOBCode, SAPLOB;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DROP TABLE [UnaggregatedTable];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically join it together in a table, then resident load the from that table and do the sum/group by there. Then use a preceding load to replicate the HAVING condition.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2020 15:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/help-with-Group-By/m-p/1686664#M5042</guid>
      <dc:creator>MikeW</dc:creator>
      <dc:date>2020-03-21T15:29:30Z</dc:date>
    </item>
  </channel>
</rss>

