<?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 table with complex aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-with-complex-aggregation/m-p/553348#M481736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;I need to make some defined view using (I think) Pivot table. Probably it should be done with aggr and rangesum functions but I can not figure out how to do it. Can anyone help?&lt;/P&gt;&lt;P&gt;So &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;the initial conditions are: two dimensions and one measure.Dimensions are data-driven so there will be more than 4 columns/rows.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;You can start from the table below:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;IMG alt="1.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/46810_1.jpg" style="width: 620px; height: 185px;" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Dimensions names: Q, F. Measure is number of customers with defined number transactions in each quarter =count(L) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;What I need now - is to make kind of aggregated count for each row:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;IMG alt="2.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/46814_2.jpg" style="width: 620px; height: 158px;" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;If you look at the first row:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;first column we should see sum for all columns in a first row=1+0+3+0=4&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;second column=4 minus all previous columns values (1)=3&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;third column=4 minus all previous column values (1+0)=3&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;forth column=4 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;minus all previous column values (1+0+3)=0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;So first row is 4-3-3-0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Any ideas? Previously thank yoou for your help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Sep 2013 08:53:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-23T08:53:53Z</dc:date>
    <item>
      <title>Pivot table with complex aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-with-complex-aggregation/m-p/553348#M481736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;I need to make some defined view using (I think) Pivot table. Probably it should be done with aggr and rangesum functions but I can not figure out how to do it. Can anyone help?&lt;/P&gt;&lt;P&gt;So &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;the initial conditions are: two dimensions and one measure.Dimensions are data-driven so there will be more than 4 columns/rows.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;You can start from the table below:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;IMG alt="1.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/46810_1.jpg" style="width: 620px; height: 185px;" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Dimensions names: Q, F. Measure is number of customers with defined number transactions in each quarter =count(L) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;What I need now - is to make kind of aggregated count for each row:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;IMG alt="2.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/46814_2.jpg" style="width: 620px; height: 158px;" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;If you look at the first row:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;first column we should see sum for all columns in a first row=1+0+3+0=4&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;second column=4 minus all previous columns values (1)=3&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;third column=4 minus all previous column values (1+0)=3&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;forth column=4 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;minus all previous column values (1+0+3)=0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;So first row is 4-3-3-0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Any ideas? Previously thank yoou for your help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 08:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-with-complex-aggregation/m-p/553348#M481736</guid>
      <dc:creator />
      <dc:date>2013-09-23T08:53:53Z</dc:date>
    </item>
  </channel>
</rss>

