<?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 Pivot with aggr function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-with-aggr-function/m-p/207911#M1208676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rapozzatir,&lt;/P&gt;&lt;P&gt;You can aggregate the data in the script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;T1:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Customer, Call&lt;BR /&gt;A, 1&lt;BR /&gt;B, 1&lt;BR /&gt;C, 1&lt;BR /&gt;D, 1&lt;BR /&gt;C, 1&lt;BR /&gt;D, 1&lt;BR /&gt;A, 1&lt;BR /&gt;B, 1&lt;BR /&gt;C, 1&lt;BR /&gt;D, 1&lt;BR /&gt;];&lt;BR /&gt;T2:&lt;BR /&gt;Load&lt;BR /&gt; Customer,&lt;BR /&gt; sum(Call) as CallCount&lt;BR /&gt;resident T1&lt;BR /&gt;group by Customer;&lt;BR /&gt;join&lt;BR /&gt;Load&lt;BR /&gt; CallCount,&lt;BR /&gt; count(Customer) as CustomerCount&lt;BR /&gt;resident T2&lt;BR /&gt;group by CallCount;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Then you have your CustomerCount and CallCount as in the posted example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jan 2010 05:29:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-01-06T05:29:53Z</dc:date>
    <item>
      <title>Pivot with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-with-aggr-function/m-p/207910#M1208675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;I have a Table like the one below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 96pt; border-collapse: collapse;" width="128"&gt;&lt;COLGROUP&gt;&lt;COL span="2" style="width: 48pt;" width="64" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; width: 48pt; height: 15pt; border: #d4d0c8;" width="64"&gt;customer&lt;/TD&gt;&lt;TD style="background-color: transparent; width: 48pt; border: #d4d0c8;" width="64"&gt;call&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; height: 15pt; border: #d4d0c8;"&gt;A&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; height: 15pt; border: #d4d0c8;"&gt;B&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; height: 15pt; border: #d4d0c8;"&gt;C&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; height: 15pt; border: #d4d0c8;"&gt;D&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; height: 15pt; border: #d4d0c8;"&gt;C&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; height: 15pt; border: #d4d0c8;"&gt;D&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; height: 15pt; border: #d4d0c8;"&gt;A&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; height: 15pt; border: #d4d0c8;"&gt;B&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; height: 15pt; border: #d4d0c8;"&gt;C&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; height: 15pt; border: #d4d0c8;"&gt;D&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Of course the pivot table is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 166pt; border-collapse: collapse;" width="221"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 96pt; mso-width-source: userset; mso-width-alt: 4681;" width="128" /&gt;&lt;COL style="width: 70pt; mso-width-source: userset; mso-width-alt: 3401;" width="93" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; width: 96pt; height: 15pt; border: #d4d0c8;" width="128"&gt;Customer&lt;/TD&gt;&lt;TD style="background-color: transparent; width: 70pt; border: #d4d0c8;" width="93"&gt;Count of call&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; height: 15pt; border: #d4d0c8;"&gt;A&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; height: 15pt; border: #d4d0c8;"&gt;B&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; height: 15pt; border: #d4d0c8;"&gt;C&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; height: 15pt; border: #d4d0c8;"&gt;D&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I would like to have from the first table the following result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 166pt; border-collapse: collapse;" width="221"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 96pt; mso-width-source: userset; mso-width-alt: 4681;" width="128" /&gt;&lt;COL style="width: 70pt; mso-width-source: userset; mso-width-alt: 3401;" width="93" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD height="20" style="background-color: transparent; width: 96pt; height: 15pt; border: #d4d0c8;" width="128"&gt;Count of customer&lt;/TD&gt;&lt;TD style="background-color: transparent; width: 70pt; border: #d4d0c8;" width="93"&gt;Count of call&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" height="20" style="background-color: transparent; height: 15pt; border: #d4d0c8;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" height="20" style="background-color: transparent; height: 15pt; border: #d4d0c8;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #d4d0c8;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Coul you help me?&lt;/P&gt;&lt;P&gt;Thank you in advance, regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 01:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-with-aggr-function/m-p/207910#M1208675</guid>
      <dc:creator />
      <dc:date>2010-01-06T01:26:39Z</dc:date>
    </item>
    <item>
      <title>Pivot with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-with-aggr-function/m-p/207911#M1208676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rapozzatir,&lt;/P&gt;&lt;P&gt;You can aggregate the data in the script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;T1:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Customer, Call&lt;BR /&gt;A, 1&lt;BR /&gt;B, 1&lt;BR /&gt;C, 1&lt;BR /&gt;D, 1&lt;BR /&gt;C, 1&lt;BR /&gt;D, 1&lt;BR /&gt;A, 1&lt;BR /&gt;B, 1&lt;BR /&gt;C, 1&lt;BR /&gt;D, 1&lt;BR /&gt;];&lt;BR /&gt;T2:&lt;BR /&gt;Load&lt;BR /&gt; Customer,&lt;BR /&gt; sum(Call) as CallCount&lt;BR /&gt;resident T1&lt;BR /&gt;group by Customer;&lt;BR /&gt;join&lt;BR /&gt;Load&lt;BR /&gt; CallCount,&lt;BR /&gt; count(Customer) as CustomerCount&lt;BR /&gt;resident T2&lt;BR /&gt;group by CallCount;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Then you have your CustomerCount and CallCount as in the posted example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 05:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-with-aggr-function/m-p/207911#M1208676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-06T05:29:53Z</dc:date>
    </item>
    <item>
      <title>Pivot with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-with-aggr-function/m-p/207912#M1208677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Johannes, it works!!&lt;/P&gt;&lt;P&gt;Just one more question: the filters do not work anymore with the new pivot. How can I use some variables to filter output data?&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Roberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 15:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-with-aggr-function/m-p/207912#M1208677</guid>
      <dc:creator />
      <dc:date>2010-01-08T15:02:21Z</dc:date>
    </item>
    <item>
      <title>Pivot with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-with-aggr-function/m-p/207913#M1208678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use the AGGR function to do it.&lt;/P&gt;&lt;P&gt;Create a dimension as aggr( sum( call ) , customer ) it's the number of call by customer&lt;/P&gt;&lt;P&gt;Create an expression with count(distinct customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that it'd be easier do use filter.&lt;/P&gt;&lt;P&gt;jj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 16:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-with-aggr-function/m-p/207913#M1208678</guid>
      <dc:creator />
      <dc:date>2010-01-08T16:51:14Z</dc:date>
    </item>
    <item>
      <title>Pivot with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-with-aggr-function/m-p/207914#M1208679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!! Thank you very much.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Roberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 17:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-with-aggr-function/m-p/207914#M1208679</guid>
      <dc:creator />
      <dc:date>2010-01-08T17:54:02Z</dc:date>
    </item>
  </channel>
</rss>

