<?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: Problem with grouping lines in table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-grouping-lines-in-table/m-p/825331#M290705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use aggr function...&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;dimension: CustomerName&lt;/P&gt;&lt;P&gt;expression: sum(aggr(sum(CustInvoiceTrans.LineAmount), INVOICEID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2014 11:18:44 GMT</pubDate>
    <dc:creator>mato32188</dc:creator>
    <dc:date>2014-11-13T11:18:44Z</dc:date>
    <item>
      <title>Problem with grouping lines in table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-grouping-lines-in-table/m-p/825329#M290703</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;Hello,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have issue with table object, my tables are related as follows in attached file and the problem is:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;When I have Name(CustomerName), SalesId(Or InvoiceId) and CustInvoiceTrans.LineAmount column "CustInvoiceTrans.LineAmount" is showing values correctly, but I need that value to be summed after grouping by name(CustomerName) - I just remove salesId(or InvoiceId) column from table and my table become empty instead of showing summed lineAmount by Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Any suggestions?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank You in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 11:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-grouping-lines-in-table/m-p/825329#M290703</guid>
      <dc:creator />
      <dc:date>2014-11-13T11:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with grouping lines in table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-grouping-lines-in-table/m-p/825330#M290704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also i have this expression for LineAmount :&lt;/P&gt;&lt;P&gt;= if (InventBatchId like 'bonus', sum (CustInvoiceTrans.LineAmount))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 11:08:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-grouping-lines-in-table/m-p/825330#M290704</guid>
      <dc:creator />
      <dc:date>2014-11-13T11:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with grouping lines in table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-grouping-lines-in-table/m-p/825331#M290705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use aggr function...&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;dimension: CustomerName&lt;/P&gt;&lt;P&gt;expression: sum(aggr(sum(CustInvoiceTrans.LineAmount), INVOICEID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 11:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-grouping-lines-in-table/m-p/825331#M290705</guid>
      <dc:creator>mato32188</dc:creator>
      <dc:date>2014-11-13T11:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with grouping lines in table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-grouping-lines-in-table/m-p/825332#M290706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably because InventBatchId has a single value per CustomerName/SalesID combination, but if you remove SalesID, every CustomerName will have many InventBatchId values and the IF() will fail (resulting in all NULL values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it work if you change your expression into something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=SUM(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; IF ( InventBatchId LIKE 'bonus', &lt;/SPAN&gt;CustInvoiceTrans.LineAmount))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 11:31:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-grouping-lines-in-table/m-p/825332#M290706</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-11-13T11:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with grouping lines in table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-grouping-lines-in-table/m-p/825333#M290707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You, I think that solve my problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 11:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-grouping-lines-in-table/m-p/825333#M290707</guid>
      <dc:creator />
      <dc:date>2014-11-13T11:45:47Z</dc:date>
    </item>
  </channel>
</rss>

