<?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: Selecting previous year summations, using set analysis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-previous-year-summations-using-set-analysis/m-p/648434#M237362</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 try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;num(sum({1&amp;lt;[Gift FY] = {$(=max([Gift FY])-1)},&amp;nbsp; [Cash Flag] = {1} &amp;gt;} [Amount]),&amp;nbsp; '$#,##0.00;($#,##0.00)')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Sep 2014 13:30:53 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2014-09-08T13:30:53Z</dc:date>
    <item>
      <title>Selecting previous year summations, using set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-previous-year-summations-using-set-analysis/m-p/648433#M237361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a chart comparing summations (total amt, gift count, ID count) for a year, and a previous year.&amp;nbsp; I also need the year to be selectable...back 10 years.&amp;nbsp; For instance, a user selects 2011, and a chart shows 2011 summations and 2010 summations; if 2008 is selected, then 2008 and 2007.&amp;nbsp; So, I've tried to create a table chart... with the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FiscalYear:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Total Amount, Gift Count, Distinct ID Count&lt;/P&gt;&lt;P&gt;Prior FiscalYear: Total Amount, Gift Count, Distinst ID Count...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have a filter flag for Cash:&amp;nbsp; [Cash Flag]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Here are my first three columns: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total Amount&amp;nbsp; = num(sum({1&amp;lt;[Cash Flag] = {1} &amp;gt;} [Amount]),&amp;nbsp; '$#,##0.00;($#,##0.00)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gift Count&amp;nbsp; = num(count({1&amp;lt;[Cash Flag] = {1} &amp;gt;}[Gift Number]),&amp;nbsp; '#,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Distinct ID Count = num(count(DISTINCT {1&amp;lt;[Cash Flag] = {1} &amp;gt;} [ID Number]),&amp;nbsp; '#,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Prior year???&amp;nbsp; I can't get the set-analysis to pull the totals for a previous year... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, in trying to find the previous year Total Amount, none of these work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= num(sum({1&amp;lt;[Gift FY] = {$(=[Gift FY]-1)},&amp;nbsp; [Cash Flag] = {1} &amp;gt;} [Amount]),&amp;nbsp; '$#,##0.00;($#,##0.00)')&lt;/P&gt;&lt;P&gt;= num(sum({1&amp;lt;[Gift FY] = {$([Gift FY]-1)}, [Cash Flag] = {1} &amp;gt;} [Amount]),&amp;nbsp; '$#,##0.00;($#,##0.00)')&lt;/P&gt;&lt;P&gt;= num(sum({1&amp;lt;[Gift FY] = {"$(=[Gift FY]-1)"},&amp;nbsp; [Cash Flag] = {1} &amp;gt;} [Amount]),&amp;nbsp; '$#,##0.00;($#,##0.00)')&lt;/P&gt;&lt;P&gt;= num(sum({1&amp;lt;[Gift FY] = {"$([Gift FY]-1)"},&amp;nbsp; [Cash Flag] = {1} &amp;gt;} [Amount]),&amp;nbsp; '$#,##0.00;($#,##0.00)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I select previous year summations, using set analysis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 13:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-previous-year-summations-using-set-analysis/m-p/648433#M237361</guid>
      <dc:creator>jrdunson</dc:creator>
      <dc:date>2014-09-08T13:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting previous year summations, using set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-previous-year-summations-using-set-analysis/m-p/648434#M237362</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 try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;num(sum({1&amp;lt;[Gift FY] = {$(=max([Gift FY])-1)},&amp;nbsp; [Cash Flag] = {1} &amp;gt;} [Amount]),&amp;nbsp; '$#,##0.00;($#,##0.00)')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 13:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-previous-year-summations-using-set-analysis/m-p/648434#M237362</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2014-09-08T13:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting previous year summations, using set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-previous-year-summations-using-set-analysis/m-p/648435#M237363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will get basic information from below thread...&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/131684"&gt;Previous year MTD&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 13:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-previous-year-summations-using-set-analysis/m-p/648435#M237363</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-08T13:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting previous year summations, using set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-previous-year-summations-using-set-analysis/m-p/648436#M237364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Liron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello, your answer is useful, and I address the need I stated above.&amp;nbsp; However, let me explain more specifically &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to calulate differences from year to year, over a ten year period, comparing a) a current year's numbers, and b) the differences from a prior year.&amp;nbsp; The curent year's numbers and differencs need to show up on the same row. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/66268_pastedImage_6.png" style="width: 620px; height: 105px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show this years data (Amt, #IDs, #Gifts), Last year's data (Amt, #IDs, #Gifts), the differences, and most importantly:&lt;/P&gt;&lt;P&gt;a) the number of IDs that have carried over to the current year (that is, "retained"... they were in both years), plus amount differences for these retained ID &lt;EM&gt;only&lt;/EM&gt;; and b) the number of IDs that were left behind ('lapsed' from the previous year), plus the amount differences for these lapsed ID &lt;EM&gt;only&lt;/EM&gt; [how much they gave in the previous year]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought I could use set-analysis...but haven't yet found a good example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jarrell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 16:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-previous-year-summations-using-set-analysis/m-p/648436#M237364</guid>
      <dc:creator>jrdunson</dc:creator>
      <dc:date>2014-09-08T16:15:47Z</dc:date>
    </item>
  </channel>
</rss>

