<?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 How To Create a Formula With Different Levels of Aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-To-Create-a-Formula-With-Different-Levels-of-Aggregation/m-p/229509#M81408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUM([Amt in LC]) / SUM(TOTAL &amp;lt;[Customer / Parent]&amp;gt; ([Gross Revenue]))&lt;/P&gt;&lt;P&gt;Change [Customer / Parent] if that's not actually your field name.&lt;/P&gt;&lt;P&gt;-Isaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Feb 2011 19:45:34 GMT</pubDate>
    <dc:creator>isaiah82</dc:creator>
    <dc:date>2011-02-24T19:45:34Z</dc:date>
    <item>
      <title>How To Create a Formula With Different Levels of Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Create-a-Formula-With-Different-Levels-of-Aggregation/m-p/229508#M81407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following formula in a Table: =SUM([Amt in LC]) / SUM([Gross Revenue])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table also includes the following two dimensions: (1) Customer/Parent Name and (2) each Customer's Sold-To's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like the formula to behave as follows:&lt;/P&gt;&lt;P style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"&gt;1. The portion of the formula "SUM([Amt in LC])" is equal to the sum of [Amt in LC] for each Sold To&lt;/P&gt;&lt;P style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"&gt;2. The portion of the formula "SUM([Gross Revenue])" is equal to the total [Gross Revenue] for the Customer/Parent (i.e. the sum of all Sold-To's under that Customer/Parent)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a picture of a simple mockup (mockup was done in Excel) of what I wish to see. Column E is what I already have. Column F is what I would like to see occur. So, for F2 the formula is $23,605,582.45 / $530,370,140.54 = 4.45%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3659_sourceID:3659" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how do I achieve this in my straight table? I am using QlikView 9 (not sure if it matters).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance is much appreciated.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Godfrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 18:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Create-a-Formula-With-Different-Levels-of-Aggregation/m-p/229508#M81407</guid>
      <dc:creator />
      <dc:date>2011-02-24T18:26:00Z</dc:date>
    </item>
    <item>
      <title>How To Create a Formula With Different Levels of Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Create-a-Formula-With-Different-Levels-of-Aggregation/m-p/229509#M81408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUM([Amt in LC]) / SUM(TOTAL &amp;lt;[Customer / Parent]&amp;gt; ([Gross Revenue]))&lt;/P&gt;&lt;P&gt;Change [Customer / Parent] if that's not actually your field name.&lt;/P&gt;&lt;P&gt;-Isaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 19:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Create-a-Formula-With-Different-Levels-of-Aggregation/m-p/229509#M81408</guid>
      <dc:creator>isaiah82</dc:creator>
      <dc:date>2011-02-24T19:45:34Z</dc:date>
    </item>
    <item>
      <title>How To Create a Formula With Different Levels of Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Create-a-Formula-With-Different-Levels-of-Aggregation/m-p/229510#M81409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Isaiah, that works exactly as I need it to!&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Godfrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 19:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Create-a-Formula-With-Different-Levels-of-Aggregation/m-p/229510#M81409</guid>
      <dc:creator />
      <dc:date>2011-02-24T19:50:02Z</dc:date>
    </item>
  </channel>
</rss>

