<?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: Adding pivot table dimentions together in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-pivot-table-dimentions-together/m-p/383887#M143300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a few ways to do this, you can simply write "Column(2)/Column(3)" to divide the second column with the third, this is a bit unstable if you start moving columns around or in this case you add more years...&lt;/P&gt;&lt;P&gt;You can also use Set Analysis to compare different values with each other. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;COUNT({$&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;} ClientID) /COUNT({$&amp;lt;Year={$(=Max(Year))}&amp;gt;} ClientID) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would divide 2011 with 2012&amp;nbsp; (if you had more years then you would compare the max value of year with the previous year ie. 2012 - 1 = 2011 or if you selected 2011 then it would be 2011-1 = 2010). Check out the help or &lt;/P&gt;&lt;P&gt;comunity for more info on Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2012 14:18:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-09-04T14:18:29Z</dc:date>
    <item>
      <title>Adding pivot table dimentions together</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-pivot-table-dimentions-together/m-p/383886#M143299</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;I cant seem to do something I thought would be quite simple. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do caluclations on 2 coulmns within a pivot table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 490px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Month&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="98"&gt;Year&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="98"&gt;2011&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="98"&gt;2012&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="98"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Jun&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;80&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;41&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;May&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;118&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;52&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Feb&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;19&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;41&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Aug&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;48&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;18&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Nov&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;44&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;-&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Jul&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;44&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;47&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Apr&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;23&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;66&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Oct&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;60&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;-&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Mar&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;14&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;58&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Dec&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;34&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;-&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Sep&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;57&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;-&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Jan&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;7&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;38&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like a column at the end that can work a percentage out. This is quite straightforward in excel, but cant work out how to do it in QlikView&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have 2 dimentions, Month and Year, and 1 expression which is COUNT(ClientID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 13:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-pivot-table-dimentions-together/m-p/383886#M143299</guid>
      <dc:creator />
      <dc:date>2012-09-04T13:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding pivot table dimentions together</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-pivot-table-dimentions-together/m-p/383887#M143300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a few ways to do this, you can simply write "Column(2)/Column(3)" to divide the second column with the third, this is a bit unstable if you start moving columns around or in this case you add more years...&lt;/P&gt;&lt;P&gt;You can also use Set Analysis to compare different values with each other. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;COUNT({$&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;} ClientID) /COUNT({$&amp;lt;Year={$(=Max(Year))}&amp;gt;} ClientID) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would divide 2011 with 2012&amp;nbsp; (if you had more years then you would compare the max value of year with the previous year ie. 2012 - 1 = 2011 or if you selected 2011 then it would be 2011-1 = 2010). Check out the help or &lt;/P&gt;&lt;P&gt;comunity for more info on Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 14:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-pivot-table-dimentions-together/m-p/383887#M143300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-04T14:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding pivot table dimentions together</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-pivot-table-dimentions-together/m-p/383888#M143301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll show the secret&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Headers:&lt;/P&gt;&lt;P&gt;LOAD distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year as YearHeader&lt;/P&gt;&lt;P&gt;Resident SomeTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(Headers)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Percentage' as YearHeader&lt;/P&gt;&lt;P&gt;Autogenerate (1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use&amp;nbsp; YearHeader instead of Year as dimension.&lt;/P&gt;&lt;P&gt;Correct your expression so that for&amp;nbsp; YearHeader = 'Percentage' it returns the desired percentage.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 15:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-pivot-table-dimentions-together/m-p/383888#M143301</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-04T15:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding pivot table dimentions together</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-pivot-table-dimentions-together/m-p/383889#M143302</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;Would you be able to attach an example. I've tried doing it and read help files, but if I put another expression in I get 2 per year and the nex expression just has a '-'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 15:47:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-pivot-table-dimentions-together/m-p/383889#M143302</guid>
      <dc:creator />
      <dc:date>2012-09-04T15:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adding pivot table dimentions together</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-pivot-table-dimentions-together/m-p/383890#M143303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you modify the script and create YearHeader ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 15:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-pivot-table-dimentions-together/m-p/383890#M143303</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-04T15:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding pivot table dimentions together</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-pivot-table-dimentions-together/m-p/383891#M143304</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;You posted that as I was posting mine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the script has confused me a bit as I already a bit of manipulating my data in the script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Year is taken from a date so in my load script i do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 1;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;TEXT&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RTTDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'YYYY')) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 15:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-pivot-table-dimentions-together/m-p/383891#M143304</guid>
      <dc:creator />
      <dc:date>2012-09-04T15:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding pivot table dimentions together</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-pivot-table-dimentions-together/m-p/383892#M143305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add the lines that I suggested above.&lt;/P&gt;&lt;P&gt;Replace 'SomeTable' with your table name from where you copied the string to your post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 16:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-pivot-table-dimentions-together/m-p/383892#M143305</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-04T16:08:40Z</dc:date>
    </item>
  </channel>
</rss>

