<?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 is invalid in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Group-by-is-invalid/m-p/2005945#M83246</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I found out in front-end, amount was not auto-sum by every dimension. Like if I use "functional area" as first dimension, I could find the total amount. If I use "local currency" as first dimension, the total amount shown "0".&lt;/P&gt;
&lt;P&gt;So I applied "group by" as following, basically group by all dimensions I will upload. But it still turns out that the same result, most of dimension could not get total amount calculation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sum(Amount_in_Transaction_Currency) as "Amount in Transaction Currency",&lt;/P&gt;
&lt;P&gt;Sum(Amount_in_Local_Currency) as "Amount in LC",&lt;/P&gt;
&lt;P&gt;Sum(Amount_in_Operating_Concern_Currency) as "Amount in USD",&lt;/P&gt;
&lt;P&gt;Sum(Amount_in_Group_Currency) as "Amount in Group Currency",&lt;/P&gt;
&lt;P&gt;Sum(Amount_in_Another_Currency) as "Amount in Another Currency",&lt;/P&gt;
&lt;P&gt;Resident ZFAC_Temp2&lt;/P&gt;
&lt;P&gt;Where&lt;/P&gt;
&lt;P&gt;Amount_in_Transaction_Currency&amp;lt;&amp;gt;0 or Amount_in_Local_Currency &amp;lt;&amp;gt;0 or Amount_in_Operating_Concern_Currency&amp;lt;&amp;gt;0 or Amount_in_Group_Currency&amp;lt;&amp;gt;0 or Amount_in_Another_Currency&amp;lt;&amp;gt;0 or Amount_in_Original_Transaction_Currency&amp;lt;&amp;gt;0&lt;/P&gt;
&lt;P&gt;Group by&lt;/P&gt;
&lt;P&gt;"Document Number", "Ledger", "Company Code", "Line item", "Transaction", "Transaction Type", "Transaction Currency", "Base Unit of Measure", "Reference Transaction", "Record Type", "Version", "Logical system", "Account Number", "Cost Element", "Cost Center", "Profit Center", "Functional Area ID", "Business Area", "Controlling Area", "Segment", "Parent Profit Center", "Parent Functional Area", "Trading Partner", "Partner Segment", "Quantity", "Debit/Credit Ind.", "Posting Period", "Original Transaction Currency", "Fiscal Year", "Posting Date", "Line Item", "Accounting Document Number", "Posting Key", "Doc. status", "Item category", "User name", Month, Quarter, Region, "Functional Area", "GL Account", "Local Currency", FX;&lt;/P&gt;
&lt;P&gt;Drop Table ZFAC_Temp2;&lt;/P&gt;
&lt;P&gt;#Groupby #Groupbyinvalid&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2022 14:50:10 GMT</pubDate>
    <dc:creator>Cassie_L</dc:creator>
    <dc:date>2022-11-17T14:50:10Z</dc:date>
    <item>
      <title>Group by is invalid</title>
      <link>https://community.qlik.com/t5/App-Development/Group-by-is-invalid/m-p/2005945#M83246</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I found out in front-end, amount was not auto-sum by every dimension. Like if I use "functional area" as first dimension, I could find the total amount. If I use "local currency" as first dimension, the total amount shown "0".&lt;/P&gt;
&lt;P&gt;So I applied "group by" as following, basically group by all dimensions I will upload. But it still turns out that the same result, most of dimension could not get total amount calculation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sum(Amount_in_Transaction_Currency) as "Amount in Transaction Currency",&lt;/P&gt;
&lt;P&gt;Sum(Amount_in_Local_Currency) as "Amount in LC",&lt;/P&gt;
&lt;P&gt;Sum(Amount_in_Operating_Concern_Currency) as "Amount in USD",&lt;/P&gt;
&lt;P&gt;Sum(Amount_in_Group_Currency) as "Amount in Group Currency",&lt;/P&gt;
&lt;P&gt;Sum(Amount_in_Another_Currency) as "Amount in Another Currency",&lt;/P&gt;
&lt;P&gt;Resident ZFAC_Temp2&lt;/P&gt;
&lt;P&gt;Where&lt;/P&gt;
&lt;P&gt;Amount_in_Transaction_Currency&amp;lt;&amp;gt;0 or Amount_in_Local_Currency &amp;lt;&amp;gt;0 or Amount_in_Operating_Concern_Currency&amp;lt;&amp;gt;0 or Amount_in_Group_Currency&amp;lt;&amp;gt;0 or Amount_in_Another_Currency&amp;lt;&amp;gt;0 or Amount_in_Original_Transaction_Currency&amp;lt;&amp;gt;0&lt;/P&gt;
&lt;P&gt;Group by&lt;/P&gt;
&lt;P&gt;"Document Number", "Ledger", "Company Code", "Line item", "Transaction", "Transaction Type", "Transaction Currency", "Base Unit of Measure", "Reference Transaction", "Record Type", "Version", "Logical system", "Account Number", "Cost Element", "Cost Center", "Profit Center", "Functional Area ID", "Business Area", "Controlling Area", "Segment", "Parent Profit Center", "Parent Functional Area", "Trading Partner", "Partner Segment", "Quantity", "Debit/Credit Ind.", "Posting Period", "Original Transaction Currency", "Fiscal Year", "Posting Date", "Line Item", "Accounting Document Number", "Posting Key", "Doc. status", "Item category", "User name", Month, Quarter, Region, "Functional Area", "GL Account", "Local Currency", FX;&lt;/P&gt;
&lt;P&gt;Drop Table ZFAC_Temp2;&lt;/P&gt;
&lt;P&gt;#Groupby #Groupbyinvalid&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 14:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Group-by-is-invalid/m-p/2005945#M83246</guid>
      <dc:creator>Cassie_L</dc:creator>
      <dc:date>2022-11-17T14:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Group by is invalid</title>
      <link>https://community.qlik.com/t5/App-Development/Group-by-is-invalid/m-p/2006276#M83273</link>
      <description>&lt;P&gt;&lt;SPAN class="pluma-sent-0"&gt;&amp;nbsp;You're probably missing field(s)/dimensions in the group by condition. Also,&lt;/SPAN&gt;&lt;SPAN class="pluma-sent-0"&gt; there should be no comma at the end of this line.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;STRIKE&gt;Sum(Amount_in_Another_Currency) as "Amount in Another Currency"&lt;FONT color="#FF0000"&gt;,&lt;/FONT&gt;&lt;/STRIKE&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Sum(Amount_in_Another_Currency) as "Amount in Another Currency"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Resident ZFAC_Temp2&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 08:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Group-by-is-invalid/m-p/2006276#M83273</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-11-18T08:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Group by is invalid</title>
      <link>https://community.qlik.com/t5/App-Development/Group-by-is-invalid/m-p/2006332#M83278</link>
      <description>&lt;P&gt;Hi, Pierre,&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;So if I missed field in group by condition, other dimensions could apply to group by functions as well?&lt;/P&gt;
