<?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 Highest value for an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Highest-value-for-an-expression/m-p/761902#M1042401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Find max value of an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an expression for machines 1-7 which says:&lt;/P&gt;&lt;P&gt;total transfer time = sum( If(Program &amp;lt;&amp;gt; 'DETECT STOP', DowntimeDuration))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What expression should I use, to find the machine number which gives highest value of total transfer time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Dec 2014 00:50:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-03T00:50:10Z</dc:date>
    <item>
      <title>Highest value for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Highest-value-for-an-expression/m-p/761902#M1042401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Find max value of an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an expression for machines 1-7 which says:&lt;/P&gt;&lt;P&gt;total transfer time = sum( If(Program &amp;lt;&amp;gt; 'DETECT STOP', DowntimeDuration))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What expression should I use, to find the machine number which gives highest value of total transfer time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 00:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Highest-value-for-an-expression/m-p/761902#M1042401</guid>
      <dc:creator />
      <dc:date>2014-12-03T00:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Highest value for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Highest-value-for-an-expression/m-p/761903#M1042402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to take the maximum of the subtotals by machine number.&amp;nbsp; It would look like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max(&amp;nbsp; aggr(&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum( If(Program &amp;lt;&amp;gt; 'DETECT STOP', DowntimeDuration)) , MachineNumber ) ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where MachineNumber is the field that stores the machine numbers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on context, you may need a TOTAL in the max() &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max( TOTAL&amp;nbsp; aggr(&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum( If(Program &amp;lt;&amp;gt; 'DETECT STOP', DowntimeDuration)) , MachineNumber ) ) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 00:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Highest-value-for-an-expression/m-p/761903#M1042402</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-12-03T00:53:07Z</dc:date>
    </item>
  </channel>
</rss>

