<?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: Create expression to return the largest number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633842#M678155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I pasted the script as follows...now it tells me the table doesn't exist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;[\\frxfileserv1\ftpdown\WW_PUBLIC\Download Folder\New Product Programs-PMR 2.0\Local\RX01\AERO_PMR.XLS]&lt;BR /&gt;&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;txt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;codepage&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 1252, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;delimiter&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; '\t', &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;msq&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;LEFT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;JOIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (Table) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[AE PMR ECM]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[AE PMR PROD PROC LT]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Maxprodlt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Table&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GROUP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;BY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[AE PMR ECM]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2014 18:09:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-14T18:09:44Z</dc:date>
    <item>
      <title>Create expression to return the largest number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633831#M678144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning/evening.&amp;nbsp; I am trying to determine from the attached file where ECM has multiple Material and those respective material have different lead times.&amp;nbsp; I would like to develop script for an expression to determine based on lead time for that ECM what is the highest lead time.&amp;nbsp; Since there are duplicates of the highest number for now it doesn't matter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 15:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633831#M678144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T15:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create expression to return the largest number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633832#M678145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont see an attached file. Can you please re-attach it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 15:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633832#M678145</guid>
      <dc:creator />
      <dc:date>2014-05-14T15:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create expression to return the largest number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633833#M678146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="209"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="90"&gt;ECM&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="56"&gt;Material&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="63"&gt;Lead time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;479894RXAERO&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;"&gt;ETN19316&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;479894RXAERO&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;"&gt;ETN93329&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;479894RXAERO&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;"&gt;RE337399&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;479894RXAERO&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;"&gt;RE556399&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;479894RXAERO&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;"&gt;RE563774&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;479894RXAERO&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;"&gt;RE572010&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;479894RXAERO&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;"&gt;RE572011&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;479894RXAERO&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;"&gt;RE572012&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 16:19:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633833#M678146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T16:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Create expression to return the largest number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633834#M678147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like attached. I created a field called RequiredFlag on the backend.&lt;/P&gt;&lt;P&gt;1 corresponds to all the materials for a particular ECM with max Lead Time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 16:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633834#M678147</guid>
      <dc:creator />
      <dc:date>2014-05-14T16:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create expression to return the largest number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633835#M678148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If in the script:&lt;BR /&gt;load&lt;BR /&gt;ECM,&lt;BR /&gt;max("Lead time") as MaxLeadTime&lt;BR /&gt;RESIDENT...&lt;BR /&gt;GROUP BY ECM;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If on the front end:&lt;BR /&gt;ECM is dimension, and the expression is max("Lead time") &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 16:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633835#M678148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T16:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Create expression to return the largest number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633836#M678149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am only using the personal addition so need the script not a QVW.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 16:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633836#M678149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T16:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create expression to return the largest number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633837#M678150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD ECM,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Material,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Lead time]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Data Source&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;Load ECM,Max([Lead time]) as Flag&lt;/P&gt;&lt;P&gt;Resident Table&lt;/P&gt;&lt;P&gt;Group by ECM;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;Load *, If([Lead time]=Flag,1,0) as RequiredResult&lt;/P&gt;&lt;P&gt;Resident Table;&lt;/P&gt;&lt;P&gt;Drop Table Table;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 16:50:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633837#M678150</guid>
      <dc:creator />
      <dc:date>2014-05-14T16:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Create expression to return the largest number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633838#M678151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;getting an error for the invalid expression.&amp;nbsp; I am adding another line in the script.&amp;nbsp; I have also renamed the field Lead time to Prod Proc LT.&amp;nbsp; the expression needs to have a rank?&amp;nbsp; so I want 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;max(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[PROD PROC LT]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Maxprodlt &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 17:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633838#M678151</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T17:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create expression to return the largest number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633839#M678152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rank is optional, most likely you don't need it.&lt;/P&gt;&lt;P&gt;As for the error - can you show this portion of the script?&amp;nbsp; Or upload the app (not too large please)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 17:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633839#M678152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T17:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Create expression to return the largest number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633840#M678153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ECM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,6) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[AE PMR ECM LCL]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ECM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[AE PMR ECM]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MATERIAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[PROD PROC LT]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[AE PMR PROD PROC LT]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[PROD PROC LT]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Maxprodlt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sorry I am not very versed in scripting development.&amp;nbsp; So just to be clear I am wanting a variable that I can use.&amp;nbsp; Typically I use list or table boxes so my intentions were that I have multiple ECM's and I was going to create a table that has the ECM and this new variable with the max Prod Proc LT. so it would look like this&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="174"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="90"&gt;ECM&lt;/TD&gt;&lt;TD class="xl63" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="84"&gt;MaxLeadtime&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;479894RXAERO&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 17:41:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633840#M678153</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T17:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create expression to return the largest number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633841#M678154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;BR /&gt;LOAD&lt;BR /&gt; Left(ECM,6) as [AE PMR ECM LCL],&lt;BR /&gt; ECM as [AE PMR ECM], &lt;BR /&gt; MATERIAL, &lt;BR /&gt; [PROD PROC LT] as [AE PMR PROD PROC LT]&lt;BR /&gt;RESIDENT (or FROM) &amp;lt;your data source&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Table) LOAD&lt;BR /&gt; [AE PMR ECM],&lt;BR /&gt; &lt;STRONG&gt;Max([AE PMR PROD PROC LT]) as Maxprodlt&lt;/STRONG&gt;&lt;BR /&gt;RESIDENT Table&lt;BR /&gt;&lt;STRONG&gt;GROUP BY [AE PMR ECM];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically it is the same as &lt;A href="https://community.qlik.com/qlik-users/92957"&gt;Ajay Prabhakaran&lt;/A&gt; suggests, just in a little different form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 17:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633841#M678154</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T17:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create expression to return the largest number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633842#M678155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I pasted the script as follows...now it tells me the table doesn't exist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;[\\frxfileserv1\ftpdown\WW_PUBLIC\Download Folder\New Product Programs-PMR 2.0\Local\RX01\AERO_PMR.XLS]&lt;BR /&gt;&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;txt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;codepage&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 1252, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;delimiter&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; '\t', &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;msq&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;LEFT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;JOIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (Table) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[AE PMR ECM]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[AE PMR PROD PROC LT]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Maxprodlt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Table&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GROUP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;BY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[AE PMR ECM]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 18:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633842#M678155</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T18:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create expression to return the largest number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633843#M678156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, I don't know what is the correct name of your table &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;In my example it is Table.&amp;nbsp; In your case - whatever you named it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 18:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633843#M678156</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T18:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create expression to return the largest number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633844#M678157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my haste I deleted the script for the naming of the variable, but once I added that back in it works exactly as I was hoping it would.&amp;nbsp; Thank you for the help.&amp;nbsp; Obviously previous to this script it was a manual process to find the largest one.&amp;nbsp; Now its one click!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 18:31:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-expression-to-return-the-largest-number/m-p/633844#M678157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T18:31:59Z</dc:date>
    </item>
  </channel>
</rss>

