<?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 Concat for Top positions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concat-for-Top-positions/m-p/231804#M83496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;BR /&gt;&lt;BR /&gt;I try to write a Concat-Function.&lt;BR /&gt;The formula works only when there is no formula in the IF-Query.&lt;BR /&gt;&lt;BR /&gt;The SID's that have a rank &amp;lt;= &lt;B&gt;ceil(count(distinct sid)*Top)&lt;/B&gt; must be connected with Concat-Formula.&lt;/P&gt;&lt;P&gt;Example:&lt;B&gt;&lt;BR /&gt;Top = 25%&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;This Formula does not work&lt;/I&gt;&lt;BR /&gt;concat(if(aggr(rank(count(sid)),id,sid)&amp;lt;=&lt;B&gt;ceil(count(distinct sid)*Top)&lt;/B&gt;,sid),', ')&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;And it works&lt;/I&gt;&lt;BR /&gt;concat(if(aggr(rank(count(sid)),id,sid)&amp;lt;=&lt;B&gt;3&lt;/B&gt;,sid),', ')&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The IF-query must work with &lt;B&gt;ceil(count(distinct sid)*Top)&lt;/B&gt; because I need it in a Chart.&lt;BR /&gt;&lt;BR /&gt;Does anyone know the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Oct 2010 07:54:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-08T07:54:04Z</dc:date>
    <item>
      <title>Concat for Top positions</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-for-Top-positions/m-p/231804#M83496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;BR /&gt;&lt;BR /&gt;I try to write a Concat-Function.&lt;BR /&gt;The formula works only when there is no formula in the IF-Query.&lt;BR /&gt;&lt;BR /&gt;The SID's that have a rank &amp;lt;= &lt;B&gt;ceil(count(distinct sid)*Top)&lt;/B&gt; must be connected with Concat-Formula.&lt;/P&gt;&lt;P&gt;Example:&lt;B&gt;&lt;BR /&gt;Top = 25%&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;This Formula does not work&lt;/I&gt;&lt;BR /&gt;concat(if(aggr(rank(count(sid)),id,sid)&amp;lt;=&lt;B&gt;ceil(count(distinct sid)*Top)&lt;/B&gt;,sid),', ')&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;And it works&lt;/I&gt;&lt;BR /&gt;concat(if(aggr(rank(count(sid)),id,sid)&amp;lt;=&lt;B&gt;3&lt;/B&gt;,sid),', ')&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The IF-query must work with &lt;B&gt;ceil(count(distinct sid)*Top)&lt;/B&gt; because I need it in a Chart.&lt;BR /&gt;&lt;BR /&gt;Does anyone know the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 07:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-for-Top-positions/m-p/231804#M83496</guid>
      <dc:creator />
      <dc:date>2010-10-08T07:54:04Z</dc:date>
    </item>
    <item>
      <title>AW:Concat for Top positions</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-for-Top-positions/m-p/231805#M83497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works well.&lt;/P&gt;&lt;P&gt;concat(if(aggr(rank(count(sid)),id,sid)&amp;lt;=&lt;B&gt;&lt;I&gt;$(=ceil(count(distinct sid)*Top),sid))&lt;/I&gt;&lt;/B&gt;,', ')&lt;/P&gt;&lt;P&gt;But if I write it this way, the top variable assigned only one value for all ID's.&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 14:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-for-Top-positions/m-p/231805#M83497</guid>
      <dc:creator />
      <dc:date>2010-10-08T14:00:17Z</dc:date>
    </item>
    <item>
      <title>AW:Concat for Top positions</title>
      <link>https://community.qlik.com/t5/QlikView/Concat-for-Top-positions/m-p/231806#M83498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here the soloution:&lt;/P&gt;&lt;P&gt;concat(if(aggr(rank(count(sid)),id,sid)&amp;lt;=&lt;B&gt;ceil( aggr(&lt;/B&gt; count(distinct total &amp;lt;id&amp;gt; sid),id,sid)*Top),sid),', ')&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;Thanks QlikTech Support (&lt;/B&gt;&lt;B&gt;Mr. D. &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;)&lt;/B&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 15:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concat-for-Top-positions/m-p/231806#M83498</guid>
      <dc:creator />
      <dc:date>2010-10-13T15:05:34Z</dc:date>
    </item>
  </channel>
</rss>

