<?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: Sum with multiple if/vlookups in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934549#M649311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I very much like the approach proposed.&lt;/P&gt;&lt;P&gt;My only issue is that this comes in combination with calculation that distribute an amount over a variable amount of month.&lt;/P&gt;&lt;P&gt;I tried to make it work in my script but this does not work, any chance you can help me fix this?&lt;/P&gt;&lt;P&gt;Here is the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapRates:&lt;/P&gt;&lt;P&gt;LOAD Cat,&lt;/P&gt;&lt;P&gt;&amp;nbsp; //[Basic hourly rate],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //[Direct overhead],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Hourly rate]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tabAmount:&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; [PROJECT NAME :], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [DEPARTMENT :], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Cat. Expenditure], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Title, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cat, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Activity, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WP as ESSP_WP,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Start Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName([Start Date]) as MonthStart,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [End Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Monthname([End Date]) as MonthEnd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Days, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Year([End Date])*12 + Month([End Date]))-(Year([Start Date])*12 + Month([Start Date]))+1 as NumberOfMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Number/amount] as TotalFigure,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecNo() as ID,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Number/amount]/((Month([End Date])-Month([Start Date]))+12*(Year([End Date])-Year([Start Date]))+1) as MonthlyFigure, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(WildMatch([Cat. Expenditure], '1.*', '2.*')&amp;gt;0, ApplyMap('MapRates', Cat), 1) * ([Number/amount]/((Month([End Date])-Month([Start Date]))+12*(Year([End Date])-Year([Start Date]))+1)) As MonthlyCost,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddMonths([Start Date],IterNo()-1) as MonthYear&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;While AddMonths([Start Date],IterNo()-1)&amp;lt;[End Date];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tabMonths:&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD AddMonths(MinMonth,IterNo()-1) as MonthYear&amp;nbsp; &lt;/P&gt;&lt;P&gt;While AddMonths(MinMonth,IterNo()-1)&amp;lt;=Today();&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD Min(MonthYear) as MinMonth&amp;nbsp; &lt;/P&gt;&lt;P&gt;Resident tabAmount;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2015 20:38:22 GMT</pubDate>
    <dc:creator>agaetisproject</dc:creator>
    <dc:date>2015-08-17T20:38:22Z</dc:date>
    <item>
      <title>Sum with multiple if/vlookups</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934544#M649306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am blocked with what seems an easy issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load an Excel file that combine hours or amounts for several cost items.&lt;/P&gt;&lt;P&gt;I agree this is a strange set-up but that is how the client structured its data and have worked around all the way down except for a KPI and a bar chart formula.&lt;/P&gt;&lt;P&gt;The result look like this after loading my it in Qlikview and computing the TotalFigure, MonthlyCost, TotalCost, MonthlyPrice, TotalPrice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="1091"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" width="217"&gt;Cat. Expenditure&lt;/TD&gt;&lt;TD class="xl63" width="59"&gt;Cat&lt;/TD&gt;&lt;TD class="xl64" width="77"&gt;Start Date&lt;/TD&gt;&lt;TD class="xl64" width="77"&gt;End Date&lt;/TD&gt;&lt;TD class="xl64" width="77"&gt;MonthYear&lt;/TD&gt;&lt;TD class="xl67" width="113"&gt;NumberOfMonth&lt;/TD&gt;&lt;TD class="xl65" width="95"&gt;MonthlyFigure&lt;/TD&gt;&lt;TD class="xl66" width="74"&gt;TotalFigure&lt;/TD&gt;&lt;TD class="xl66" width="84"&gt;MonthlyCost&lt;/TD&gt;&lt;TD class="xl66" width="65"&gt;TotalCost&lt;/TD&gt;&lt;TD class="xl66" width="87"&gt;MonthlyPrice&lt;/TD&gt;&lt;TD class="xl66" width="66"&gt;TotalPrice&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;1. Personnel&lt;/TD&gt;&lt;TD class="xl63"&gt;Engineer&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/01/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;31/12/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/01/2016&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;12&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;50.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;600.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;6,501.83&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;78,021.93&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;6,989.46&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;83,873.58&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;1. Personnel&lt;/TD&gt;&lt;TD class="xl63"&gt;Expert&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/01/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;31/12/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/02/2016&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;12&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;50.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;600.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;6,501.83&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;78,021.93&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;6,989.46&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;83,873.58&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;2. Direct Overhead&lt;/TD&gt;&lt;TD class="xl63"&gt;Engineer&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/01/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;31/12/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/01/2016&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;12&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;120.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,300.37&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;15,604.39&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,397.89&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;16,774.72&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;2. Direct Overhead&lt;/TD&gt;&lt;TD class="xl63"&gt;Expert&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/01/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;31/12/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/02/2016&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;12&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;120.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,300.37&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;15,604.39&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,397.89&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;16,774.72&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;3. Travel&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;15/01/2017&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;16/01/2017&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;15/01/2017&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;6,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;6,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;6,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;6,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;6,579.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;6,579.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;3. Travel&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;23/03/2017&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;25/03/2017&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;23/03/2017&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;19,200.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;19,200.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;19,200.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;19,200.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;21,052.80&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;21,052.80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;5. Equipment&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/04/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;16/03/2017&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/02/2017&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;12&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;833.33&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;10,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;833.33&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;10,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;913.75&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;10,965.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;5. Equipment&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/04/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;16/03/2017&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/03/2017&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;12&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;833.33&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;10,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;833.33&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;10,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;913.75&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;10,965.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;6. Dissemination/Communication &lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/10/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;31/12/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/11/2016&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;333.33&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;333.33&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;365.50&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,096.50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;6. Dissemination/Communication &lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/10/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;31/12/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/12/2016&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;333.33&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;333.33&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;365.50&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,096.50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;7. Miscellaneous&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/05/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;31/07/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/06/2016&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;1,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;3,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;3,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,096.50&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;3,289.50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;7. Miscellaneous&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/05/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;31/07/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/07/2016&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;1,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;3,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;3,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,096.50&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;3,289.50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;8. Risk &lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/01/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;31/12/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/11/2016&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;12&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;1,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;12,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;12,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,096.50&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;13,158.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;8. Risk &lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/01/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;31/12/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/12/2016&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;12&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;1,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;12,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;12,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;1,096.50&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;13,158.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;4. External Services&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;15/04/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;28/04/2016&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;15/04/2016&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;10,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;10,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;10,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;10,000.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;10,965.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;10,965.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;4. External Services&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/07/2018&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;4/07/2018&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/07/2018&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;2,400.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;2,400.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;2,400.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;2,400.00&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;2,631.60&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;2,631.60&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I get want I want in a table, I can't manage to compute the sum of monthly cost in a KPI box or even in a bar chart.&lt;/P&gt;&lt;P&gt;The issue is that &lt;STRONG&gt;if Cat. Expenditure is 1. Personnal or 2. Direct Overhead&lt;/STRONG&gt;, I need to apply an hourly rate [Hourly rate] from another table - see attached file - to transform the MonthlyFigure (which represents hours for those items) into a money amount. I need here to account for the Cat profile to select the right rate comprised in the Rate sheet.&lt;/P&gt;&lt;P&gt;But for all other cost items (3. Travel, 5. Equipment, ...), the MonthlyFigure is already an amount so I just need to sum up the amount.&lt;/P&gt;&lt;P&gt;I tried this formula but it does not work:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;if([Cat. Expenditure]='1. Personnel (cat. PSS form 1)',sum(MonthlyFigure*[Hourly rate])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;if([Cat. Expenditure]='2. Direct Overhead&amp;nbsp; (cat. PSS form 9)',sum(MonthlyFigure*[Hourly rate])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;sum(MonthlyFigure)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same issue in a bar chart. I do not get the right value, unless I include Cat. Expenditure as a dimension.&lt;/P&gt;&lt;P&gt;Can you help me solve this issue?&lt;/P&gt;&lt;P&gt;Million thanks Community guys &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2015 20:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934544#M649306</guid>
      <dc:creator>agaetisproject</dc:creator>
      <dc:date>2015-08-16T20:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with multiple if/vlookups</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934545#M649307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try embedding the if() within the sum() aggregation function&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;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000080;"&gt;sum( &lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if( Match( [Cat. Expenditure],'1. Personnel (cat. PSS form 1)','&lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2. Direct Overhead&amp;nbsp; (cat. PSS form 9)'), &lt;/SPAN&gt;&lt;/SPAN&gt;MonthlyFigure*[Hourly rate]))&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; font-family: inherit; color: #000080;"&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; font-family: inherit; color: #000080;"&gt;sum(MonthlyFigure)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2015 20:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934545#M649307</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-16T20:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with multiple if/vlookups</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934546#M649308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if([Cat. Expenditure]='1. Personnel (cat. PSS form 1)',sum({&amp;lt;[Cat. Expenditure]={'1. Personnel (cat. PSS form 1)'}&amp;gt;}MonthlyFigure*[Hourly rate])&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([Cat. Expenditure]='2. Direct Overhead&amp;nbsp; (cat. PSS form 9)',sum({&amp;lt;[Cat. Expenditure]={'2. Direct Overhead&amp;nbsp; (cat. PSS form 9)'}&amp;gt;}MonthlyFigure*[Hourly rate])&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(MonthlyFigure)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 06:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934546#M649308</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-08-17T06:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with multiple if/vlookups</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934547#M649309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you considered applying the rates during the load process. First load the rate table with a mapping load, then load the detail.Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MapRates:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mapping LOAD ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM Rates....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Detail:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(WildMatch([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Cat. Expenditure], '1.*', '2.*'), ApplyMap('&lt;SPAN style="font-size: 13.3333330154419px;"&gt;MapRates', &lt;SPAN style="font-size: 13.3333330154419px;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Cat. Expenditure]), 1) * &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MonthlyFigure) As &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MonthlyCost,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then there is no need for complex expressions in the front end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 06:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934547#M649309</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-17T06:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with multiple if/vlookups</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934548#M649310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry, this does not work Swuehl. I cannot get a result with this.&lt;/P&gt;&lt;P&gt;Looking at the expression, you do not have a sum prior MonthlyFigure*[HOurly rate] while you have one in front of MonthlyFigure, any reason why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 20:28:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934548#M649310</guid>
      <dc:creator>agaetisproject</dc:creator>
      <dc:date>2015-08-17T20:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with multiple if/vlookups</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934549#M649311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I very much like the approach proposed.&lt;/P&gt;&lt;P&gt;My only issue is that this comes in combination with calculation that distribute an amount over a variable amount of month.&lt;/P&gt;&lt;P&gt;I tried to make it work in my script but this does not work, any chance you can help me fix this?&lt;/P&gt;&lt;P&gt;Here is the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapRates:&lt;/P&gt;&lt;P&gt;LOAD Cat,&lt;/P&gt;&lt;P&gt;&amp;nbsp; //[Basic hourly rate],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //[Direct overhead],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Hourly rate]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tabAmount:&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; [PROJECT NAME :], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [DEPARTMENT :], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Cat. Expenditure], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Title, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cat, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Activity, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WP as ESSP_WP,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Start Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName([Start Date]) as MonthStart,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [End Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Monthname([End Date]) as MonthEnd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Days, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Year([End Date])*12 + Month([End Date]))-(Year([Start Date])*12 + Month([Start Date]))+1 as NumberOfMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Number/amount] as TotalFigure,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecNo() as ID,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Number/amount]/((Month([End Date])-Month([Start Date]))+12*(Year([End Date])-Year([Start Date]))+1) as MonthlyFigure, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(WildMatch([Cat. Expenditure], '1.*', '2.*')&amp;gt;0, ApplyMap('MapRates', Cat), 1) * ([Number/amount]/((Month([End Date])-Month([Start Date]))+12*(Year([End Date])-Year([Start Date]))+1)) As MonthlyCost,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddMonths([Start Date],IterNo()-1) as MonthYear&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;While AddMonths([Start Date],IterNo()-1)&amp;lt;[End Date];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tabMonths:&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD AddMonths(MinMonth,IterNo()-1) as MonthYear&amp;nbsp; &lt;/P&gt;&lt;P&gt;While AddMonths(MinMonth,IterNo()-1)&amp;lt;=Today();&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD Min(MonthYear) as MinMonth&amp;nbsp; &lt;/P&gt;&lt;P&gt;Resident tabAmount;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 20:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934549#M649311</guid>
      <dc:creator>agaetisproject</dc:creator>
      <dc:date>2015-08-17T20:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with multiple if/vlookups</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934550#M649312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a sum() for aggregation, I just embedded the if() statement in the sum():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum( &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000080;"&gt;if( Match( [Cat. Expenditure],'1. Personnel (cat. PSS form 1)','&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;2. Direct Overhead&amp;nbsp; (cat. PSS form 9)'), &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MonthlyFigure*[Hourly rate])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I noticed that I left over some closing brackets at the very end of the expression which shouldn't be there, I think you have noticed and removed them?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 20:50:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934550#M649312</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-17T20:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with multiple if/vlookups</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934551#M649314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I don't get there is how it translate the fact that I need the following:&lt;/P&gt;&lt;P&gt;adding&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;MonthlyFigure*[Hourly rate] in case of personnel cost&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;Travel or other type of costs if not personnel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;If I analyse your proposed expression, I get the following 'excuse my lack of scripting science &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;we sum&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;if personnel cost (1.* or 2.*), we multiply by hours&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;if non personnel cost, we need to still consider the personnel costs and add the travel,... cost&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;So, it not one or the other, it is both.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;And when I try, I don't get values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;Could your genius help me out of here?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 21:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934551#M649314</guid>
      <dc:creator>agaetisproject</dc:creator>
      <dc:date>2015-08-17T21:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with multiple if/vlookups</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934552#M649317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, the case for 3 and above could be included into the THEN branch of the IF() statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( if( Match( [Cat. Expenditure],'1. Personnel','2. Direct Overhead'), MonthlyFigure*[Hourly rate], MonthlyFigure))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 21:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934552#M649317</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-17T21:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with multiple if/vlookups</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934553#M649318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It still does not work Swuehl.&lt;/P&gt;&lt;P&gt;Should I add an aggr in there so QlikView understand that he needs to sum up across all Cat. Expense?&lt;/P&gt;&lt;P&gt;One thing to precise is that the [Hourly rate] varies per Cat (not Cat. Expense).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 08:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934553#M649318</guid>
      <dc:creator>agaetisproject</dc:creator>
      <dc:date>2015-08-18T08:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with multiple if/vlookups</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934554#M649319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The LOAD below should read:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapRates:&lt;/P&gt;&lt;P&gt;Mapping LOAD ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Jeff Robertz wrote:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I tried to make it work in my script but this does not work, any chance you can help me fix this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Here is the script:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MapRates:&lt;/P&gt;
