<?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: Calculating weighted number in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-weighted-number-in-an-expression/m-p/1344832#M829836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;sum(aggr((Expression of Number of Product)*sum(distinct Weight),Supplier))/(Expression of Number of Product)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2017 15:55:36 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2017-06-22T15:55:36Z</dc:date>
    <item>
      <title>Calculating weighted number in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-weighted-number-in-an-expression/m-p/1344828#M829832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a qlikview application which aims to calculate the aggregate work in progress `(WIP) in our suppliers. The calculus of their work in progress is the Number of Products already demanded (column 2) divided by the supplier´s month capacity (column 3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, we want also to calculate the weighted WIP (WWIP), which is done by the sum of each supplier´s WIP times it´s number of products divided by the total number of products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case expressed by the table below, we have the following calculation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1000*2,5 + 500 * 1,67 + 700* 2,33 + 300*0,3 / (1000+500+700+300) = 2,02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table_Suppliers.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167814_Table_Suppliers.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can anyone help me doing the WWIP in a single expression?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&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/Calculating-weighted-number-in-an-expression/m-p/1344828#M829832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating weighted number in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-weighted-number-in-an-expression/m-p/1344829#M829833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;((Sum({&amp;lt;Supplier = {A}&amp;gt;} [Number of Products]) * Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;Supplier = {A}&amp;gt;}&lt;/SPAN&gt;WIP)) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(Sum({&amp;lt;Supplier = {B}&amp;gt;} [Number of Products]) * Sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;Supplier = {B}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;WIP)) + &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(Sum({&amp;lt;Supplier = {C}&amp;gt;} [Number of Products]) * Sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;Supplier = {C}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;WIP)) + &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(Sum({&amp;lt;Supplier = {D}&amp;gt;} [Number of Products]) * Sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;Supplier = {D}&amp;gt;}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;WIP))) / Sum(TOTAL [Number of Products])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-weighted-number-in-an-expression/m-p/1344829#M829833</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-22T15:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating weighted number in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-weighted-number-in-an-expression/m-p/1344830#M829834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is expression for "Number of Product"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-weighted-number-in-an-expression/m-p/1344830#M829834</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-06-22T15:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating weighted number in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-weighted-number-in-an-expression/m-p/1344831#M829835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need WWIP in a KPI or text object? May be try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr((Expression4NumberOfProduct * Expression4WIP)/Expression4NumberOfProductWithTOTALQualifier, Supplier))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:45:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-weighted-number-in-an-expression/m-p/1344831#M829835</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-22T15:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating weighted number in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-weighted-number-in-an-expression/m-p/1344832#M829836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;sum(aggr((Expression of Number of Product)*sum(distinct Weight),Supplier))/(Expression of Number of Product)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-weighted-number-in-an-expression/m-p/1344832#M829836</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-06-22T15:55:36Z</dc:date>
    </item>
  </channel>
</rss>

