<?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: calculation on measure problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculation-on-measure-problem/m-p/14504#M2370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot. It works!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2018 09:25:04 GMT</pubDate>
    <dc:creator>sayanpwc</dc:creator>
    <dc:date>2018-03-13T09:25:04Z</dc:date>
    <item>
      <title>calculation on measure problem</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-on-measure-problem/m-p/14499#M2365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Facing a problem on calculation on a measure field of a chart that i want to use n different chart.&lt;/P&gt;&lt;P&gt;Find below the scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here forecast against actual value is calculated where we have segment ,account and month as dimension. The measure field contains both positive and negative value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want this calculation in a different chart where dimension is only segment. In this chart i want to create two expression for 'Forecast against actual' - sum of that values where values are positive and sum of that values where values are negative. and other is sum of all ( postive and negative). But in this chart ACCOUNT,months will not be there as dimension. only segment is there but i want to do the aggregation on account month level.but not coming. Please help&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pic1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/196136_pic1.PNG" style="height: 459px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 07:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-on-measure-problem/m-p/14499#M2365</guid>
      <dc:creator>sayanpwc</dc:creator>
      <dc:date>2018-03-13T07:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: calculation on measure problem</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-on-measure-problem/m-p/14500#M2366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since forecast is by month and account then you always need to use aggregation&lt;/P&gt;&lt;P&gt;for positive:&lt;/P&gt;&lt;P&gt;sum(aggr(sum({&amp;lt;forecast={"&amp;gt;0"}&amp;gt;} forecast),account,month))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for negative:&lt;/P&gt;&lt;P&gt;sum(aggr(sum({&amp;lt;forecast={"&amp;lt;0"}&amp;gt;} forecast),account,month))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 08:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-on-measure-problem/m-p/14500#M2366</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2018-03-13T08:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: calculation on measure problem</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-on-measure-problem/m-p/14501#M2367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you did not get my point. I need to do this calculation in a different chart where account and month not there as a dimension . Just segment is there as dimension. but there it is aggregated on segment level not in account and month level though using aggr on those two fields but as i dont have those dimension available on this chart it is not giving correct result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 08:46:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-on-measure-problem/m-p/14501#M2367</guid>
      <dc:creator>sayanpwc</dc:creator>
      <dc:date>2018-03-13T08:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: calculation on measure problem</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-on-measure-problem/m-p/14502#M2368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the condition to apply to the underlying forecast data, then simply use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;positive&amp;nbsp; - &lt;EM&gt;Sum(RangeMax(forecast, 0))&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;negative - &lt;EM&gt;Sum(RangeMin(forecast, 0))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If you need the condition to apply to the partially aggregated data as in your picture:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;positive - &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;Sum(Aggr(RangeMax(Sum([FORECAST AGAINST ACTUAL]), 0), SEGMENT, ACCOUNT, MONTHS))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;negatve - &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;Sum(Aggr(RangeMin(Sum([FORECAST AGAINST ACTUAL]), 0), SEGMENT, ACCOUNT, MONTHS))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Aggr() uses all 3 terms, but only SEGMENT needs to be a chart dimension&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 08:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-on-measure-problem/m-p/14502#M2368</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-03-13T08:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: calculation on measure problem</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-on-measure-problem/m-p/14503#M2369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;Since you need to display in a separate chart where only dimension is SEGMENT, you can use below :&lt;UL&gt;&lt;LI&gt;For positive:&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;forecast={"&amp;gt;0"}&amp;gt;} forecast)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI&gt; For negative:&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;forecast={"&amp;lt;0"}&amp;gt;} forecast)&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In case you need to display in same chart use below :&lt;UL&gt;&lt;LI&gt;For positive:&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(aggr(sum({&amp;lt;forecast={"&amp;gt;0"}&amp;gt;} forecast),account,month))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt;"&gt;For negative:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(aggr(sum({&amp;lt;forecast={"&amp;lt;0"}&amp;gt;} forecast),account,month))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 08:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-on-measure-problem/m-p/14503#M2369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-13T08:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: calculation on measure problem</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-on-measure-problem/m-p/14504#M2370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot. It works!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 09:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-on-measure-problem/m-p/14504#M2370</guid>
      <dc:creator>sayanpwc</dc:creator>
      <dc:date>2018-03-13T09:25:04Z</dc:date>
    </item>
  </channel>
</rss>

