<?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: Using set analysis in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-in-an-expression/m-p/1570796#M442107</link>
    <description>If I understand you correctly then this might be what you are looking for:&lt;BR /&gt;&lt;BR /&gt;RangeSum(Above(&lt;BR /&gt;Sum({1&amp;lt;YYYYQ={'&amp;gt;=$(Qtr_Minus_4_Qtr_YYYYQ)&amp;lt;=$(Current_QTR_YYYYQ)'}&amp;gt;}COE_QTY)&lt;BR /&gt;, 0, RowNo()))</description>
    <pubDate>Thu, 18 Apr 2019 05:33:57 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2019-04-18T05:33:57Z</dc:date>
    <item>
      <title>Using set analysis in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-in-an-expression/m-p/1570734#M442096</link>
      <description>&lt;P&gt;&amp;nbsp;I have run into an issue using set analysis. I am trying to roll-up previous quarters minus 4 from the current quarter into 1 column, while the horizon remains filled with their projected quantity’s.&lt;/P&gt;&lt;P&gt;The expression I am using is as follows:&amp;nbsp; Sum({1&amp;lt;YYYYQ={'&amp;gt;=$(Qtr_Minus_4_Qtr_YYYYQ)&amp;lt;=$(Current_QTR_YYYYQ)'}&amp;gt;}COE_QTY)&lt;/P&gt;&lt;P&gt;The result is not adding COE Cumulative Q1 to Q2 as expected.For the below example I would like to have 20192 and Previous.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="coe.png" style="width: 623px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10457iDD45BCB66ADEF4BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="coe.png" alt="coe.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 21:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-in-an-expression/m-p/1570734#M442096</guid>
      <dc:creator>Ryan</dc:creator>
      <dc:date>2019-04-17T21:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-in-an-expression/m-p/1570796#M442107</link>
      <description>If I understand you correctly then this might be what you are looking for:&lt;BR /&gt;&lt;BR /&gt;RangeSum(Above(&lt;BR /&gt;Sum({1&amp;lt;YYYYQ={'&amp;gt;=$(Qtr_Minus_4_Qtr_YYYYQ)&amp;lt;=$(Current_QTR_YYYYQ)'}&amp;gt;}COE_QTY)&lt;BR /&gt;, 0, RowNo()))</description>
      <pubDate>Thu, 18 Apr 2019 05:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-in-an-expression/m-p/1570796#M442107</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-04-18T05:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-in-an-expression/m-p/1571265#M442148</link>
      <description>&lt;P&gt;Thank you for reaching out with a response. I adjusted your expression as follows&lt;/P&gt;&lt;P&gt;if(YYYYQ = Current_QTR_YYYYQ,&lt;BR /&gt;RangeSum(Before(Sum({1&amp;lt;YYYYQ={'&amp;gt;=$(Qtr_Minus_4_Qtr_YYYYQ)&amp;lt;=$(Current_QTR_YYYYQ)'}&amp;gt;}COE_QTY), 0, RowNo())),&lt;BR /&gt;sum(COE_QTY))&lt;/P&gt;&lt;P&gt;The expression works, however only on the ones following the second row as shown below. Do you know how I could adjust the expression to include the first row?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 490px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10581iA68583A65E795A20/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 22:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-in-an-expression/m-p/1571265#M442148</guid>
      <dc:creator>Ryan</dc:creator>
      <dc:date>2019-04-18T22:15:07Z</dc:date>
    </item>
  </channel>
</rss>

