<?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 ABOVE function in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ABOVE-function-in-Set-Analysis/m-p/369286#M137293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the end, I'm inclined to agree that using these 2 together just isn't practical...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, the solution I've used is to add a field that adds a counter to the YearMonth - so if I want a 12 month rolling sum, I use set analysis for this month minus 12. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps anyone else struggling with rolling 12 month analysis!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2012 14:29:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-03T14:29:18Z</dc:date>
    <item>
      <title>ABOVE function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/ABOVE-function-in-Set-Analysis/m-p/369284#M137291</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've been struggling to do a 12 month rolling sum in my bar chart, depending on the YearMonth selected by the user.&lt;/P&gt;&lt;P&gt;This needs to be a single value, based upon the YearMonth selected (the Chart is only shown if one YearMonth is selected, so that solves the initial problem of getting the user to select just one date)&lt;/P&gt;&lt;P&gt;In essence, these are the formulae I've been trying to work with:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: blue; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black; font-size: 10pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: maroon; font-size: 10pt;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black; font-size: 10pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: gray; font-size: 10pt;"&gt;$(=above(YearMonth,0,11))&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black; font-size: 10pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: maroon; font-size: 10pt;"&gt;[Sales]&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black; font-size: 10pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black; font-size: 10pt;"&gt;---&amp;gt; Result is null...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: blue;"&gt;RangeSum&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: blue;"&gt;above&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: maroon;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black;"&gt;=&amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: maroon;"&gt;[Sales]&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black;"&gt;),0,11))&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black;"&gt;---&amp;gt; Result is shown if I use YearMonth as a Dimension (as if I were accumulating 12 steps back), but I don't want to show the range, only one value for the 12 months prior to my selection&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black; font-size: 10pt;"&gt;I've been experimenting with ABOVE, BELOW and RANGESUM, but nothing works as I need it to so far.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black; font-size: 10pt;"&gt;In my data, YearMonth is a text entry in the format YYYY/MM, so it's not as simple as YearMonth + YearMonth-1, etc...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black; font-size: 10pt;"&gt;I also considered concat() for Year and Month, but seeing as Month 1 = Month 01 (so if(len(Month)=1,'0'&amp;amp;Month)....),, it creates a lot more problems that just an ABOVE function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black; font-size: 10pt;"&gt;I'm not using any Dimensions, as there are a number of expressions that use different time periods in this chart, and I don't want to screw these up.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; color: black; font-size: 10pt;"&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 09:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ABOVE-function-in-Set-Analysis/m-p/369284#M137291</guid>
      <dc:creator />
      <dc:date>2012-04-26T09:42:30Z</dc:date>
    </item>
    <item>
      <title>ABOVE function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/ABOVE-function-in-Set-Analysis/m-p/369285#M137292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Above and set analysis don't really make any sense together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try building a sample and attaching it so you can get more help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2012 23:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ABOVE-function-in-Set-Analysis/m-p/369285#M137292</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2012-04-29T23:54:42Z</dc:date>
    </item>
    <item>
      <title>ABOVE function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/ABOVE-function-in-Set-Analysis/m-p/369286#M137293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the end, I'm inclined to agree that using these 2 together just isn't practical...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, the solution I've used is to add a field that adds a counter to the YearMonth - so if I want a 12 month rolling sum, I use set analysis for this month minus 12. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps anyone else struggling with rolling 12 month analysis!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 14:29:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ABOVE-function-in-Set-Analysis/m-p/369286#M137293</guid>
      <dc:creator />
      <dc:date>2012-05-03T14:29:18Z</dc:date>
    </item>
  </channel>
</rss>

