<?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 Indirect set analysis help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Indirect-set-analysis-help/m-p/203230#M60651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anybody have an idea on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Nov 2010 10:13:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-29T10:13:29Z</dc:date>
    <item>
      <title>Indirect set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-set-analysis-help/m-p/203229#M60650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to plot year-1 sales by quarter on a graph using the following expression:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Year] = P({$}[Y&amp;amp;Q-1 Key]), [Y&amp;amp;Q Key]=, [Year &amp;amp; Quarter]=, [Quarter]=&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;So, when a year is selected from the calendar, I want to display the sum of the previous year's sales by quarter.&lt;/P&gt;&lt;P&gt;My date dimensions are as follows:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2942_sourceID:2942" /&gt;&lt;/P&gt;&lt;P&gt;I've switched off the other data dimensions in my expression - I'm not sure if that is necessary - it didn't make any difference.&lt;/P&gt;&lt;P&gt;I know I could use Year=Year-1 in a set but I intend to use the solution in a chart with a continuous x axis i.e. 2007 Q1 - 2010 Q4 which would require the user selecting 2007, 8, 9 and 10 from the calendar so Year-1 won't work.&lt;/P&gt;&lt;P&gt;Please can someone tell me what I'm doing wrong?&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Nov 2010 12:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-set-analysis-help/m-p/203229#M60650</guid>
      <dc:creator />
      <dc:date>2010-11-26T12:51:41Z</dc:date>
    </item>
    <item>
      <title>Indirect set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-set-analysis-help/m-p/203230#M60651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anybody have an idea on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 10:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-set-analysis-help/m-p/203230#M60651</guid>
      <dc:creator />
      <dc:date>2010-11-29T10:13:29Z</dc:date>
    </item>
    <item>
      <title>Indirect set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-set-analysis-help/m-p/203231#M60652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not pretty sure about what you really want, but maybe you're gonna need "inter registry" functions like above(), to get an accumulative number by quarters.&lt;/P&gt;&lt;P&gt;When I need to use inter registry functions, I always do something like this :&lt;/P&gt;&lt;P style="font-weight: bold"&gt;if(rowno()=1 ,myexpression() , myexpression() + above(column(1)) )&lt;/P&gt;&lt;P&gt;If this is the first row, I do my expression, but if not, I make a summation between the current row and the above one.&lt;/P&gt;&lt;P&gt;Let me know if this is what you want.&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 10:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-set-analysis-help/m-p/203231#M60652</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-11-29T10:33:20Z</dc:date>
    </item>
    <item>
      <title>Indirect set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-set-analysis-help/m-p/203232#M60653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcel, nice idea but it isn't quite what I need.&lt;/P&gt;&lt;P&gt;Ultimately, I want to have a chart with a continuous x axis with Year &amp;amp; Quarter as my dimension and the expression to calculate growth vs. previous year. The chart below shows sales for 2008,9 and 10 by quarter.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6433.untitled.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/6433.untitled.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I want to modify this to show growth vs. previous year by quarter e.g. 2010 Q1 vs. 2009 Q1. Because I have selected more than one year, Year=Year-1 will not work.&lt;/P&gt;&lt;P&gt;I thought by creating a Year &amp;amp; Quarter-1 Key I could do something along the lines of Year=Year &amp;amp; Quarter-1 Key to return the previous year's sales and then use this to calculate growth (see my expression in the first post).&lt;/P&gt;&lt;P&gt;I'm sure I've seen this type of solution used elsewhere. I think the logic is ok but I just can't get it to work. It just returns zero.&lt;/P&gt;&lt;P&gt;Hopefully this makes sense.&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 11:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-set-analysis-help/m-p/203232#M60653</guid>
      <dc:creator />
      <dc:date>2010-11-29T11:31:41Z</dc:date>
    </item>
  </channel>
</rss>

