<?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 Aggregation in Concat() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253268#M96005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Przemek,&lt;BR /&gt;First, both concat() and count() are aggregation functions, so you can't use one within the other witjhout aggr().&lt;BR /&gt;Next, "one dim split by another dim" is apparently not what you really want, judging by the example of the desired result.&amp;nbsp; The delimeter is comma.&lt;BR /&gt;I think that the dimension is Name, and the expression is something close to what Stefan suggests:&lt;BR /&gt;concat(aggr(Type&amp;amp;count(Date),Type),', ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Sep 2011 01:07:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-09-12T01:07:28Z</dc:date>
    <item>
      <title>Aggregation in Concat()</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253266#M96003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to build a pivot table that will show in one column aggregation result on one dim split by another dim like in the below example. I tried Concat(Type, Count(Date)) but it seems Concat() does not accept Count().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;Name, Type, Date&lt;/P&gt;&lt;P&gt;John, A, 2011-08-11&lt;/P&gt;&lt;P&gt;John, B, 2011-08-11&lt;/P&gt;&lt;P&gt;John, B, 2011-08-12 &lt;/P&gt;&lt;P&gt;David, B, 2011-07-29&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;---------&lt;/P&gt;&lt;P&gt;Name, Value&lt;/P&gt;&lt;P&gt;John, A1, B2&lt;/P&gt;&lt;P&gt;David, B1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Przemek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Sep 2011 19:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253266#M96003</guid>
      <dc:creator />
      <dc:date>2011-09-11T19:16:03Z</dc:date>
    </item>
    <item>
      <title>Aggregation in Concat()</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253267#M96004</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;concat takes up to three parameter:&lt;/P&gt;&lt;P&gt;1. expression (i.e. the values to concatenate, often used with a&amp;nbsp; field name)&lt;/P&gt;&lt;P&gt;2. delimiter&lt;/P&gt;&lt;P&gt;3. sort weight&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your second parameter Count(Date) is not a valid delimiter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concat( aggr(Type&amp;amp;Count(Date),Type) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Sep 2011 21:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253267#M96004</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-11T21:10:32Z</dc:date>
    </item>
    <item>
      <title>Aggregation in Concat()</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253268#M96005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Przemek,&lt;BR /&gt;First, both concat() and count() are aggregation functions, so you can't use one within the other witjhout aggr().&lt;BR /&gt;Next, "one dim split by another dim" is apparently not what you really want, judging by the example of the desired result.&amp;nbsp; The delimeter is comma.&lt;BR /&gt;I think that the dimension is Name, and the expression is something close to what Stefan suggests:&lt;BR /&gt;concat(aggr(Type&amp;amp;count(Date),Type),', ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 01:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253268#M96005</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-12T01:07:28Z</dc:date>
    </item>
    <item>
      <title>Aggregation in Concat()</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253269#M96006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I've checked the formula against the example and I got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John A1, B3&lt;/P&gt;&lt;P&gt;David -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 07:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253269#M96006</guid>
      <dc:creator />
      <dc:date>2011-09-12T07:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation in Concat()</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253270#M96007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi przemek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to create a pivot chart with Name verticaly and Value horizontaly&lt;/P&gt;&lt;P&gt;you just need to group by Name,Type - no need to use concat:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Load Name,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;amp;Count(Date) As Value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Resident Input&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Group By Name,Type;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the pivot chart you get:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pivot01.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/7185_pivot01.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth/gg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 07:57:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253270#M96007</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-09-12T07:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation in Concat()</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253271#M96008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, though the data model requires that to put it in chart formula.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 08:05:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253271#M96008</guid>
      <dc:creator />
      <dc:date>2011-09-12T08:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation in Concat()</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253272#M96009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure I understand what you want, but you can try this then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;_Result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;Load Name,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;amp;Count(Date) As _Value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;Resident Input&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;Group By Name,Type;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;Result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;Load Name,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concat(_Value,', ') As Value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;Resident _Result&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;Group By Name;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff;"&gt;Drop Table _Result;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth/gg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 08:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253272#M96009</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-09-12T08:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation in Concat()</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253273#M96010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try a &lt;/P&gt;&lt;P&gt;=concat(aggr(Type&amp;amp;count(Date),Type,Name),', ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(adding the Name to the aggr() dimensions).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 08:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253273#M96010</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-12T08:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation in Concat()</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253274#M96011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is it! Thank you, Stefan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 10:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-in-Concat/m-p/253274#M96011</guid>
      <dc:creator />
      <dc:date>2011-09-12T10:17:15Z</dc:date>
    </item>
  </channel>
</rss>