&lt;P&gt;LOAD Cat,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; //[Basic hourly rate],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //[Direct overhead],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Hourly rate]&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;...&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 09:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934554#M649319</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-18T09:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with multiple if/vlookups</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934555#M649320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand (seems your setting is different from my mock up attached above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you change and upload the sample QVW from above so that it closer matches your setting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 09:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934555#M649320</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-18T09:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with multiple if/vlookups</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934556#M649321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to share the file with you but this chat seems it does not allow me doing so.&lt;/P&gt;&lt;P&gt;Do you know how to do?&lt;/P&gt;&lt;P&gt;Or alternatively, I could send you the file in direct and post it back to the community once solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 13:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934556#M649321</guid>
      <dc:creator>agaetisproject</dc:creator>
      <dc:date>2015-08-24T13:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with multiple if/vlookups</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934557#M649322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would prefer if you upload your sample file to the forum. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to upload a file by using the advanced editor: Either click on 'use advanced editor' in the top right corner of the editor, or try to edit an existing post of yours, this should also open the advanced editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In advanced editor, there is an 'attach' option on the lower right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 17:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934557#M649322</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-24T17:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sum with multiple if/vlookups</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934558#M649323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stupid as it is, I can't attach the file here so I had to create a new post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/851911"&gt;Product sum with multiple if&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sorry, not the cleanest way but I hope sharing a sample will help close both.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 15:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-multiple-if-vlookups/m-p/934558#M649323</guid>
      <dc:creator>agaetisproject</dc:creator>
      <dc:date>2015-08-25T15:02:47Z</dc:date>
    </item>
  </channel>
</rss>

