<?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: Pivot Table Dimension (Above expression) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Dimension-Above-expression/m-p/1051232#M352848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if i have a list box to choose every year then mostly Jan will not be able to compare with the previous year Dec, did i get what you said correctly? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jan 2016 02:31:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-27T02:31:31Z</dc:date>
    <item>
      <title>Pivot Table Dimension (Above expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Dimension-Above-expression/m-p/1051228#M352844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pic 1&lt;IMG alt="Pivot a.PNG" class="jive-image image-1" src="/legacyfs/online/112285_Pivot a.PNG" style="height: auto;" /&gt; &lt;/P&gt;&lt;P&gt;Pic 2&lt;IMG alt="pivot b.PNG" class="jive-image image-2" src="/legacyfs/online/112292_pivot b.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a question, when i change the Dimension of Month From Row to Column the Background Colour Expression is wrong.&lt;/P&gt;&lt;P&gt;The results in Pic 1 i posted is what i wanted, but i want to remain the correct colouring but the Month would be display on the Column instead of Row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression for the Background Colour :&lt;/P&gt;&lt;P&gt;if(sum(BAL) &amp;gt; Above(sum(AL)), rgb(51,255,51), &lt;/P&gt;&lt;P&gt;if(sum(BAL) = Above(sum(BAL)), rgb(255,255,102), &lt;/P&gt;&lt;P&gt;if(sum(BAL) &amp;lt; Above(sum(BAL)),rgb(255,51,51), rgb(255,255,255))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 06:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Dimension-Above-expression/m-p/1051228#M352844</guid>
      <dc:creator />
      <dc:date>2016-01-22T06:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Dimension (Above expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Dimension-Above-expression/m-p/1051229#M352845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you pivot Month dimension to the top, you need to change Above() to Before():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(sum(BAL) &amp;gt; &lt;STRONG&gt;Before&lt;/STRONG&gt;(sum(AL)), rgb(51,255,51),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(sum(BAL) = &lt;STRONG&gt;Before&lt;/STRONG&gt;(sum(BAL)), rgb(255,255,102),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(sum(BAL) &amp;lt; &lt;STRONG&gt;Before&lt;/STRONG&gt;(sum(BAL)),rgb(255,51,51), rgb(255,255,255))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jan 2016 14:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Dimension-Above-expression/m-p/1051229#M352845</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-23T14:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Dimension (Above expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Dimension-Above-expression/m-p/1051230#M352846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, it works. &lt;/P&gt;&lt;P&gt;With this formula does Jan 2014 compare with Dec 2013 itself too?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 03:43:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Dimension-Above-expression/m-p/1051230#M352846</guid>
      <dc:creator />
      <dc:date>2016-01-26T03:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Dimension (Above expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Dimension-Above-expression/m-p/1051231#M352847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only if you have both dimension values listed in your table, Dec 2013 left from Jan 2014.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Dimension-Above-expression/m-p/1051231#M352847</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-26T17:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Dimension (Above expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Dimension-Above-expression/m-p/1051232#M352848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if i have a list box to choose every year then mostly Jan will not be able to compare with the previous year Dec, did i get what you said correctly? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 02:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Dimension-Above-expression/m-p/1051232#M352848</guid>
      <dc:creator />
      <dc:date>2016-01-27T02:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Dimension (Above expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Dimension-Above-expression/m-p/1051233#M352849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not if you just use above expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you can achieve what I think you want by using advanced aggregation, something along the lines Elif Tutuk described here (in the very last example):&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2787"&gt;Accumulative Sums&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background-color: #f5faf0;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background-color: #f5faf0;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background-color: #f5faf0;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background-color: #f5faf0;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background-color: #f5faf0;"&gt;rangesum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background-color: #f5faf0;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background-color: #f5faf0;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background-color: #f5faf0;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background-color: #f5faf0;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background-color: #f5faf0;"&gt;( {$&amp;lt;Month&amp;gt;}&amp;nbsp; Sales),0,12) ),&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: maroon; background-color: #f5faf0;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background-color: #f5faf0;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take care, that when using chart inter record functions inside the aggr(), you need to use above() / below(), even when your Month dimension is pivoted in the chart. &lt;/P&gt;&lt;P&gt;You also need to take care that the Load order of the relevant aggr() dimensions (Month in this case) is sorted chronological.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read also&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4418"&gt;Pitfalls of the Aggr function&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You see, it's probably possible, but not a trivial one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you can again look at the first link in this reply or &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and prepare the link to the values (of Previous Month) you need to look up in the data model. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 10:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Dimension-Above-expression/m-p/1051233#M352849</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-27T10:19:38Z</dc:date>
    </item>
  </channel>
</rss>

