<?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: How to aggr in a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-aggr-in-a-table/m-p/488556#M1138971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quickest is to add a calculated dimension which is left(Account,1) and give it the name HeadAccount.&lt;/P&gt;&lt;P&gt;This will allow you to use subtotal on the Account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another idea is to hardcode your expressions with Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will allow you total control over the total positioning of your accounts:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Account={4010}&amp;gt;} Amount) &lt;/P&gt;&lt;P&gt;will give you the sum of all the account 4010. You do this for all your accounts.&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;HeadAccount={4}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;will give you the sum of all costing accounts, provided you have added the following to your&lt;/P&gt;&lt;P&gt;loading script:&lt;/P&gt;&lt;P&gt;left(Account,1) AS HeadAccount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you provide me with an example document, I'll be happy to add these expressions to your document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2013 15:00:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-27T15:00:13Z</dc:date>
    <item>
      <title>How to aggr in a table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-aggr-in-a-table/m-p/488555#M1138970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two colomn "Account" and "amount"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to group account like sales= 300 - 3999, costs= 4000 - 4999 and other 5000 - 9999 in at table with group totals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Account&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 4522&lt;/P&gt;&lt;P&gt;3010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -2 69900&lt;/P&gt;&lt;P&gt;3011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 99841&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 5526&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;4010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13 66955&lt;/P&gt;&lt;P&gt;4019&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 119&lt;/P&gt;&lt;P&gt;4110&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 62&lt;/P&gt;&lt;P&gt;4520&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 106 922&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 129 223&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Total&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 163 0022&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how kan i build this with the pivot table??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gunnar Schie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 12:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-aggr-in-a-table/m-p/488555#M1138970</guid>
      <dc:creator />
      <dc:date>2013-09-27T12:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggr in a table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-aggr-in-a-table/m-p/488556#M1138971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quickest is to add a calculated dimension which is left(Account,1) and give it the name HeadAccount.&lt;/P&gt;&lt;P&gt;This will allow you to use subtotal on the Account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another idea is to hardcode your expressions with Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will allow you total control over the total positioning of your accounts:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Account={4010}&amp;gt;} Amount) &lt;/P&gt;&lt;P&gt;will give you the sum of all the account 4010. You do this for all your accounts.&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;HeadAccount={4}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;will give you the sum of all costing accounts, provided you have added the following to your&lt;/P&gt;&lt;P&gt;loading script:&lt;/P&gt;&lt;P&gt;left(Account,1) AS HeadAccount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you provide me with an example document, I'll be happy to add these expressions to your document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 15:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-aggr-in-a-table/m-p/488556#M1138971</guid>
      <dc:creator />
      <dc:date>2013-09-27T15:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to aggr in a table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-aggr-in-a-table/m-p/488557#M1138972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank's for anwering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach a example file with some data. I wrote the group wish in the Expression for the table. I am glad if you will help me out &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Gunnar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 07:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-aggr-in-a-table/m-p/488557#M1138972</guid>
      <dc:creator />
      <dc:date>2013-09-30T07:58:10Z</dc:date>
    </item>
  </channel>
</rss>

