<?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: Sum product in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31154#M780259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how you are getting 1530... I got 1639 when I did the above calculation is Excel... Do you agree with 1639?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/197943_Capture.PNG" style="height: 221px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/197944_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Mar 2018 17:14:25 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-03-29T17:14:25Z</dc:date>
    <item>
      <title>Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31146#M780251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to QLIK view, trying to develop my own dashboard. I am struck with Sum product formula, let me explain my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have each market wise cost and volume, i want to know the overall Region cost. I have given below the sample data. In excel i will write formula as =sum product(Cost,Volume)/Total Volumes. please try to translate it to expression in QLIkview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 297px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" width="161"&gt;Region&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="72"&gt;Cost&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;Volumes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;Dubai&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;&amp;nbsp; 1,000.00&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;Israel&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;Northern Africa&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;&amp;nbsp; 2,000.00&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;8000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;Southern Africa&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;&amp;nbsp; 3,000.00&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;120000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;Other Africa&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;&amp;nbsp; 4,000.00&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;20000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;Middle East &amp;amp; Africa Total&lt;/TD&gt;&lt;TD class="xl72" style="border-top: none; border-left: none;"&gt;&amp;nbsp; &lt;SPAN style="color: #ffcc00;"&gt; &lt;SPAN style="color: #ff0000;"&gt;3,053.33&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;150000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31146#M780251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31147#M780252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Cost*Volume)/Sum(Volume)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 14:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31147#M780252</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-29T14:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31148#M780253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt; However i just noticed that i have more items like this. For e.g assume the above given data is for Material cost, likewise i have 20 different cost like Lab our cost, selling cost, admin cost, marketing cost etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the same format cost were appended one after another. In this case, if i need to get the same formula for one of the like items Selling cost, what i am i suppose to do. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 15:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31148#M780253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-29T15:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31149#M780254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure I follow... do you mind sharing the new data that you have?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 15:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31149#M780254</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-29T15:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31150#M780255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For attaching, check here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 15:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31150#M780255</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-29T15:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31151#M780256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a income statement for my product, how it will perform based on the product life cycle. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to report Per product cost, $ mils and in %, so created 3 different columns to report it, hence i have chosen cyclic view. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with cyclic view is. It is summing up the total which will work out for $ mils, just sum of all region. However for per product cost, we need to use the sum product of respective line items (for eg. Admin exp) totals of all market and the volumes of respective market divided by overall volume. This is where i am struck. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am happy if i can get this in KPI itself, so that i will remove the partial sum in my pivot. I have attached my sample data and QLIK view dashboard and dummy Inc statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if anybody can help me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 16:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31151#M780256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-29T16:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31152#M780257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, based on the sample data that you have attached, I guess you are having issue when Per Unit is selected, right? Is the problem here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/197942_Capture.PNG" style="height: 442px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the number you expect to see here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 16:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31152#M780257</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-29T16:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31153#M780258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, at the top MEA total (Cycle average) i expected to see is 1530 which is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cyc avg - sum product (Dubai + North Africa + South Africa + Other Africa : Volume(Dubai+N.Africa+ S.Africa+ O.Africa) / Total Cyc avg volume&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In numbers = sumproduct(2914+192+2423+129 : 2927+4098+15220+6439)/28683 = 1530&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly, each year should work in the same logic, when each item in the left is selected. When nothing selected, it should consider as Automotive PBT as selected and fetch the results of "Automotive PBT" as final number. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 17:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31153#M780258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-29T17:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31154#M780259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how you are getting 1530... I got 1639 when I did the above calculation is Excel... Do you agree with 1639?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/197943_Capture.PNG" style="height: 221px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/197944_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 17:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31154#M780259</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-29T17:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31155#M780260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are correct, i recognize the 1639. My excel calculation was wrong. Can you share the qvw file, i will to understand how the expressions are written and learn from it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to create KPI for this data, which should give me $ Mils, Per Product cost &amp;amp; % for Automotive PBT. Can you help on that as well? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your guidance on the following points as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have more products, but same logic. Can i append the new product data? or any better suggestions&lt;/P&gt;&lt;P&gt;2. Currently i have listed this month status alone, when i need to see other months data of same product. Is it OK to append or any recommendation from your side?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2018 05:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31155#M780260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-30T05:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31156#M780261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you open this link &lt;A href="https://community.qlik.com/message/1462145"&gt;Re: Sum product&lt;/A&gt;... you will see the qvw attached with my response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you say in KPI, those only show value when one Line Item Grouping is selected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I think that's how it should work and if you want to look at product you can either add it as a dimension or make a selection to view a single product.&lt;/P&gt;&lt;P&gt;2) I am not sure I understand this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2018 12:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31156#M780261</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-30T12:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31157#M780262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny, you are awesome. I can take this for my internal review with my management. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My plan is to develop 3 KPI&lt;/P&gt;&lt;P&gt;1. Profit Margin (in%) which is nothing but Automotive PBT / (Net revenue + G.Revenue *10%) of my data set&lt;/P&gt;&lt;P&gt;2. In the flash wanted to give the PBT in all the means ($ Mils, Per unit &amp;amp; %)&lt;/P&gt;&lt;P&gt;3. Wanted to show the same KPI as in point 2 when the new product is launched (Launched year)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2018 04:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31157#M780262</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-31T04:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31158#M780263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why you used Dimensionality() here.&lt;/P&gt;&lt;P&gt;Please let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2018 11:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31158#M780263</guid>
      <dc:creator>tripatirao</dc:creator>
      <dc:date>2018-03-31T11:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31159#M780264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) For which year would want to show this for?&lt;/P&gt;&lt;P&gt;2) When you say Flash, do you mean it toggles between the three based on some time passed like every 3-4 seconds the value changes?&lt;/P&gt;&lt;P&gt;3) Another set of text boxes for new product? but what is the definition of new product?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2018 20:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31159#M780264</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-31T20:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31160#M780265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My company is manufacturing company, They launch multiple products over period of time which has different product cycle. For e.g take case of Samsung, each were different products and they are launching month over month or year over year according to the regional demand and need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a particular product is selected, my intention is to display the &lt;SPAN style="font-size: 13.3333px;"&gt;Operating Margin / Profit Margin &lt;/SPAN&gt;in KPI&amp;nbsp; management would be interested to know only this on high level, when they want to dig deep they can select from the drop down. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem here is, i have listed every selection under dimension of "Line Items", i don't know how to call out Operating Margin in KPI as default. If you can help me to develop this KPI that would be helpful. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 06:04:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31160#M780265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-02T06:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31161#M780266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have worked on developing a KPI for my dashboard by using the below mentioned formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum(aggr (sum( {&amp;lt;[Line Items]={"Operating Margin"},Year={"Cyc Avg"} &amp;gt;} [In %]*Volumes),Market))/sum(aggr (sum( {&amp;lt;[Line Items]={"Operating Margin"},Year={"Cyc Avg"} &amp;gt;} Volumes),Market)),'#,##0.0;(#,##0.0)')&amp;amp;'%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However i noticed that it was not correct as i require. Instead of multiplying with Volume, i need to use "Net Revenue" which is one of the element in "line Items Grouping". Please help me to correct that formula. I am suppose to get (38.5%) as the Ops margin for KPI. I have listed the numbers below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE align="left" border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 520px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="97"&gt;Market&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="177"&gt;Line Items&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="88"&gt;In $ Mils&lt;/TD&gt;&lt;TD class="xl66" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="107"&gt;Line Items&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="51"&gt;In %&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Dubai&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Net Revenue&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;21.16097561&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Operating Margin&lt;/TD&gt;&lt;TD class="xl69" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt; (36.05)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Israel&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Net Revenue&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;0&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Operating Margin&lt;/TD&gt;&lt;TD class="xl69" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Northern Africa&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Net Revenue&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;28.4195122&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Operating Margin&lt;/TD&gt;&lt;TD class="xl69" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;&amp;nbsp; 19.61 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Southern Africa&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Net Revenue&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;95.62878456&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Operating Margin&lt;/TD&gt;&lt;TD class="xl69" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt; (63.01)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Other Africa&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Net Revenue&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;21.42439024&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Operating Margin&lt;/TD&gt;&lt;TD class="xl69" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;&amp;nbsp;&amp;nbsp; (8.79)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt; &lt;/TD&gt;&lt;TD class="xl70" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt; &lt;/TD&gt;&lt;TD class="xl70" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="70" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt; &lt;/TD&gt;&lt;TD class="xl72" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="177"&gt;&lt;P&gt;(Sumproduct of Net Rev $ mils * Ops Margin %)/sum of Net Revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;-38.52314379&lt;/TD&gt;&lt;TD class="xl74" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt; &lt;/TD&gt;&lt;TD class="xl75" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 10:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31161#M780266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-03T10:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31162#M780267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Aggr(Sum({&amp;lt;[Line Item Grouping] = {'Net Revenue'}, Year = {'Cyc Avg'}&amp;gt;}[In $ Mils]) * sum({&amp;lt;[Line Item Grouping] = {'Operating Margin'}, Year = {'Cyc Avg'}&amp;gt;}[In %]), Market))/Sum({&amp;lt;[Line Item Grouping] = {'Net Revenue'}, Year = {'Cyc Avg'}&amp;gt;}[In $ Mils])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/198339_Capture.PNG" style="height: 157px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 19:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31162#M780267</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-03T19:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31163#M780268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are awesome...It absolutely worked. However, i have sent you one another request for identifying the total of all region in %. It would be nice, if you can also respond to that as well!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 05:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31163#M780268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-04T05:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31164#M780269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you talking about another thread?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 09:03:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31164#M780269</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-04T09:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sum product</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31165#M780270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dropped a personal msg to you, that is what i have referenced above. Any way, below is the msg copied from that msg. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sunny, I tried replicating the same you did for per unit to %, but it didn't work. It will not work coz the formula for % is something different. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Generally it is sum(in %), for MEA Total it should be sum product of (Operating Margin%:Net Revenue)/Total Net revenue. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have tried this, but not working out. Your help is needed again. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=sum({&amp;lt;[Line Item Grouping] = {'Operating Margin'}&amp;gt;}sum([In %]*sum({&amp;lt;[Line Item Grouping] = {'Net Revenue'}&amp;gt;}[In $ Mils]/Sum({&amp;lt;[Line Item Grouping] = {'Net Revenue'}&amp;gt;}[In $ Mils])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Also, is there any way that we can talk for some time? I just want to understand whether those are possible in QLIK VIEW. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 09:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-product/m-p/31165#M780270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-04T09:16:44Z</dc:date>
    </item>
  </channel>
</rss>

