<?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: Advanced aggregation in list boxes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Advanced-aggregation-in-list-boxes/m-p/453669#M490288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you just use a list box with 'description' field ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Sep 2012 15:25:31 GMT</pubDate>
    <dc:creator>whiteline</dc:creator>
    <dc:date>2012-09-28T15:25:31Z</dc:date>
    <item>
      <title>Advanced aggregation in list boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-aggregation-in-list-boxes/m-p/453667#M490286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another exercise for well experienced qlikview users ... I kindly ask your help concerning the issue bellow :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;id, kunnr, parnr, description,&lt;/P&gt;&lt;P&gt;1, 1, 10, wrong_desc&lt;/P&gt;&lt;P&gt;2, 1, 20, wrong_desc&lt;/P&gt;&lt;P&gt;3, 1, 30, wrong_desc&lt;/P&gt;&lt;P&gt;4, 1, 40, right_desc&lt;/P&gt;&lt;P&gt;5, 2, 10, wrong_desc&lt;/P&gt;&lt;P&gt;6, 2, 20, right_desc];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a one-click in a list box, I would like to select id=4 and 6. It corresponds to cases where, for a given kunnr, parnr is maximal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If one can redirected me to another related post, I would also greatly appreciate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adrien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 15:09:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-aggregation-in-list-boxes/m-p/453667#M490286</guid>
      <dc:creator />
      <dc:date>2012-09-28T15:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced aggregation in list boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-aggregation-in-list-boxes/m-p/453668#M490287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have loaded this script, you could add a new listbox...&lt;/P&gt;&lt;P&gt;There do NOT select a "field" but an expression (is the lowest option in the field list...) on listbox tabpage 'general' dropdownlist 'field'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that expression box, paste this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(id=4 or id=6,'4 and 6' ,'others')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will result in a listbox with 2 options&lt;/P&gt;&lt;P&gt;- 4 and 6&lt;/P&gt;&lt;P&gt;- others&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can modify it to your wishes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(if this is what you want, you could also solve this in the loadscript. The ifstatement can be put there as well)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 15:15:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-aggregation-in-list-boxes/m-p/453668#M490287</guid>
      <dc:creator />
      <dc:date>2012-09-28T15:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced aggregation in list boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-aggregation-in-list-boxes/m-p/453669#M490288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you just use a list box with 'description' field ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 15:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-aggregation-in-list-boxes/m-p/453669#M490288</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-28T15:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced aggregation in list boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-aggregation-in-list-boxes/m-p/453670#M490289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The example is simple just to be clear enough. What I'm looking for is an expression in listbox that will select only the primary keys (field named 'id' in the example) for which the PARNR for a given KUNNR is maximal.&lt;/P&gt;&lt;P&gt;Something in the spirit of &lt;/P&gt;&lt;P&gt;if(parnr=aggr(max(parnr),kunnr),'1','0'). &lt;/P&gt;&lt;P&gt;(But this latter is a non-sense ; I have just given it as an illustration of the idea).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 16:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-aggregation-in-list-boxes/m-p/453670#M490289</guid>
      <dc:creator />
      <dc:date>2012-09-28T16:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced aggregation in list boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-aggregation-in-list-boxes/m-p/453671#M490290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this is what you are looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=aggr(if(parnr=max(total&amp;lt;kunnr&amp;gt; parnr),'Select max'),kunnr,id)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=aggr(if(parnr=max(total&amp;lt;kunnr&amp;gt; parnr),id),kunnr,id)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 16:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-aggregation-in-list-boxes/m-p/453671#M490290</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-09-28T16:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced aggregation in list boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-aggregation-in-list-boxes/m-p/453672#M490291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try it on monday. Thanks ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit : Well, it works !&amp;nbsp; Herr Wuehl is really impressive ! Now I'm going to take some time to understand why this answer is just working.. One can find as attached a qlikview file showing the example + result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 16:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-aggregation-in-list-boxes/m-p/453672#M490291</guid>
      <dc:creator />
      <dc:date>2012-09-28T16:56:35Z</dc:date>
    </item>
  </channel>
</rss>

