<?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 Product sum with multiple if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Product-sum-with-multiple-if/m-p/992056#M650945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see on the doc attached, I am trying to calculate an amount for different profiles using their hourly rate.&lt;/P&gt;&lt;P&gt;The formula is in essence:&lt;/P&gt;&lt;P&gt;- if Cat E is personnel (1.* or 2.*) , then vlookup for the corresponding profile (Cat) and apply corresponding rate&lt;/P&gt;&lt;P&gt;- if Cat E is expense (3. and above), use the amount provided (there is no hours here)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at the page 'Step 2 - input' I manage to get the formula working properly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Cat. Expenditure]='1. Personnel (cat. PSS form 1)',sum(MonthlyFigure*[Hourly rate]),&lt;/P&gt;&lt;P&gt;if([Cat. Expenditure]='2. Direct Overhead&amp;nbsp; (cat. PSS form 9)',sum(MonthlyFigure*[Hourly rate]),&lt;/P&gt;&lt;P&gt;sum(MonthlyFigure)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But on the sheet 'monthly distribution', when I try to replicate in a KPI box, it does not work.&lt;/P&gt;&lt;P&gt;It seems the aggregation does not happen without me understanding why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me understand why there is a different behavior and help me fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2015 14:58:46 GMT</pubDate>
    <dc:creator>agaetisproject</dc:creator>
    <dc:date>2015-08-25T14:58:46Z</dc:date>
    <item>
      <title>Product sum with multiple if</title>
      <link>https://community.qlik.com/t5/QlikView/Product-sum-with-multiple-if/m-p/992056#M650945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see on the doc attached, I am trying to calculate an amount for different profiles using their hourly rate.&lt;/P&gt;&lt;P&gt;The formula is in essence:&lt;/P&gt;&lt;P&gt;- if Cat E is personnel (1.* or 2.*) , then vlookup for the corresponding profile (Cat) and apply corresponding rate&lt;/P&gt;&lt;P&gt;- if Cat E is expense (3. and above), use the amount provided (there is no hours here)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at the page 'Step 2 - input' I manage to get the formula working properly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Cat. Expenditure]='1. Personnel (cat. PSS form 1)',sum(MonthlyFigure*[Hourly rate]),&lt;/P&gt;&lt;P&gt;if([Cat. Expenditure]='2. Direct Overhead&amp;nbsp; (cat. PSS form 9)',sum(MonthlyFigure*[Hourly rate]),&lt;/P&gt;&lt;P&gt;sum(MonthlyFigure)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But on the sheet 'monthly distribution', when I try to replicate in a KPI box, it does not work.&lt;/P&gt;&lt;P&gt;It seems the aggregation does not happen without me understanding why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me understand why there is a different behavior and help me fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 14:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Product-sum-with-multiple-if/m-p/992056#M650945</guid>
      <dc:creator>agaetisproject</dc:creator>
      <dc:date>2015-08-25T14:58:46Z</dc:date>
    </item>
  </channel>
</rss>

