<?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 Combine various Currencies in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Combine-various-Currencies/m-p/1385206#M421821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a need to consolidate currencies from various countries. The currency and exchange rate for each Country is different. The data source has each day's exchange rate I am able to use. Among the fields available are: &lt;/P&gt;&lt;P&gt;County,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Exchange_Rate - (associated to the Date),&lt;/P&gt;&lt;P&gt;Currency_Code - (Local, USD, EURO) &lt;/P&gt;&lt;P&gt;Revenue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select one Country only I get a Total for the expression but when there are multiple Countries selected, I have to select Total Mode "sum of rows" to get a Total. I would think that this is something to do with AGGR, but I cannot get it correct. The expression I am using is:&amp;nbsp; &lt;/P&gt;&lt;P&gt;"AGGR(sum(Revenue)/&lt;SPAN style="font-size: 13.3333px;"&gt;Exchange_Rate&lt;/SPAN&gt;,&lt;SPAN style="font-size: 13.3333px;"&gt;County&lt;/SPAN&gt;,Date)" &lt;/P&gt;&lt;P&gt;I have also tried: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;"AGGR(sum(Revenue)/&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Exchange_Rate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;County&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,Date,&lt;SPAN style="font-size: 13.3333px;"&gt;Currency_Code &lt;/SPAN&gt;)" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can someone assist with the reason for this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Sep 2017 03:44:41 GMT</pubDate>
    <dc:creator>johngouws</dc:creator>
    <dc:date>2017-09-11T03:44:41Z</dc:date>
    <item>
      <title>Combine various Currencies</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-various-Currencies/m-p/1385206#M421821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a need to consolidate currencies from various countries. The currency and exchange rate for each Country is different. The data source has each day's exchange rate I am able to use. Among the fields available are: &lt;/P&gt;&lt;P&gt;County,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;Exchange_Rate - (associated to the Date),&lt;/P&gt;&lt;P&gt;Currency_Code - (Local, USD, EURO) &lt;/P&gt;&lt;P&gt;Revenue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select one Country only I get a Total for the expression but when there are multiple Countries selected, I have to select Total Mode "sum of rows" to get a Total. I would think that this is something to do with AGGR, but I cannot get it correct. The expression I am using is:&amp;nbsp; &lt;/P&gt;&lt;P&gt;"AGGR(sum(Revenue)/&lt;SPAN style="font-size: 13.3333px;"&gt;Exchange_Rate&lt;/SPAN&gt;,&lt;SPAN style="font-size: 13.3333px;"&gt;County&lt;/SPAN&gt;,Date)" &lt;/P&gt;&lt;P&gt;I have also tried: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;"AGGR(sum(Revenue)/&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Exchange_Rate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;County&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,Date,&lt;SPAN style="font-size: 13.3333px;"&gt;Currency_Code &lt;/SPAN&gt;)" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can someone assist with the reason for this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 03:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-various-Currencies/m-p/1385206#M421821</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2017-09-11T03:44:41Z</dc:date>
    </item>
  </channel>
</rss>

