<?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 Set analysis substitute for the Above() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-substitute-for-the-Above/m-p/167582#M39103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have gotten something like this to work before, but the whole thing has to be nested in two places; in the outer formula as well as the set definition. This may not work out of the gate, but if you play with it (specifically the level to which you nest in the set definition), it should work for you.&lt;/P&gt;&lt;P&gt;Sum(aggr(Sum({&amp;lt;Year = {'=aggr(num(Year) - 1, Year)'}&amp;gt;} Sales), Year))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Mar 2010 16:32:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-04T16:32:02Z</dc:date>
    <item>
      <title>Set analysis substitute for the Above()</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-substitute-for-the-Above/m-p/167579#M39100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;Hi Guys,&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;I'm looking for a set analysis substitute for the &lt;B&gt;Above()&lt;/B&gt; inter chart function.&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;Tasking as an example: &lt;B&gt;Above&lt;/B&gt;&lt;B style="mso-bidi-font-weight: normal;"&gt;(Sum&lt;/B&gt; (Sales))&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;In a one dimension (year) table like this:&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;B style="mso-bidi-font-weight: normal;"&gt;YEAR&lt;/B&gt; SALES ABOVE&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;2006 506 -&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;2007 234 506&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;2008 456 234&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;2009 569 456&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;2010 889 569&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;The syntax I have in mind would look like this:&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;Sum({&amp;lt;Year = {$(=(num(Year) - 1)}&amp;gt;} Sales)&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;Of course this returns ZERO everywhere, since the values are excluded by the table dimension itself. What would be the best way to get around that?&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;Any hint in the right direction is appreciated. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 22:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-substitute-for-the-Above/m-p/167579#M39100</guid>
      <dc:creator />
      <dc:date>2010-03-03T22:15:42Z</dc:date>
    </item>
    <item>
      <title>Set analysis substitute for the Above()</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-substitute-for-the-Above/m-p/167580#M39101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A set analysis set is evaluated once for the entire chart, not once for each line of the chart. You can't do this with set analysis.&lt;/P&gt;&lt;P&gt;I assume there's some reason you can't just use above()? There are other solutions, but above() is the easy one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Mar 2010 22:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-substitute-for-the-Above/m-p/167580#M39101</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-03-03T22:30:26Z</dc:date>
    </item>
    <item>
      <title>Set analysis substitute for the Above()</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-substitute-for-the-Above/m-p/167581#M39102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm. Makes sense...&lt;/P&gt;&lt;P&gt;Well, as you guessed it, the idea is a little more complicated, this is just the last piece of the puzzle I need. Let me try to explain it in simple terms.&lt;/P&gt;&lt;P&gt;The idea is create a 2 dimensions pivot table which uses a rangeavg() of those sales ratios (year on previous year), and I have to be able to slice and dice it any direction, so script pre-aggr is out of the question...&lt;/P&gt;&lt;P&gt;Something along the lines of: rangeavg([2006 sales / 2005 sales], [2007 sales / 2006 sales], [2008 sales / 2007 sales]) * constant_XYZ = Value ABC. And I want to create a matrix of those "Value ABC" (in a pivot table).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 15:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-substitute-for-the-Above/m-p/167581#M39102</guid>
      <dc:creator />
      <dc:date>2010-03-04T15:42:52Z</dc:date>
    </item>
    <item>
      <title>Set analysis substitute for the Above()</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-substitute-for-the-Above/m-p/167582#M39103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have gotten something like this to work before, but the whole thing has to be nested in two places; in the outer formula as well as the set definition. This may not work out of the gate, but if you play with it (specifically the level to which you nest in the set definition), it should work for you.&lt;/P&gt;&lt;P&gt;Sum(aggr(Sum({&amp;lt;Year = {'=aggr(num(Year) - 1, Year)'}&amp;gt;} Sales), Year))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 16:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-substitute-for-the-Above/m-p/167582#M39103</guid>
      <dc:creator />
      <dc:date>2010-03-04T16:32:02Z</dc:date>
    </item>
    <item>
      <title>Set analysis substitute for the Above()</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-substitute-for-the-Above/m-p/167583#M39104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aaron, your reply seems insightful, but I just can't get the gispt of it...&lt;/P&gt;&lt;P&gt;But heh, in the mean time I found a way to make it work, by simply doing a &lt;B&gt;&lt;I&gt;one field data island&lt;/I&gt;&lt;/B&gt; representing the years, and build my PIVOT using the &lt;I&gt;&lt;B&gt;IslandYear&lt;/B&gt;&lt;/I&gt; field, coupled with set analysis &lt;B&gt;&lt;I&gt;only(IslandYear) - 1&lt;/I&gt;&lt;/B&gt; statements.&lt;/P&gt;&lt;P&gt;In short, I'm just using the cartesian effect of unlinked field, coupled with dynamic set analysis expressions which reduce the data by using the isolated field. Works pretty good.&lt;/P&gt;&lt;P&gt;It seems that lately, I've been solving my challenges mainly with data islands, must be something to them...&lt;/P&gt;&lt;P&gt;Anyway, when in doubt: use a data island.&lt;/P&gt;&lt;P&gt;Cheers, and 'til next time, and thanks for playing guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 23:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-substitute-for-the-Above/m-p/167583#M39104</guid>
      <dc:creator />
      <dc:date>2010-03-05T23:36:12Z</dc:date>
    </item>
    <item>
      <title>Set analysis substitute for the Above()</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-substitute-for-the-Above/m-p/167584#M39105</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 &lt;B&gt;Total&lt;/B&gt; in ur expression, so because of the dimension it will never give zero but again it will give total for the year &amp;amp; the selection won't work in that case. And whatever condition u need to give needs to be give in the set Analysis expression.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 07:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-substitute-for-the-Above/m-p/167584#M39105</guid>
      <dc:creator>amars</dc:creator>
      <dc:date>2011-03-09T07:18:04Z</dc:date>
    </item>
  </channel>
</rss>

