<?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 Issue with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis/m-p/349876#M494579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a chart that shows a yearly trend and for that I am using set analysis on the year:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year=&amp;gt;}_profit) &lt;/P&gt;&lt;P&gt;/ sum({$&amp;lt;Year=&amp;gt;}_assets)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have an issue with creating the correct denominator. In business terms the correct calculation is:&lt;/P&gt;&lt;P&gt;(Assets current year + Assets last year)/2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the yearly trend this means:&lt;/P&gt;&lt;P&gt;2009: (assets09 + assets08)/2&lt;/P&gt;&lt;P&gt;2010: (assets10 + assets09)/2&lt;/P&gt;&lt;P&gt;2011: (assets11 + assets10)/2&lt;/P&gt;&lt;P&gt;Any ideas, how to set up the expression, so that I can show the yearly trends for above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2012 10:35:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-13T10:35:57Z</dc:date>
    <item>
      <title>Issue with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis/m-p/349876#M494579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a chart that shows a yearly trend and for that I am using set analysis on the year:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year=&amp;gt;}_profit) &lt;/P&gt;&lt;P&gt;/ sum({$&amp;lt;Year=&amp;gt;}_assets)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have an issue with creating the correct denominator. In business terms the correct calculation is:&lt;/P&gt;&lt;P&gt;(Assets current year + Assets last year)/2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the yearly trend this means:&lt;/P&gt;&lt;P&gt;2009: (assets09 + assets08)/2&lt;/P&gt;&lt;P&gt;2010: (assets10 + assets09)/2&lt;/P&gt;&lt;P&gt;2011: (assets11 + assets10)/2&lt;/P&gt;&lt;P&gt;Any ideas, how to set up the expression, so that I can show the yearly trends for above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 10:35:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis/m-p/349876#M494579</guid>
      <dc:creator />
      <dc:date>2012-03-13T10:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis/m-p/349877#M494580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;Year={'2009'}&amp;gt;}_assets)+sum({$&amp;lt;Year={'2010'}&amp;gt;}_assets))/2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 10:47:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis/m-p/349877#M494580</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2012-03-13T10:47:40Z</dc:date>
    </item>
    <item>
      <title>Issue with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis/m-p/349878#M494581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your dimension is year, try using one of the chart inter record functions, above() or below() (depending on your sort order) or before() and after() (if dimension is pivoted in a pivot table):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year=&amp;gt;}_profit) &lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt;"&gt;/ (sum({$&amp;lt;Year=&amp;gt;}_assets) + above(sum({$&amp;lt;Year=&amp;gt;}_assets)) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 10:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis/m-p/349878#M494581</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-13T10:51:20Z</dc:date>
    </item>
    <item>
      <title>Issue with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis/m-p/349879#M494582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 10:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-set-analysis/m-p/349879#M494582</guid>
      <dc:creator />
      <dc:date>2012-03-13T10:58:54Z</dc:date>
    </item>
  </channel>
</rss>

