<?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: Aggregate function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307514#M406806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Extract where? Script or front end object? Would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Apr 2017 11:07:32 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-04-12T11:07:32Z</dc:date>
    <item>
      <title>Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307513#M406805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="159856" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/159856_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;I want to extract the record with the lowest C_OutcomeOrder in a new table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 10:54:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307513#M406805</guid>
      <dc:creator>arpitkharkia</dc:creator>
      <dc:date>2017-04-12T10:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307514#M406806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Extract where? Script or front end object? Would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 11:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307514#M406806</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-12T11:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307515#M406807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;C_OutcomeOrder&lt;/SPAN&gt; = {'$(=Min(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;C_OutcomeOrder&lt;/SPAN&gt;))'}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;C_OutcomeOrder&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 11:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307515#M406807</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-12T11:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307516#M406808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arpit, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following expression: &lt;/P&gt;&lt;P&gt;ONLY({$&amp;lt;[Memo_Key]={"$(=SUBFIELD(CONCAT(IF(aggr(Rank(MIN(C_OutcomeOrder)),[&lt;SPAN style="font-size: 13.3333px;"&gt;Memo_Key&lt;/SPAN&gt;])&amp;lt;=1,[&lt;SPAN style="font-size: 13.3333px;"&gt;Memo_Key&lt;/SPAN&gt;]),'|',aggr(Rank(&lt;SPAN style="font-size: 13.3333px;"&gt;MIN(C_OutcomeOrder)&lt;/SPAN&gt;),[Customer AR Name])) ,'|',1))"}&amp;gt;} [&lt;SPAN style="font-size: 13.3333px;"&gt;Memo_Key&lt;/SPAN&gt;])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sorts (usinge the range function) the Memo_key by C_OutcomeOrder and then picks the first row part within the concated fields using subfield&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anton van Keep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 11:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307516#M406808</guid>
      <dc:creator>avkeep01</dc:creator>
      <dc:date>2017-04-12T11:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307517#M406809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arpit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trust that you are doing well!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer given draft version of script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14919977152605915 jive_text_macro" jivemacro_uid="_14919977152605915"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD Memo_Key, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call_Number, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C_Outcome, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date#(C_Date, 'DD/MM/YYYY') AS C_Date, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C_Time, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C_OutcomeOrder&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;AggregateFunctions.xlsx&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;INNER JOIN &lt;/P&gt;
&lt;P&gt;LatestRecord:&lt;/P&gt;
&lt;P&gt;LOAD Memo_Key, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MinString(C_OutcomeOrder) AS C_OutcomeOrder&lt;/P&gt;
&lt;P&gt;Resident Data&lt;/P&gt;
&lt;P&gt;Group By Memo_Key;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also refer the attached sample application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 11:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307517#M406809</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-04-12T11:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307518#M406810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working fine but only capturing data when the min value is 1. If for a MemoKey the min value is 3.04 its not showing. Help appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 12:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307518#M406810</guid>
      <dc:creator>arpitkharkia</dc:creator>
      <dc:date>2017-04-12T12:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307519#M406811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here, The condition we will give only Min. Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be you forget Arithmetic here. 1 and 3.04 - Min value is 1 itself. Don't forget basics&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 12:04:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307519#M406811</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-12T12:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307520#M406812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah right. may be this will help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 12:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307520#M406812</guid>
      <dc:creator>arpitkharkia</dc:creator>
      <dc:date>2017-04-12T12:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307521#M406813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is the case, You don't require Set Analysis at all. Just use sample Aggregation &lt;STRONG&gt;Min(C_OutcomeOrder)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(Min(C_OutcomeOrder), ChartDim1, ChartDim2,....)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 12:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307521#M406813</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-12T12:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307522#M406814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FirstSortedValue() like in attached sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/159876_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 12:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/1307522#M406814</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-04-12T12:19:59Z</dc:date>
    </item>
  </channel>
</rss>

