<?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: aggr() function for OEE calculation? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-function-for-OEE-calculation/m-p/1628995#M733529</link>
    <description>&lt;P&gt;see attached file.&lt;/P&gt;&lt;P&gt;You have to set all variables without =, otherwise the calculated value is in the variable.&lt;/P&gt;&lt;P&gt;Then you have to use the variable with $(=v&lt;/P&gt;&lt;P&gt;Regards)&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2019 11:00:22 GMT</pubDate>
    <dc:creator>martinpohl</dc:creator>
    <dc:date>2019-09-27T11:00:22Z</dc:date>
    <item>
      <title>aggr() function for OEE calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-for-OEE-calculation/m-p/1628990#M733528</link>
      <description>&lt;P&gt;Hello QlikvView community!&lt;/P&gt;&lt;P&gt;I have a problem where I am trying to calculate an OEE value. This is done by multiplying A*P*Q. It all works fine when the "P" has only one Ideal Run Rate but when there are several different, and they have been running for different amount of time the aggreagated "P" needs to take that into account. This is displayed in the attached .qvw table.&lt;/P&gt;&lt;P&gt;I need help with the code that needs to be put into the "vAvailiability" Variable so that "vOEE" can be calculated correctly.&lt;/P&gt;&lt;P&gt;A = Availability&amp;nbsp;&lt;/P&gt;&lt;P&gt;P = Performance&lt;/P&gt;&lt;P&gt;Q = Quality&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any assistance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-for-OEE-calculation/m-p/1628990#M733528</guid>
      <dc:creator>lukasj</dc:creator>
      <dc:date>2024-11-16T19:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: aggr() function for OEE calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-for-OEE-calculation/m-p/1628995#M733529</link>
      <description>&lt;P&gt;see attached file.&lt;/P&gt;&lt;P&gt;You have to set all variables without =, otherwise the calculated value is in the variable.&lt;/P&gt;&lt;P&gt;Then you have to use the variable with $(=v&lt;/P&gt;&lt;P&gt;Regards)&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 11:00:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-for-OEE-calculation/m-p/1628995#M733529</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2019-09-27T11:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: aggr() function for OEE calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-for-OEE-calculation/m-p/1629001#M733530</link>
      <description>&lt;P&gt;Thank you for a fast response! But this does unfortunately not solve my issue.&lt;/P&gt;&lt;P&gt;The missing Performance "vP" number and the "vOEE" is now an average of the IdealRunRate divided by ProducedItems. It does not take into account what IdealRunRate each article has, nor how many ProducedItems it has.&lt;/P&gt;&lt;P&gt;For example 50% Performance on both Article A+B should not be able to result in a higher Performance.&lt;/P&gt;&lt;P&gt;Regards, LJ&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 11:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-for-OEE-calculation/m-p/1629001#M733530</guid>
      <dc:creator>lukasj</dc:creator>
      <dc:date>2019-09-27T11:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: aggr() function for OEE calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-for-OEE-calculation/m-p/1629966#M733531</link>
      <description>&lt;P&gt;So I finally solved it. Had to take account for Date and change some of the calculation steps. Below is the result to calculate Performance when items have different IdealRunRate. If there are other Fields such as Machine etc these have to be added to the aggr function as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=sum(aggr
(
(sum(ProducedItems)/
(sum(IdealRunRate)*sum(RunTime))
)*sum(RunTime)
,Article &amp;amp; ,Date))
/sum(RunTime)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 01 Oct 2019 09:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-for-OEE-calculation/m-p/1629966#M733531</guid>
      <dc:creator>lukasj</dc:creator>
      <dc:date>2019-10-01T09:49:57Z</dc:date>
    </item>
  </channel>
</rss>

