<?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: Rangesum and set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rangesum-and-set-analysis/m-p/1187776#M884883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How About this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=rangesum(Above(sum({$&amp;lt; COMPANY={'NPC-UK',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'NPS-UK',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'NPC-IE'&lt;/SPAN&gt;&lt;/SPAN&gt;},ACCOUNTING_YEAR={'$(vMaxYear)'},ACCOUNTING_PERIOD={'&amp;lt;=$(vPriorMonth)'}&amp;gt;} TOTAL RECOVERY_MTH), 0, RowNo(Total)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;* avg({$&amp;lt;CURRENCY_CODE_CONSOLIDATE={'EUR'}&amp;gt;} CURRENCY_RATE_CONSOLIDATE)), 0, RowNo(Total)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2016 18:00:38 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2016-09-19T18:00:38Z</dc:date>
    <item>
      <title>Rangesum and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-and-set-analysis/m-p/1187774#M884880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear QV gurus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm fairly new to set analysis.&lt;/P&gt;&lt;P&gt;I'm trying to present cumulative project profit values for different companies in a combo chart. &lt;/P&gt;&lt;P&gt;I have companies using different currencies.&lt;/P&gt;&lt;P&gt;In the code below you can see how I am evaluating data for 3 companies NPC-UK, NPS-UK and NPC-IE.&lt;/P&gt;&lt;P&gt;If I evaluate only NPC-UK and NPS-UK the expression works.&lt;/P&gt;&lt;P&gt;If I add a third company to the expression (NPC-IE) with a currency exchange expression the syntax of the expression seems OK but I get the message "No data to display". What am I doing wrong in my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=rangesum(Above(Total sum({$&amp;lt; COMPANY={'NPC-UK'},ACCOUNTING_YEAR={'$(vMaxYear)'},ACCOUNTING_PERIOD={'&amp;lt;=$(vPriorMonth)'}&amp;gt;} RECOVERY_MTH), 0, RowNo(Total)))&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;rangesum(Above(Total sum({$&amp;lt; COMPANY={'NPS-UK'},ACCOUNTING_YEAR={'$(vMaxYear)'},ACCOUNTING_PERIOD={'&amp;lt;=$(vPriorMonth)'}&amp;gt;} RECOVERY_MTH), 0, RowNo(Total)))&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;rangesum(Above(Total sum(({$&amp;lt;COMPANY={'NPC-IE'},ACCOUNTING_YEAR={'$(vMaxYear)'},ACCOUNTING_PERIOD={'&amp;lt;=$(vPriorMonth)'}&amp;gt;} RECOVERY_MTH)*avg({$&amp;lt;CURRENCY_CODE_CONSOLIDATE={'EUR'}&amp;gt;} CURRENCY_RATE_CONSOLIDATE)), 0, RowNo(Total)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-and-set-analysis/m-p/1187774#M884880</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-and-set-analysis/m-p/1187775#M884882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you expecting for O/P, Would you provide sample which you did work around.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 17:57:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-and-set-analysis/m-p/1187775#M884882</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-19T17:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-and-set-analysis/m-p/1187776#M884883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How About this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=rangesum(Above(sum({$&amp;lt; COMPANY={'NPC-UK',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'NPS-UK',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'NPC-IE'&lt;/SPAN&gt;&lt;/SPAN&gt;},ACCOUNTING_YEAR={'$(vMaxYear)'},ACCOUNTING_PERIOD={'&amp;lt;=$(vPriorMonth)'}&amp;gt;} TOTAL RECOVERY_MTH), 0, RowNo(Total)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;* avg({$&amp;lt;CURRENCY_CODE_CONSOLIDATE={'EUR'}&amp;gt;} CURRENCY_RATE_CONSOLIDATE)), 0, RowNo(Total)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 18:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-and-set-analysis/m-p/1187776#M884883</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-19T18:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-and-set-analysis/m-p/1187777#M884885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;I tried your expression and it doesn't work. I has syntax errors.&lt;/P&gt;&lt;P&gt;Please see attached file, which includes the results when only considering the evaluation of rangesum for NPC-UK and NPS-UK (only the first 4 lines on the script)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Miguel&lt;IMG alt="rangesum_set_analysis_1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/137928_rangesum_set_analysis_1.png" style="height: 300px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 18:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-and-set-analysis/m-p/1187777#M884885</guid>
      <dc:creator />
      <dc:date>2016-09-19T18:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-and-set-analysis/m-p/1187778#M884886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Syntax error means, would you please share the screen which you attempt and if possible can you please share the application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 18:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-and-set-analysis/m-p/1187778#M884886</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-19T18:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-and-set-analysis/m-p/1187779#M884887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately I cannot share the application.&lt;/P&gt;&lt;P&gt;Please see attached file in relation to error message in the syntax of your expression.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Miguel&lt;IMG alt="rangesum_set_analysis_2.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/137929_rangesum_set_analysis_2.png" style="height: 348px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 19:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-and-set-analysis/m-p/1187779#M884887</guid>
      <dc:creator />
      <dc:date>2016-09-19T19:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-and-set-analysis/m-p/1187780#M884888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=RangeSum(Above(TOTAL Sum({$&amp;lt;COMPANY = {'NPC-UK'}, ACCOUNTING_YEAR ={'$(vMaxYear)'}, ACCOUNTING_PERIOD = {'&amp;lt;=$(vPriorMonth)'}&amp;gt;} RECOVERY_MTH), 0, RowNo(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TOTAL&lt;/SPAN&gt;)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;+&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RangeSum&lt;/SPAN&gt;(Above(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TOTAL &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum&lt;/SPAN&gt;&lt;/SPAN&gt;({$&amp;lt; COMPANY = {'NPS-UK'}, ACCOUNTING_YEAR ={'$(vMaxYear)'}, ACCOUNTING_PERIOD = {'&amp;lt;=$(vPriorMonth)'}&amp;gt;} RECOVERY_MTH), 0, RowNo(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TOTAL&lt;/SPAN&gt;)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;+&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RangeSum&lt;/SPAN&gt;(Above(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TOTAL &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum&lt;/SPAN&gt;&lt;/SPAN&gt;({$&amp;lt;COMPANY={'NPC-IE'}, ACCOUNTING_YEAR={'$(vMaxYear)'}, ACCOUNTING_PERIOD = {'&amp;lt;=$(vPriorMonth)'}&amp;gt;} RECOVERY_MTH) * Avg({$&amp;lt;CURRENCY_CODE_CONSOLIDATE ={'EUR'}&amp;gt;} CURRENCY_RATE_CONSOLIDATE), 0, RowNo(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TOTAL&lt;/SPAN&gt;)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Changed the third RangeSum by removing extra parenthesis (can be seen in red below)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;RangeSum(Above(TOTAL Sum(&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;(&lt;/SPAN&gt;{$&amp;lt;COMPANY={'NPC-IE'}, ACCOUNTING_YEAR = {'$(vMaxYear)'}, ACCOUNTING_PERIOD ={'&amp;lt;=$(vPriorMonth)'}&amp;gt;} RECOVERY_MTH) * Avg({$&amp;lt;CURRENCY_CODE_CONSOLIDATE = {'EUR'}&amp;gt;} CURRENCY_RATE_CONSOLIDATE)&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;)&lt;/SPAN&gt;, 0, RowNo(TOTAL)))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 01:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-and-set-analysis/m-p/1187780#M884888</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-20T01:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-and-set-analysis/m-p/1187781#M884889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great! ... that worked!&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 15:56:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-and-set-analysis/m-p/1187781#M884889</guid>
      <dc:creator />
      <dc:date>2016-09-20T15:56:20Z</dc:date>
    </item>
  </channel>
</rss>

