<?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: Set Analysis for Dynamic Past Two Year Total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529865#M482770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: sum({&amp;lt;[Sale Year]={'&amp;gt;=$(=only(Sale Year])-2)&amp;lt;$(=only([Sale Year]))'}&amp;gt;} sale_amount)&lt;/P&gt;&lt;P&gt;Note: set analysis calculates one set for the entire chart, not a set per row. That means you can't use Sale Year as dimension. You have to select exactly one year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jul 2013 16:10:53 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-07-26T16:10:53Z</dc:date>
    <item>
      <title>Set Analysis for Dynamic Past Two Year Total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529864#M482769</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 try to get dynamic sum of sale for previous two years. For example, when I select 2011, I would like to see the total sum of sale for Year 2010 and 2009, and when I select 2012, I would like to see the total sum of sale for Year 2011 and 2010. In the set analysis, which expression am I supposed to put for the field "Sale Year"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 16:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529864#M482769</guid>
      <dc:creator />
      <dc:date>2013-07-26T16:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Dynamic Past Two Year Total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529865#M482770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: sum({&amp;lt;[Sale Year]={'&amp;gt;=$(=only(Sale Year])-2)&amp;lt;$(=only([Sale Year]))'}&amp;gt;} sale_amount)&lt;/P&gt;&lt;P&gt;Note: set analysis calculates one set for the entire chart, not a set per row. That means you can't use Sale Year as dimension. You have to select exactly one year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 16:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529865#M482770</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-26T16:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Dynamic Past Two Year Total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529866#M482771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum({&amp;lt;[Sale Year]={'&amp;gt;=$(=max(Sale Year])-2)&amp;lt;$(=max([Sale Year]))'}&amp;gt;} sale_amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Hope it helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 17:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529866#M482771</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-07-26T17:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Dynamic Past Two Year Total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529867#M482772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;=sum({$&amp;lt;year={"*"},year-={"$(=Max(year))"}&amp;gt;}&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sale_amount&lt;/SPAN&gt;) &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 17:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529867#M482772</guid>
      <dc:creator>nizamsha</dc:creator>
      <dc:date>2013-07-26T17:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Dynamic Past Two Year Total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529868#M482773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, what if I potentially have other date dimension, such as month or monthname. If I don't want the sum value to change even though I select a specific month/month name variables, should I use the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Sale Year]={'&amp;gt;=$(=only(Sale Year])-2)&amp;lt;$(=only([Sale Year]))', [Sale Month]=, [Sale Month Name]=, [ Sale Date]=}&amp;gt;}?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 19:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529868#M482773</guid>
      <dc:creator />
      <dc:date>2013-07-26T19:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Dynamic Past Two Year Total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529869#M482774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, what if I potentially have other date dimension, such as month or monthname. If I don't want the sum value to change even though I select a specific month/month name variables, should I use the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Sale Year]={'&amp;gt;=$(=only(Sale Year])-2)&amp;lt;$(=only([Sale Year]))', [Sale Month]=, [Sale Month Name]=, [ Sale Date]=}&amp;gt;}?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 19:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529869#M482774</guid>
      <dc:creator />
      <dc:date>2013-07-26T19:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Dynamic Past Two Year Total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529870#M482775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, what if I potentially have other date dimension, such as month or monthname. If I don't want the sum value to change even though I select a specific month/month name variables, should I use the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Sale Year]={'&amp;gt;=$(=only(Sale Year])-2)&amp;lt;$(=only([Sale Year]))', [Sale Month]=, [Sale Month Name]=, [ Sale Date]=}&amp;gt;}?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dimension in Chart is actually mm/yyyy, and I want ALL the months of a particular year show up the same total sale value for previous two year. Do you know what would be a good way to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 19:27:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529870#M482775</guid>
      <dc:creator />
      <dc:date>2013-07-26T19:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Dynamic Past Two Year Total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529871#M482776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, what if I potentially have other date dimension, such as month or monthname. If I don't want the sum value to change even though I select a specific month/month name variables, should I use the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Sale Year]={'&amp;gt;=$(=only(Sale Year])-2)&amp;lt;$(=only([Sale Year]))', [Sale Month]=, [Sale Month Name]=, [ Sale Date]=}&amp;gt;}?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dimension in Chart is actually mm/yyyy, and I want ALL the months of a particular year show up the same total sale value for previous two year. Do you know what would be a good way to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 19:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529871#M482776</guid>
      <dc:creator />
      <dc:date>2013-07-26T19:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for Dynamic Past Two Year Total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529872#M482777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a similar issue, where I have a dimension called Start Week, which is the first day of the week in YYYY-MM-DD.&amp;nbsp;&amp;nbsp; I want to calculate based on each rows "Start Week", the previous weeks sales.&amp;nbsp; So that I can do a WoW delta.&amp;nbsp; I don't want to use the "Above" function because this would force the user to show two rows of data.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if they selected one single start week selection, "2014-09-05"&amp;nbsp; then only one row should be displayed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="WoW Example.png" class="jive-image" src="/legacyfs/online/67465_WoW Example.png" style="width: 620px; height: 131px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 16:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-Dynamic-Past-Two-Year-Total/m-p/529872#M482777</guid>
      <dc:creator />
      <dc:date>2014-09-23T16:08:01Z</dc:date>
    </item>
  </channel>
</rss>

