<?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: Straight table - sum total not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420837#M485000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David.&lt;/P&gt;&lt;P&gt;since you are using interval match, there is no need to use set analysis for the limits. The only problem would be if you have overlapping dates in your rates table for example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01/11/2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15/11/2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EUR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.14&lt;/P&gt;&lt;P&gt;01/11/2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30/11/2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EUR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.28&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, for billing date 10/11/2010, what is the corrrect rate? 1.14 or 1.28? I used max in my attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check out the attached, but note :&lt;/P&gt;&lt;P&gt;1. I changed the variable expression&lt;/P&gt;&lt;P&gt;2. max is used for overlapping intervals&lt;/P&gt;&lt;P&gt;3. you need to get rid of the sync table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Ioannis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 May 2013 12:43:01 GMT</pubDate>
    <dc:creator>giakoum</dc:creator>
    <dc:date>2013-05-03T12:43:01Z</dc:date>
    <item>
      <title>Straight table - sum total not working</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420826#M484989</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;I'm really hoping someone can help me. I cannot attach the file I'm using so hopefully the details are clear enough below - I'm so confused!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within a table I have the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Client&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bill Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/P&gt;&lt;P&gt;xxx&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; 30/11/10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10,924&lt;/P&gt;&lt;P&gt;xxx&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; 22/06/10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15.650&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Amount column works of the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[BILLINGS Bill Date]={"&amp;gt;=$(cddate1)&amp;lt;=$(cddate2)"},CUR={$(=vSelCur)}&amp;gt;}[BILLINGS FeesBilled Amt])&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[BILLINGS Bill Date]={"&amp;gt;=$(cddate1)&amp;lt;=$(cddate2)"},CUR={$(=vSelCur)}&amp;gt;}cdrate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which shows me a total of 26.574&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if I remove the bill date from the above table, I get a total of 53,054! (using the same expression as above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Client&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/P&gt;&lt;P&gt;xxx&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;&amp;nbsp;&amp;nbsp; 10,924&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've looked on the website, and I suspect I need to use the aggr function within my expression, but I'm most probably wrong, why is the total not summing correctly and how can I get it to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dave.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 11:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420826#M484989</guid>
      <dc:creator />
      <dc:date>2013-05-02T11:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum total not working</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420827#M484990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I presume you remove the field bill date from the chart? Then yes, you have to aggr :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;your expression&amp;gt;&lt;/P&gt;&lt;P&gt;, Client, [Bill Date])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this returns more than one value, you need to sum too :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;your expression&amp;gt;&lt;/P&gt;&lt;P&gt;, Client, [Bill Date]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 11:33:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420827#M484990</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2013-05-02T11:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum total not working</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420828#M484991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry the second chart should show the total of both bill dates - so 53,054.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried adding the below formula but it does not show anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(sum({$&amp;lt;[BILLINGS Bill Date]={"&amp;gt;=$(cddate1)&amp;lt;=$(cddate2)"},CUR={$(=vSelCur)}&amp;gt;}[BILLINGS FeesBilled Amt])&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;[BILLINGS Bill Date]={"&amp;gt;=$(cddate1)&amp;lt;=$(cddate2)"},CUR={$(=vSelCur)}&amp;gt;}[cdrate]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 11:46:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420828#M484991</guid>
      <dc:creator />
      <dc:date>2013-05-02T11:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum total not working</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420829#M484992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry the second chart should show the total of both bill dates - so 53,054.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried adding the below formula but it does not show anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(sum({$&amp;lt;[BILLINGS Bill Date]={"&amp;gt;=$(cddate1)&amp;lt;=$(cddate2)"},CUR={$(=vSelCur)}&amp;gt;}[BILLINGS FeesBilled Amt])&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;[BILLINGS Bill Date]={"&amp;gt;=$(cddate1)&amp;lt;=$(cddate2)"},CUR={$(=vSelCur)}&amp;gt;}[cdrate]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 11:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420829#M484992</guid>
      <dc:creator />
      <dc:date>2013-05-02T11:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum total not working</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420830#M484993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aggr(&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;sum({$&amp;lt;[BILLINGS Bill Date]={"&amp;gt;=$(cddate1)&amp;lt;=$(cddate2)"},CUR={$(=vSelCur)}&amp;gt;}[BILLINGS FeesBilled Amt])&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;*&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;sum({$&amp;lt;[BILLINGS Bill Date]={"&amp;gt;=$(cddate1)&amp;lt;=$(cddate2)"},CUR={$(=vSelCur)}&amp;gt;}cdrate)&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;, &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Client, [Bill Date])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;but I am not sure what you mean by "&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sorry the second chart should show the total of both bill dates - so 53,054.&lt;/SPAN&gt;"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 11:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420830#M484993</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2013-05-02T11:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum total not working</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420831#M484994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I mean is that the chart should only show the client name and the amount only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added your formula to my table, but it still does not bring any value back:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[BILLINGS Bill Date]={"&amp;gt;=$(cddate1)&amp;lt;=$(cddate2)"},CUR={$(=vSelCur)}&amp;gt;}[BILLINGS FeesBilled Amt])&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[BILLINGS Bill Date]={"&amp;gt;=$(cddate1)&amp;lt;=$(cddate2)"},CUR={$(=vSelCur)}&amp;gt;}cdrate)&lt;/P&gt;&lt;P&gt;, [Client Name], [BILLINGS Bill Date]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 11:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420831#M484994</guid>
      <dc:creator />
      <dc:date>2013-05-02T11:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum total not working</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420832#M484995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sample application would help if you cannot post the original&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 11:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420832#M484995</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2013-05-02T11:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum total not working</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420833#M484996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've mocked up an example of the application I'm using, note that the figures are in GBP, when you click on the table holding client, amount the figures should multiply by the rate in the image, so for HKD instead of showing 3,306 it shows 37,120.80! this is the problem I have my formula is not calculating correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 15:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420833#M484996</guid>
      <dc:creator />
      <dc:date>2013-05-02T15:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum total not working</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420834#M484997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried to hide these columns in my table but that doesn't seem to work as I get 2 lines still for the client, I have tried what Loannis has suggested as well but the formula always comes back as displaying nothing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 16:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420834#M484997</guid>
      <dc:creator />
      <dc:date>2013-05-02T16:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum total not working</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420835#M484998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is this the result you need ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="40378" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.PNG" src="https://community.qlik.com/legacyfs/online/40378_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 07:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420835#M484998</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2013-05-03T07:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum total not working</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420836#M484999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ioannis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your last post, the table on the left is what my end result should be, so if you select EUR currency the total for client X should be £16.615, if you select GBP the amount is 15,000 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isuspecting my example is very basic, as in my actual model the amounts I have are in GBP like this example but I want the ability for the user to be able to slect any currency (EUR, HKD, USD, SGD, CHF) and it will take the indivdual lines and multiply by the specific rate giving a total for each client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 08:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420836#M484999</guid>
      <dc:creator />
      <dc:date>2013-05-03T08:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum total not working</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420837#M485000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David.&lt;/P&gt;&lt;P&gt;since you are using interval match, there is no need to use set analysis for the limits. The only problem would be if you have overlapping dates in your rates table for example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01/11/2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15/11/2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EUR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.14&lt;/P&gt;&lt;P&gt;01/11/2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30/11/2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EUR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.28&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, for billing date 10/11/2010, what is the corrrect rate? 1.14 or 1.28? I used max in my attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check out the attached, but note :&lt;/P&gt;&lt;P&gt;1. I changed the variable expression&lt;/P&gt;&lt;P&gt;2. max is used for overlapping intervals&lt;/P&gt;&lt;P&gt;3. you need to get rid of the sync table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Ioannis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 12:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420837#M485000</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2013-05-03T12:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum total not working</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420838#M485001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ioannis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is gettign very close now&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the EUR rate 1.14 date range is 01/11/10 to 15/11/10 and the second Euro rate is 1.28 for 16/11/10 to 30/11/10 - how can I get the sum of each of these rows give me an overall total for that client? As I think the max function will not work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really apprciate all your help so far with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 13:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420838#M485001</guid>
      <dc:creator />
      <dc:date>2013-05-03T13:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum total not working</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420839#M485002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interval match has taken care of that. if you have one rate for each interval, it doesn't matter if it is min or max or only. Max is only there if you have more that one rate for the same interval.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 12:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420839#M485002</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2013-05-06T12:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table - sum total not working</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420840#M485003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp; Thanks Ioannis,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help and patience with my query is really appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After looking at your example and identifying that I only have one rate per currency for each interval meant I just needed to tweak your formula to this, now it is working perfectly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(TOTAL &amp;lt;[Client Group Name],[Client Name],[Matter Name], [BILLINGS Bill Date]&amp;gt; &lt;/P&gt;&lt;P&gt; Aggr(sum({$&amp;lt;CUR={$(=vSelCur)}&amp;gt;} [cdrate])*sum([BILLINGS FeesBilled Amt])&lt;/P&gt;&lt;P&gt; ,[Client Group Name], [Client Name],[Matter Name], [BILLINGS Bill Date]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 08:56:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-total-not-working/m-p/420840#M485003</guid>
      <dc:creator />
      <dc:date>2013-05-07T08:56:58Z</dc:date>
    </item>
  </channel>
</rss>

