<?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: Getting a range in set analysis (variable + 11 months) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-a-range-in-set-analysis-variable-11-months/m-p/795528#M533560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a new Question/Thread please !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Oct 2015 06:24:01 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2015-10-01T06:24:01Z</dc:date>
    <item>
      <title>Getting a range in set analysis (variable + 11 months)</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-range-in-set-analysis-variable-11-months/m-p/795524#M533556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are probably several ways to do but I need to return a sum of sales for a period equal to the value of a Year Month variable + 11 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;P&gt;Year Month Variable = 201311 (which represents year and month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data (yellow represents the 12 months data I need to sum -&amp;nbsp; 201311 through 201410). Obviously the issue is with a Year Month field I can't just add 11 to the variable:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 182pt; border-collapse: collapse;" width="243"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="border: 0px black; width: 48pt; height: 15pt; background-color: transparent;" width="64"&gt;&lt;STRONG style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;Company&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px black; width: 86pt; background-color: transparent;" width="115"&gt;&lt;STRONG style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;Sales_YearMonth&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px black; width: 48pt; background-color: transparent;" width="64"&gt;&lt;STRONG style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;Sales&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border: 0px black; height: 15pt; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;201309&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;5&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border: 0px black; height: 15pt; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;201310&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;10&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border: 0px black; height: 15pt; background-color: yellow;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border: 0px black; background-color: yellow;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;201311&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border: 0px black; background-color: yellow;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;15&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border: 0px black; height: 15pt; background-color: yellow;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border: 0px black; background-color: yellow;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;201405&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border: 0px black; background-color: yellow;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;20&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border: 0px black; height: 15pt; background-color: yellow;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border: 0px black; background-color: yellow;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;201406&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border: 0px black; background-color: yellow;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;25&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border: 0px black; height: 15pt; background-color: yellow;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border: 0px black; background-color: yellow;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;201408&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border: 0px black; background-color: yellow;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;30&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border: 0px black; height: 15pt; background-color: yellow;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border: 0px black; background-color: yellow;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;201409&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border: 0px black; background-color: yellow;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;35&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border: 0px black; height: 15pt; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;201412&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;40&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border: 0px black; height: 15pt; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;201501&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;45&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="border: 0px black; height: 15pt; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;201502&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px black; background-color: transparent;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;50&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 17:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-range-in-set-analysis-variable-11-months/m-p/795524#M533556</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-03-12T17:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a range in set analysis (variable + 11 months)</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-range-in-set-analysis-variable-11-months/m-p/795525#M533557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=SUM({&amp;lt;,YourDateField =, YourMonthField = , YourQuarterField =, YourYearField = ,YearMonth = {"&amp;gt;=$(=Date(AddMonths(Date#(Max(YearMonth),'YYYYMM'),11),'YYYYMM'))&amp;lt;=$(=Max(YearMonth))"}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 17:36:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-range-in-set-analysis-variable-11-months/m-p/795525#M533557</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-12T17:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a range in set analysis (variable + 11 months)</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-range-in-set-analysis-variable-11-months/m-p/795526#M533558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 18:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-range-in-set-analysis-variable-11-months/m-p/795526#M533558</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-03-12T18:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a range in set analysis (variable + 11 months)</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-range-in-set-analysis-variable-11-months/m-p/795527#M533559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to "steale" this thread, but i just know this answer would help me solve my problem, but I can not get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone explain it for me, and help me understand &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My period is on the format YYYYMM ('acc_period'), and my Sales is amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What shall I Write to make this work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 10:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-range-in-set-analysis-variable-11-months/m-p/795527#M533559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-30T10:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a range in set analysis (variable + 11 months)</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-range-in-set-analysis-variable-11-months/m-p/795528#M533560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a new Question/Thread please !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 06:24:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-range-in-set-analysis-variable-11-months/m-p/795528#M533560</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-10-01T06:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a range in set analysis (variable + 11 months)</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-range-in-set-analysis-variable-11-months/m-p/795529#M533561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it! Thx&lt;/P&gt;&lt;P&gt;(After trying 50 times) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 08:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-range-in-set-analysis-variable-11-months/m-p/795529#M533561</guid>
      <dc:creator>anitamelbye</dc:creator>
      <dc:date>2015-10-01T08:38:44Z</dc:date>
    </item>
  </channel>
</rss>

