<?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 with sequence numbers (go back twelve months) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-sequence-numbers-go-back-twelve-months/m-p/577574#M1099922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;you may use expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;PeriodSeqNum={$(=concat(aggr(PeriodSeqNum-12,PeriodSeqNum),','))}&amp;gt;}product_weight)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remamber, that if user selects in another field than sequence nbr (for example month), you should add to your set analysis part like this month=&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2014 20:51:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-29T20:51:19Z</dc:date>
    <item>
      <title>Set analysis with sequence numbers (go back twelve months)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-sequence-numbers-go-back-twelve-months/m-p/577572#M1099920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have some months that have sequence numbers. Let's say I select a couple sequence numbers 25,26,27&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;PeriodSeqNum&amp;gt;} product_weight)&amp;nbsp; gives me the sum of the product_weight for that sequence. What I would like is an expression that would give me the sum of 13,14,15 (12 minus those selections)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried various iterations of &lt;/P&gt;&lt;P&gt;sum({$&amp;lt;PeriodSeqNum = {$(=(PeriodSeqNum)-12)}&amp;gt;} product_weight) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but haven't hit on the answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 18:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-sequence-numbers-go-back-twelve-months/m-p/577572#M1099920</guid>
      <dc:creator>mellerbeck</dc:creator>
      <dc:date>2014-04-29T18:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with sequence numbers (go back twelve months)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-sequence-numbers-go-back-twelve-months/m-p/577573#M1099921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have your tried?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({$&amp;lt;PeriodSeqNum = {'$(=(PeriodSeqNum)-12)'}&amp;gt;} product_weight)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sorry , use below. This should work...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SUM({&amp;lt;PeriodSeqNum = {'&amp;gt;=$(=Min(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;PeriodSeqNum&lt;/SPAN&gt;)-12) &amp;lt;= $(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;PeriodSeqNum&lt;/SPAN&gt;)-12) '}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;product_weight&lt;/SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 19:08:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-sequence-numbers-go-back-twelve-months/m-p/577573#M1099921</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-29T19:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with sequence numbers (go back twelve months)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-sequence-numbers-go-back-twelve-months/m-p/577574#M1099922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;you may use expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;PeriodSeqNum={$(=concat(aggr(PeriodSeqNum-12,PeriodSeqNum),','))}&amp;gt;}product_weight)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remamber, that if user selects in another field than sequence nbr (for example month), you should add to your set analysis part like this month=&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 20:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-sequence-numbers-go-back-twelve-months/m-p/577574#M1099922</guid>
      <dc:creator />
      <dc:date>2014-04-29T20:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with sequence numbers (go back twelve months)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-sequence-numbers-go-back-twelve-months/m-p/577575#M1099923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you may also consider solution as I proposed in this thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/115533"&gt;Can this be done with set analysis?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 21:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-sequence-numbers-go-back-twelve-months/m-p/577575#M1099923</guid>
      <dc:creator />
      <dc:date>2014-04-29T21:02:04Z</dc:date>
    </item>
  </channel>
</rss>