&lt;P&gt;I delete script between sum and resident, so there is no issue for the comma.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 09:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Group-by-is-invalid/m-p/2006332#M83278</guid>
      <dc:creator>Cassie_L</dc:creator>
      <dc:date>2022-11-18T09:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Group by is invalid</title>
      <link>https://community.qlik.com/t5/App-Development/Group-by-is-invalid/m-p/2006351#M83281</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LOAD "Document Number", "Ledger", "Company Code", "Line item", "Transaction", "Transaction Type", "Transaction Currency",
"Base Unit of Measure", "Reference Transaction", "Record Type", "Version", "Logical system", "Account Number", "Cost Element", 
"Cost Center", "Profit Center", "Functional Area ID", "Business Area", "Controlling Area", "Segment", "Parent Profit Center",
"Parent Functional Area", "Trading Partner", "Partner Segment", "Quantity", "Debit/Credit Ind.", "Posting Period", 
"Original Transaction Currency", "Fiscal Year", "Posting Date", "Line Item", "Accounting Document Number", "Posting Key",
"Doc. status", "Item category", "User name", Month, Quarter, Region, "Functional Area", "GL Account", "Local Currency", FX,
Sum(Amount_in_Transaction_Currency) as "Amount in Transaction Currency",
Sum(Amount_in_Local_Currency) as "Amount in LC",
Sum(Amount_in_Operating_Concern_Currency) as "Amount in USD",
Sum(Amount_in_Group_Currency) as "Amount in Group Currency",
Sum(Amount_in_Another_Currency) as "Amount in Another Currency"

Resident ZFAC_Temp2
Where Amount_in_Transaction_Currency&amp;lt;&amp;gt;0 
or Amount_in_Local_Currency &amp;lt;&amp;gt;0 
or Amount_in_Operating_Concern_Currency&amp;lt;&amp;gt;0 
or Amount_in_Group_Currency&amp;lt;&amp;gt;0 
or Amount_in_Another_Currency&amp;lt;&amp;gt;0 
or Amount_in_Original_Transaction_Currency&amp;lt;&amp;gt;0

Group by "Document Number", "Ledger", "Company Code", "Line item", "Transaction", "Transaction Type", "Transaction Currency",
"Base Unit of Measure", "Reference Transaction", "Record Type", "Version", "Logical system", "Account Number", "Cost Element", 
"Cost Center", "Profit Center", "Functional Area ID", "Business Area", "Controlling Area", "Segment", "Parent Profit Center",
"Parent Functional Area", "Trading Partner", "Partner Segment", "Quantity", "Debit/Credit Ind.", "Posting Period", 
"Original Transaction Currency", "Fiscal Year", "Posting Date", "Line Item", "Accounting Document Number", "Posting Key",
"Doc. status", "Item category", "User name", Month, Quarter, Region, "Functional Area", "GL Account", "Local Currency", FX;

Drop Table ZFAC_Temp2;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Nov 2022 10:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Group-by-is-invalid/m-p/2006351#M83281</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-11-18T10:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Group by is invalid</title>
      <link>https://community.qlik.com/t5/App-Development/Group-by-is-invalid/m-p/2006836#M83310</link>
      <description>&lt;P&gt;Hi, Pierre, thank you, this is exactly my original script. And in the front end, I cannot sum by most of dimensions like company code, local currency.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 06:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Group-by-is-invalid/m-p/2006836#M83310</guid>
      <dc:creator>Cassie_L</dc:creator>
      <dc:date>2022-11-21T06:56:24Z</dc:date>
    </item>
  </channel>
</rss>

