<?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 do I force a calculation at a level not displayed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-force-a-calculation-at-a-level-not-displayed/m-p/422560#M490411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The aggr function works for the middle chart when deal is not displayed, what about when only the state or item are displayed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the order of the items listed in the aggr function matter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2012 12:18:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-17T12:18:40Z</dc:date>
    <item>
      <title>How do I force a calculation at a level not displayed</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-force-a-calculation-at-a-level-not-displayed/m-p/422558#M490409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a complex data structure, as most people do - I have Deals that have multiple Items,&amp;nbsp; the Deals also have multiple Categories (I call them details in the attached qvw).&amp;nbsp; I need to create a factor using the weights in the Categories them mutiply it by the Item Amounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When all the dimension data is displayed, I'm able to get the correct total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I drop some of the dimensions, the math changes -&amp;nbsp; How do I create an expresion to force the factor to ALWAYS take the sum of the weights selected for a deal and divide by the total weight of the deal?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to QV and have tried several options but have not come close!&amp;nbsp; Any ideas or help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 10:20:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-force-a-calculation-at-a-level-not-displayed/m-p/422558#M490409</guid>
      <dc:creator />
      <dc:date>2012-10-17T10:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I force a calculation at a level not displayed</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-force-a-calculation-at-a-level-not-displayed/m-p/422559#M490410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should look into advanced aggregation, i.e. the aggr() function which allows to calculate an expression in different context than the chart dimension. In your case, try an expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=aggr(Sum(Weight)/Sum( Total &amp;lt;DealID&amp;gt;Weight),ItemID,DealID,Item,State)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Factor in your second chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 10:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-force-a-calculation-at-a-level-not-displayed/m-p/422559#M490410</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-17T10:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I force a calculation at a level not displayed</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-force-a-calculation-at-a-level-not-displayed/m-p/422560#M490411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The aggr function works for the middle chart when deal is not displayed, what about when only the state or item are displayed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the order of the items listed in the aggr function matter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 12:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-force-a-calculation-at-a-level-not-displayed/m-p/422560#M490411</guid>
      <dc:creator />
      <dc:date>2012-10-17T12:18:40Z</dc:date>
    </item>
  </channel>
</rss>

