<?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 Rank Function in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348849#M1170915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking to Rank Rejection reasons as per the frequency they occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the Rejection reasons loading from an excel spreadsheet , where the rejection reasons are all listed in one cell - so I have split out each reason on load using the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;[Rejection Reasons]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;','&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;[Rejection Reasons]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;','&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))) &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;as ReasonSub&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;I now would like to rank it in the script ,as I do not want the rankings to change when certain filters are selected in the chart .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Can anyone advise if this can be done and if so any pointers greatly appreciated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2012 16:11:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-12T16:11:01Z</dc:date>
    <item>
      <title>Rank Function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348849#M1170915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking to Rank Rejection reasons as per the frequency they occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the Rejection reasons loading from an excel spreadsheet , where the rejection reasons are all listed in one cell - so I have split out each reason on load using the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;[Rejection Reasons]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;','&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;[Rejection Reasons]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;','&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))) &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;as ReasonSub&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;I now would like to rank it in the script ,as I do not want the rankings to change when certain filters are selected in the chart .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Can anyone advise if this can be done and if so any pointers greatly appreciated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 16:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348849#M1170915</guid>
      <dc:creator />
      <dc:date>2012-07-12T16:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348850#M1170916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need to do it in the script, you can try it like this (assuming you want a rank by count of reasons):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Details:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ReasonSub&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;B&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TmpRank:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ReasonSub, count(ReasonSub) as Count, rank(count(ReasonSub)) as Rank2 resident Details group by ReasonSub;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Rank:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *, recno() as Rank Resident TmpRank order by Count desc;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop Table TmpRank;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 16:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348850#M1170916</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-12T16:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348851#M1170917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Swuehl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im getting an error stating that Ran is not a valid function !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions /&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 08:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348851#M1170917</guid>
      <dc:creator />
      <dc:date>2012-07-13T08:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348852#M1170918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, posted the wrong snippet, just remove the Rank2 calculation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;EM&gt;TmpRank:&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;EM&gt;LOAD ReasonSub, count(ReasonSub) as Count&amp;nbsp; resident Details group by ReasonSub;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 08:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348852#M1170918</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-13T08:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348853#M1170919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not coming back with an error but the answers are incorrect. I'm not really sure where its getting it from&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This a part of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;is my script&amp;nbsp; , can you see where I may have gone wrong ?&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;Input:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;Load&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;applyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;'RejectMap'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ReasonSubs&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;()) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ADFCats;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Customer Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[ADF Customer Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;keepchar&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Rejection Reasons]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;','&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;NoOfReasons&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Rejection Reasons]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;','&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)))=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;''&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Rejection Reasons]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;','&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)))) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ReasonSubs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;&lt;S&gt;&lt;/S&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;biff&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;header&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;is&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;3&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;lines&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;table&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;is&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ADF$&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;AllADF:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;recno&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;() &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;RecID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Time received]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Time approved / declined]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Date commenced]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Time commenced]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Date received by ADF]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;Weekday&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Date received by ADF]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ADFDay&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Date received by ADF]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ADFDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Date received by ADF]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ADFMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Date received by ADF]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ADFWeek&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Date received by ADF]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ADFYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;WEEKEND&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Date received by ADF]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;AS&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;WEEKENDING&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Date closed]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Customer Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[ADF Customer Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;Branch&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[ADF Branch]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Parent]&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[ADF Parent NSC]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Account Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Parent]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Account Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;'00000000'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;Value&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ACCOUNTNUMBER&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Sector Code]&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[ADF Sector Code]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Approved? N/Y]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Approved? N/Y]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;'Yes'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;'Approved'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;'Declined'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Approved/Declined]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Rejection Reasons]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;','&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Rejection Reasons]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;','&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Rejection Reasons]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Rejection Reasons]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;'ADF'&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;Activity&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;index&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Rejection Reasons]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;','&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, -&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; )=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;'0'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;'No'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;'Yes'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;Unique&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Date closed]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;interval&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;time&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;now&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;'hh:mm:ss.fff'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) - (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Date received by ADF]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;+&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Time received]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) )) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;OpenTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ReceivedTM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;CommenceTM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ClosedTM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[Turnaround Time]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;&lt;S&gt;&lt;/S&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;biff&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;header&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;is&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;3&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;lines&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;table&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;is&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ADF$&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;Load&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;*&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;INLINE&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;TmpRank:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ReasonSubs&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ReasonSubs&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ReasonSubCount&lt;/SPAN&gt;&amp;nbsp; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;resident&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;Input&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;group&lt;/STRONG&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;by&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ReasonSubs;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;Rank:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: purple; font-family: 'Courier New';"&gt;recno&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;() &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;Rank&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;Resident&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;TmpRank&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;order&lt;/STRONG&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;by&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;ReasonSubCount&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;desc;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;drop&lt;/STRONG&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;Table&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;EM&gt;TmpRank;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 09:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348853#M1170919</guid>
      <dc:creator />
      <dc:date>2012-07-13T09:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348854#M1170920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this should not be part of your script, try removing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;Load&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;*&lt;/SPAN&gt; &lt;STRONG style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;INLINE&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 09:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348854#M1170920</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-13T09:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348855#M1170921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry that was just a pasting issue in the actual script its&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;Load&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;*&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;INLINE&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;reportID, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;Volume MIS]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt; ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;I use it to show/Hide certain charts &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;Any other idea what it might be !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;Thanks again for your help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;&lt;BR /&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 09:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348855#M1170921</guid>
      <dc:creator />
      <dc:date>2012-07-13T09:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348856#M1170922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what do you mean with 'the answers are incorrect'? It's always more than helpful to tell us what you get in detail and what you expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see one possible issue since you are loading a customer name. So I assume that you need to calculate your rank per customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my example, it could look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Details:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ReasonSub, Customer&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A,1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A,1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;B,1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C,1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C,1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C,1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A,2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;B,2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;B,2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;B,2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C,2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C,2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TmpRank:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Customer, ReasonSub, count(ReasonSub) as Count resident Details group by Customer, ReasonSub;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Rank:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *, autonumber(recno(),Customer) as Rank Resident TmpRank order by Customer, Count desc;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop Table TmpRank, Details;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 09:49:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348856#M1170922</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-13T09:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348857#M1170923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the script as I pasted it in , this is the chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="507"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl22" height="19" width="195"&gt;ReasonSubs&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none;" width="130"&gt;Number of Rejections&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none;" width="98"&gt;Rank&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none;" width="84"&gt;Correct&amp;nbsp; Rank&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="19" style="border-top: medium none;"&gt;Incorrect Docket&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;"&gt;363&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="19" style="border-top: medium none;"&gt;Fire Damage&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;"&gt;150&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-top: medium none; border-left: medium none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="19" style="border-top: medium none;"&gt;Under use&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;"&gt;142&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-top: medium none; border-left: medium none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="19" style="border-top: medium none;"&gt;Bad Rate&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top: medium none; border-left: medium none;"&gt;123&lt;/TD&gt;&lt;TD align="right" class="xl27" style="border-top: medium none; border-left: medium none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-top: medium none; border-left: medium none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="19" style="border-top: medium none;"&gt;Trade Green&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top: medium none; border-left: medium none;"&gt;118&lt;/TD&gt;&lt;TD align="right" class="xl27" style="border-top: medium none; border-left: medium none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-top: medium none; border-left: medium none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="19" style="border-top: medium none;"&gt;Knife Sharp&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;"&gt;112&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-top: medium none; border-left: medium none;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So Rank is the result and Correct Rank is the desired result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be honest Im not too concerned about ranking at customer level , I just want to see the most popular rejection reasons &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the chart I used expression&lt;/P&gt;&lt;P&gt;rank(sum({$&amp;lt;[Approved? N/Y] = {"*No*"}&amp;gt;}Numbers),ReasonSubs,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this worked fine - but I really would like to show the ranking whilst not effected by filters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #800080; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt; color: #800080;"&gt;&lt;STRONG style="color: #800080; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 10:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348857#M1170923</guid>
      <dc:creator />
      <dc:date>2012-07-13T10:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348858#M1170924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I don't really get what you are after. Please provide a small sample app together with your expected result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 10:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348858#M1170924</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-13T10:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348859#M1170925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the script as I pasted it in , this is the chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="507"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl22" height="19" width="195"&gt;ReasonSubs&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none;" width="130"&gt;Number of Rejections&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none;" width="98"&gt;Rank&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none;" width="84"&gt;Correct&amp;nbsp; Rank&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="19" style="border-top: medium none;"&gt;Incorrect Docket&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;"&gt;363&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="19" style="border-top: medium none;"&gt;Fire Damage&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;"&gt;150&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-top: medium none; border-left: medium none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="19" style="border-top: medium none;"&gt;Under use&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;"&gt;142&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-top: medium none; border-left: medium none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="19" style="border-top: medium none;"&gt;Bad Rate&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top: medium none; border-left: medium none;"&gt;123&lt;/TD&gt;&lt;TD align="right" class="xl27" style="border-top: medium none; border-left: medium none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-top: medium none; border-left: medium none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="19" style="border-top: medium none;"&gt;Trade Green&lt;/TD&gt;&lt;TD align="right" class="xl26" style="border-top: medium none; border-left: medium none;"&gt;118&lt;/TD&gt;&lt;TD align="right" class="xl27" style="border-top: medium none; border-left: medium none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-top: medium none; border-left: medium none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="19" style="border-top: medium none;"&gt;Knife Sharp&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;"&gt;112&lt;/TD&gt;&lt;TD align="right" class="xl24" style="border-top: medium none; border-left: medium none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-top: medium none; border-left: medium none;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So Rank is the result and Correct Rank is the desired result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be honest Im not too concerned about ranking at customer level , I just want to see the most popular rejection reasons &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the chart I used expression&lt;/P&gt;&lt;P&gt;rank(sum({$&amp;lt;[Approved? N/Y] = {"*No*"}&amp;gt;}Numbers),ReasonSubs,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this worked fine - but I really would like to show the ranking whilst not effected by filters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #800080; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt; color: #800080;"&gt;&lt;STRONG style="color: #800080; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 10:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348859#M1170925</guid>
      <dc:creator />
      <dc:date>2012-07-13T10:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348860#M1170926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rank function is available for use in chart expressions only.It is not available in load scripts. In load script, you may use Order By.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2012 16:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348860#M1170926</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2012-07-14T16:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348861#M1170927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am slow from time to time, but I am not seeing how just repeating your message helps me here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your expression&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;rank(sum({$&amp;lt;[Approved? N/Y] = {"*No*"}&amp;gt;}Numbers),ReasonSubs,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do you derive &lt;EM&gt;Numbers&lt;/EM&gt;? Can't see it in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does the ReasonSubsCount show when compared to your Number of Rejections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand your request correctly, I still think that calculating the rank in the script should be possible using a count (or whatever appropriate) in a group by load and the assign a rank number in a order by load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's all about creating a rank expression in the front end that is not sensitive to selections, you can try using set analysis (set identifier 1). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jul 2012 15:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348861#M1170927</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-15T15:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348862#M1170928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OMG Swuehl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I didnt mean to repost ( that must look rude - sorry !!!) Sometimes my I get errors when posting a message onto the forum and then it posts twice ,&lt;/P&gt;&lt;P&gt; Let me have a look at making a dash that explains my issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 07:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348862#M1170928</guid>
      <dc:creator />
      <dc:date>2012-07-16T07:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348863#M1170929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time on this -- the issue is with my data model &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have rewrite most of the script to accomodate what I require now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your posts they will deffo assist when I go to redesign the dash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 10:52:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348863#M1170929</guid>
      <dc:creator />
      <dc:date>2012-07-16T10:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348864#M1170930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time on this -- the issue is with my data model &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have rewrite most of the script to accomodate what I require now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your posts they will deffo assist when I go to redesign the dash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 10:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function-in-load-script/m-p/348864#M1170930</guid>
      <dc:creator />
      <dc:date>2012-07-16T10:54:35Z</dc:date>
    </item>
  </channel>
</rss>

