<?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: Weightage Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Weightage-Calculation/m-p/261143#M581621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer. I will check the points you told me. Here I am now attaching the Application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2011 16:06:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-28T16:06:18Z</dc:date>
    <item>
      <title>Weightage Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Weightage-Calculation/m-p/261139#M581614</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;I am trying to get weightage(OEE Weighted) of a calculation(OEE) in Qlikview. That works but still I get the correct answer only when I select a Plant.&lt;/P&gt;&lt;P&gt;Any idea how to get it without selections. I know that is based on Setanalysis but I am not getting an Idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see below screenshots:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;without selection:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="8998" alt="OEEwithoutselection.jpg" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/8998_OEEwithoutselection.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;with selection:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="OEEwithselection.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/9002_OEEwithselection.jpg" width="450" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 15:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weightage-Calculation/m-p/261139#M581614</guid>
      <dc:creator />
      <dc:date>2011-11-28T15:28:51Z</dc:date>
    </item>
    <item>
      <title>Weightage Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Weightage-Calculation/m-p/261140#M581615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post the expressions / dimensions you are using? Or best a small sample app?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 15:40:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weightage-Calculation/m-p/261140#M581615</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-28T15:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Weightage Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Weightage-Calculation/m-p/261141#M581616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculations are a little bit complicated. Please dont get shocked. May be you can help to make them easy.&lt;/P&gt;&lt;P&gt;As per my above diagram the columns are like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions: &lt;STRONG&gt;RefrescoBU, PlantName, MachineName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Availability:&lt;/STRONG&gt;&amp;nbsp; = AVG(Aggr(sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} ActivityDuration)/ sum({ &amp;lt;ActivityCategory = {'I'}&amp;gt; / &amp;lt;ProductCategory = {'G'}&amp;gt; /&amp;lt;ActivityCategory = {'F'}&amp;gt; /&amp;lt;ActivityCategory = {'R'}&amp;gt;&amp;nbsp; } ActivityDuration),RefrescoBU, PlantName,MachineName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Performance&lt;/STRONG&gt;: // Here Rangemin is used to cut if the value is more than 1 -&amp;gt;i.e if more than 100 %&lt;/P&gt;&lt;P&gt;=Avg(Aggr(Rangemin(1,(sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} StandardValueAddedTime*Output)+ Sum({&amp;lt;ProductCategory = {'R'}&amp;gt;} StandardValueAddedTime*Output)+ Sum({&amp;lt;ProductCategory = {'S'}&amp;gt;} StandardValueAddedTime*Output))/sum({&amp;lt;ProductCategory = {'G'}&amp;gt;}ActivityDuration)),RefrescoBU,PlantName,MachineName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Quality:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;=sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} StandardValueAddedTime*Output)/(sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} StandardValueAddedTime*Output)+ Sum({&amp;lt;ProductCategory = {'R'}&amp;gt;} StandardValueAddedTime*Output)+Sum({&amp;lt;ProductCategory = {'S'}&amp;gt;} StandardValueAddedTime*Output))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OEE: // &lt;/STRONG&gt;&lt;STRONG&gt;Availability * &lt;/STRONG&gt;&lt;STRONG&gt;Performance * &lt;/STRONG&gt;&lt;STRONG&gt;Quality&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} ActivityDuration)/ sum({ &amp;lt;ActivityCategory = {'I'}&amp;gt; / &amp;lt;ProductCategory = {'G'}&amp;gt; /&amp;lt;ActivityCategory = {'F'}&amp;gt; /&amp;lt;ActivityCategory = {'R'}&amp;gt;&amp;nbsp; } ActivityDuration) &lt;/P&gt;&lt;P&gt;* &lt;/P&gt;&lt;P&gt;Avg(Aggr(Rangemin(1,(sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} StandardValueAddedTime*Output)+ Sum({&amp;lt;ProductCategory = {'R'}&amp;gt;} StandardValueAddedTime*Output)+ Sum({&amp;lt;ProductCategory = {'S'}&amp;gt;} StandardValueAddedTime*Output))/sum({&amp;lt;ProductCategory = {'G'}&amp;gt;}ActivityDuration)),RefrescoBU,PlantName,MachineName))&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt; sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} StandardValueAddedTime*Output)/(sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} StandardValueAddedTime*Output)+ Sum({&amp;lt;ProductCategory = {'R'}&amp;gt;} StandardValueAddedTime*Output)+Sum({&amp;lt;ProductCategory = {'S'}&amp;gt;} StandardValueAddedTime*Output))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&amp;nbsp; =sum(Output)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OEE * Output: // calculation of OEE * Output&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;= Sum(Aggr((sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} ActivityDuration)/ sum({ &amp;lt;ActivityCategory = {'I'}&amp;gt; / &amp;lt;ProductCategory = {'G'}&amp;gt; /&amp;lt;ActivityCategory = {'F'}&amp;gt; /&amp;lt;ActivityCategory = {'R'}&amp;gt;&amp;nbsp; } ActivityDuration) &lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt; Avg(Aggr(Rangemin(1,(sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} StandardValueAddedTime*Output)+ Sum({&amp;lt;ProductCategory = {'R'}&amp;gt;} StandardValueAddedTime*Output)+ Sum({&amp;lt;ProductCategory = {'S'}&amp;gt;} StandardValueAddedTime*Output))/sum({&amp;lt;ProductCategory = {'G'}&amp;gt;}ActivityDuration)),RefrescoBU,PlantName,MachineName))&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt; sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} StandardValueAddedTime*Output)/(sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} StandardValueAddedTime*Output)+ Sum({&amp;lt;ProductCategory = {'R'}&amp;gt;} StandardValueAddedTime*Output)+Sum({&amp;lt;ProductCategory = {'S'}&amp;gt;} StandardValueAddedTime*Output))&lt;/P&gt;&lt;P&gt; * &lt;/P&gt;&lt;P&gt;Sum(Output)),RefrescoBU,PlantName,MachineName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Total Output) :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Total Output)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OEE weighted:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;= Sum(Aggr((sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} ActivityDuration)/ sum({ &amp;lt;ActivityCategory = {'I'}&amp;gt; / &amp;lt;ProductCategory = {'G'}&amp;gt; /&amp;lt;ActivityCategory = {'F'}&amp;gt; /&amp;lt;ActivityCategory = {'R'}&amp;gt;&amp;nbsp; } ActivityDuration) * Avg(Aggr(Rangemin(1,(sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} StandardValueAddedTime*Output)+ Sum({&amp;lt;ProductCategory = {'R'}&amp;gt;} StandardValueAddedTime*Output)+ Sum({&amp;lt;ProductCategory = {'S'}&amp;gt;} StandardValueAddedTime*Output))/sum({&amp;lt;ProductCategory = {'G'}&amp;gt;}ActivityDuration)),RefrescoBU,PlantName,MachineName))* sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} StandardValueAddedTime*Output)/(sum({&amp;lt;ProductCategory = {'G'}&amp;gt;} StandardValueAddedTime*Output)+ Sum({&amp;lt;ProductCategory = {'R'}&amp;gt;} StandardValueAddedTime*Output)+Sum({&amp;lt;ProductCategory = {'S'}&amp;gt;} StandardValueAddedTime*Output))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; * Sum(Output)),RefrescoBU, PlantName, MachineName))/Sum(Total Output)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you think that the Performance of my QV Application is bad, because of these calculations, it is not the case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 15:49:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weightage-Calculation/m-p/261141#M581616</guid>
      <dc:creator />
      <dc:date>2011-11-28T15:49:41Z</dc:date>
    </item>
    <item>
      <title>Weightage Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Weightage-Calculation/m-p/261142#M581619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your sum(total Output) should always return a value if sum(Output) does. It does not seem to work in your first screen shot. Could you please recheck that the field names are correct and that you don't mixed up field names and expression label names by accident?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your OEE weighted, I think you're having problems with the implicit DISTINCT qualifier of the aggr() function, you could try to add NODISTINCT qualifier to the aggr() function, but not sure if this will get you correct results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would need to go somewhat deeper into the expressions (they are indeed a little bit complex), if you could post some small sample, that would make things much easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 15:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weightage-Calculation/m-p/261142#M581619</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-28T15:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Weightage Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Weightage-Calculation/m-p/261143#M581621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer. I will check the points you told me. Here I am now attaching the Application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 16:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weightage-Calculation/m-p/261143#M581621</guid>
      <dc:creator />
      <dc:date>2011-11-28T16:06:18Z</dc:date>
    </item>
    <item>
      <title>Weightage Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Weightage-Calculation/m-p/261144#M581622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed some Output values are extremely high (like 10^22), some are negative. I this reasonably? (I think that might cause some problems with your total sum).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 16:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weightage-Calculation/m-p/261144#M581622</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-28T16:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Weightage Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Weightage-Calculation/m-p/261145#M581623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also noticed. Do you mean that is the cause for the Weighted value to be wrong?&lt;/P&gt;&lt;P&gt;If I select a BU, It must minimum give the Weightage value for that BU correct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 16:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weightage-Calculation/m-p/261145#M581623</guid>
      <dc:creator />
      <dc:date>2011-11-28T16:44:49Z</dc:date>
    </item>
  </channel>
</rss>

