<?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: Chart Caluclation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814439#M662999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry SunIndia, Still its not working. I really thankful for trying hard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Feb 2015 14:11:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-04T14:11:23Z</dc:date>
    <item>
      <title>Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814411#M662971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Every one,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 5 asset classes in my chart and periods are P0 to P1, out of 5 asset classes 1 is OTC Derivative, when I make selection of OTC and Period=P0 values should be added to other periods(P1 to P15) and you can find current chart and it should be change to my requirement.&lt;/P&gt;&lt;P&gt;Make sure that this change should not reflect to other selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current expression is: &lt;STRONG&gt;if(Trad_PRODUCT_TYPE = 'OTC Derivative',sum(Trad_UNREALIZED_PL), if(Trad_PRODUCT_TYPE = 'SFT',sum(Trad_COLLATERAL_VALUE),sum(Trad_CURR_BOOK_VALUE)))&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance.&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 11:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814411#M662971</guid>
      <dc:creator />
      <dc:date>2015-02-03T11:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814412#M662972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry, but I don't really understand what you are trying to achieve here. When you make a selection on the Asset Class = OTC and Period =P0, what are you expecting to happen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 11:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814412#M662972</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-03T11:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814413#M662973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi S,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex: P0=10, P1=20,P2=5 then if select on OTC P0 value should be added to P1 to other periods.&lt;/P&gt;&lt;P&gt;Like our ex: after selection(OTC) P0=10 , P1=30(P0+P1), P2=15(P0+P2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 11:49:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814413#M662973</guid>
      <dc:creator />
      <dc:date>2015-02-03T11:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814414#M662974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this close to what you want? PFA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 12:11:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814414#M662974</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-03T12:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814415#M662975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi S,&amp;nbsp; Not able to open your QVW due to license, could you please help me in another way.&amp;nbsp;&amp;nbsp; Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 12:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814415#M662975</guid>
      <dc:creator />
      <dc:date>2015-02-03T12:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814416#M662976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Script for reference:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period, Value&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P0, 10&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P1, 15&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P2, 20&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P3, 5&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P4, 40&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P5, 54&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P6, 25&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P7, 20&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P8, 30&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P9, 32&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P10, 10&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P11, 15&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P12, 40&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P13, 43&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P14, 23&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P15, 10&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created a straight table with 2 expressions:&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;=Sum(Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;=Sum(Value) + If(Period = 'P0', 0, RangeSum(Above(Value, RowNo() - 1)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second expression will add P0 to everything from P1 to P15 (Snapshot attached)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76985_pastedImage_6.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 13:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814416#M662976</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-03T13:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814417#M662977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi S,&lt;/P&gt;&lt;P&gt;Thanks for the above expression and its meaningful but in my case, I am not able to understand for my below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Trad_PRODUCT_TYPE = 'OTC Derivative',sum(Trad_UNREALIZED_PL), if(Trad_PRODUCT_TYPE = 'SFT',sum(Trad_COLLATERAL_VALUE),sum(Trad_CURR_BOOK_VALUE)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 14:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814417#M662977</guid>
      <dc:creator />
      <dc:date>2015-02-03T14:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814418#M662978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume the &lt;STRONG&gt;value&lt;/STRONG&gt; corresponds to one of these based on the selection (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Trad_UNREALIZED_PL&lt;/STRONG&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Trad_COLLATERAL_VALUE&lt;/STRONG&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Trad_CURR_BOOK_VALUE&lt;/STRONG&gt;)? If it does then you can do something like this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(Trad_PRODUCT_TYPE = 'OTC Derivative',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Value) + If(Period = 'P0', 0, RangeSum(Above(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Trad_UNREALIZED_PL&lt;/STRONG&gt;, RowNo() - 1)))&lt;/STRONG&gt;, If(Trad_PRODUCT_TYPE = 'SFT',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Value) + If(Period = 'P0', 0, RangeSum(Above(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Trad_COLLATERAL_VALUE&lt;/STRONG&gt;, RowNo() - 1)))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&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; font-size: 13px; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Value) + If(Period = 'P0', 0, RangeSum(Above(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Trad_CURR_BOOK_VALUE&lt;/STRONG&gt;, RowNo() - 1)))))&lt;/STRONG&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; font-size: 13px; line-height: 1.5em;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&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; font-size: 13px; line-height: 1.5em;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;Is this something you are looking to do? If not then I would suggest that you share some sample data so that the actual requirement can be pin-pointed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&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; font-size: 13px; line-height: 1.5em;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;S&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 14:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814418#M662978</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-03T14:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814419#M662979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi S,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data is huge so I can explain with screen-shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two dimensions 1. Period, 2. Trad_Exclusion_Rule(Dragged to up: 0,100,150...,). When I make selection(OTC) then P0 should be add to other periods(p1+p0,p2+p0...,). If I make selection of other Asset class and it should not affect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my expression as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Your expression is not worked out:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; font-size: 13px;"&gt;If(Trad_PRODUCT_TYPE = 'OTC Derivative',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; font-size: 13px;"&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Value) + If(Period = 'P0', 0, RangeSum(Above(&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; font-size: 13px;"&gt;Trad_UNREALIZED_PL&lt;/STRONG&gt;, RowNo() - 1)))&lt;/STRONG&gt;, If(Trad_PRODUCT_TYPE = 'SFT',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; font-size: 13px;"&gt;Sum(Value) + If(Period = 'P0', 0, RangeSum(Above(&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; font-size: 13px;"&gt;Trad_COLLATERAL_VALUE&lt;/STRONG&gt;, RowNo() - 1)))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; font-size: 13px;"&gt;Sum(Value) + If(Period = 'P0', 0, RangeSum(Above(&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; font-size: 13px;"&gt;Trad_CURR_BOOK_VALUE&lt;/STRONG&gt;, RowNo() - 1)))))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; font-size: 13px;"&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; font-size: 13px;"&gt;&lt;BR /&gt;Thank you&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 15:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814419#M662979</guid>
      <dc:creator />
      <dc:date>2015-02-03T15:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814420#M662980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;If(Trad_PRODUCT_TYPE = 'OTC Derivative',&lt;/SPAN&gt;&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="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; font-style: inherit;"&gt;Trad_UNREALIZED_PL&lt;/STRONG&gt;) + If(Period = 'P0', 0, RangeSum(Above(&lt;STRONG style="font-style: inherit;"&gt;Trad_UNREALIZED_PL&lt;/STRONG&gt;, RowNo() - 1)))&lt;/STRONG&gt;, If(Trad_PRODUCT_TYPE = 'SFT',&lt;/SPAN&gt;&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="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-style: inherit;"&gt;Sum(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; font-style: inherit;"&gt;Trad_COLLATERAL_VALUE&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;,&lt;/SPAN&gt;&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="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-style: inherit;"&gt;Sum(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; font-style: inherit;"&gt;Trad_CURR_BOOK_VALUE&lt;/STRONG&gt;)))&lt;/STRONG&gt;&lt;/SPAN&gt;&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="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&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="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;See if this one is working.&lt;/SPAN&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;Best,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 16:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814420#M662980</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-03T16:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814421#M662981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did the above expression worked out for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 19:34:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814421#M662981</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-03T19:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814422#M662982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SunIndia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not worked out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached new and old expressions results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 08:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814422#M662982</guid>
      <dc:creator />
      <dc:date>2015-02-04T08:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814423#M662983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 09:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814423#M662983</guid>
      <dc:creator />
      <dc:date>2015-02-04T09:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814424#M662984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you able to provide sample data in excel with expected result..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 10:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814424#M662984</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2015-02-04T10:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814425#M662985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Added sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 10:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814425#M662985</guid>
      <dc:creator />
      <dc:date>2015-02-04T10:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814426#M662986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this. Its one of the method to resolve ur problem..&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data: &lt;/P&gt;&lt;P&gt;LOAD Period, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unr_PL, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exc_Code, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&lt;BR /&gt; FROM&lt;BR /&gt; Sample.xlsx&lt;BR /&gt; (ooxml, embedded labels, table is Data);&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Left Join&lt;BR /&gt; Load Exc_Code, Sum(Unr_PL) AS OTC Resident Data where Type = 'OTC'&lt;BR /&gt; Group by Exc_Code;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Front end:&lt;/P&gt;&lt;P&gt;Dimension: Period, Exc_Code&lt;/P&gt;&lt;P&gt;Measure: =If(GetFieldSelections(Type)= 'OTC', If(Type &amp;lt;&amp;gt; 'OTC',Sum({&amp;lt;Type = &amp;gt;}Unr_PL) + Max({&amp;lt;Type = &amp;gt;} OTC), Sum({&amp;lt;Type = &amp;gt;}Unr_PL)), Sum({&amp;lt;Type = &amp;gt;}Unr_PL) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 11:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814426#M662986</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2015-02-04T11:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814427#M662987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your sample data is confusing. In your Excel file, I understood &lt;STRONG&gt;Cell K4&lt;/STRONG&gt; where you have added &lt;STRONG&gt;Unr_Pl&lt;/STRONG&gt; for &lt;STRONG&gt;Type OTC&lt;/STRONG&gt;, But for &lt;STRONG&gt;Cell K5&lt;/STRONG&gt; you have added &lt;STRONG&gt;Unr_Pl&lt;/STRONG&gt; where &lt;STRONG&gt;Type&lt;/STRONG&gt; &lt;STRONG&gt;Blank&lt;/STRONG&gt;. Then in &lt;STRONG&gt;Cell K6&lt;/STRONG&gt; you have added &lt;STRONG&gt;Unr_Pl&lt;/STRONG&gt; for &lt;STRONG&gt;Type&lt;/STRONG&gt; &lt;STRONG&gt;SFT&lt;/STRONG&gt;. There seems to be not consistency in the result you are expecting. Are you sure there are no mistakes in the expected result you posted in the Excel file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 11:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814427#M662987</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-04T11:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814428#M662988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Below expression is almost worked but the problem is its calculating P0+P0 values also. My expectation is P0 values should be P0 only, P0 values should be added to other periods: P0+P1 like that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaced screen shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Trad_UNREALIZED_PL&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;) + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Period&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; = 'P0', 0, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeSum&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Above&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Trad_UNREALIZED_PL&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;) ,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RowNo&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;()-1))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 11:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814428#M662988</guid>
      <dc:creator />
      <dc:date>2015-02-04T11:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814429#M662989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunindia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right and corrected now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 11:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814429#M662989</guid>
      <dc:creator />
      <dc:date>2015-02-04T11:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Caluclation</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814430#M662990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant touch script part. Any other way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 11:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Caluclation/m-p/814430#M662990</guid>
      <dc:creator />
      <dc:date>2015-02-04T11:46:40Z</dc:date>
    </item>
  </channel>
</rss>

