<?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 How to use FieldValue() for Currency Convertion in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-FieldValue-for-Currency-Convertion/m-p/1041922#M935820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I’m new in Qlikview. I need to implement currency conversion in order to convert &lt;SPAN style="font-size: 13.3333px;"&gt;the values available in a table for &lt;/SPAN&gt;any of the currencies proposed (Norwegian Krone (NOK), Euro, USD or Pound (GBP), by the date (currencies rates base in monthly values) .&lt;/P&gt;&lt;P&gt;I have a currency rate table, with all the corresponding values for the currencies, where I have a field with the concatenated values: ‘From-To-Year-Month’ that is called exchkey.&lt;/P&gt;&lt;P&gt;I have tried to use the functions FieldValue() and FieldIndex() to get the corresponding Rate value from the table. At the beginning it seems to work ok, but I have realized it don’t return the correct rate value, only works for the first value in the table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 825px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Doc Number&lt;/TD&gt;&lt;TD class="xl64" width="120"&gt;Net Value&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="138"&gt;Rate&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="175"&gt;&amp;nbsp; Net value coverted&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="132"&gt;Value 'exchkey'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="border-top: none;"&gt;4400033474&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Kr 210000,00&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;0,078439&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;€ 16472,19&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;NOK-EUR-2014-1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="border-top: none;"&gt;4400033481&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;€ 320000,00&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;€ 320000,00&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;EUR-EUR-2014-1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="border-top: none;"&gt;4400033485&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;$ 20880,00&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;8,838021&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;€ 184537,88&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;USD-EUR-2014-1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="border-top: none;"&gt;4400033502&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Kr 1361840,00&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;0,078439&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;€ 106821,37&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;NOK-EUR-2014-1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 660px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="122"&gt;&lt;STRONG&gt;E&lt;SPAN style="color: #575757;"&gt;xch. key&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;ExRt&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;From&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;To&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="83"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;Curr Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="78"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt; Exch. Rate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="88"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;Curr year&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="97"&gt;&lt;STRONG style="color: #575757;"&gt;Curr month&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;EUR-EUR-2014-1&lt;/TD&gt;&lt;TD&gt;XRATE&lt;/TD&gt;&lt;TD&gt;EUR&lt;/TD&gt;&lt;TD&gt;EUR&lt;/TD&gt;&lt;TD align="right"&gt;20140101&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; 2014&lt;/TD&gt;&lt;TD align="right" style="text-align: center;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;NOK-EUR-2014-1&lt;/TD&gt;&lt;TD&gt;XRATE&lt;/TD&gt;&lt;TD&gt;NOK&lt;/TD&gt;&lt;TD&gt;EUR&lt;/TD&gt;&lt;TD align="right"&gt;20140101&lt;/TD&gt;&lt;TD align="right"&gt;&lt;STRONG&gt;0.119213&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; 2014&lt;/TD&gt;&lt;TD align="right" style="text-align: center;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;NOK-GBP-2016-1&lt;/TD&gt;&lt;TD&gt;XRATE&lt;/TD&gt;&lt;TD&gt;NOK&lt;/TD&gt;&lt;TD&gt;GBP&lt;/TD&gt;&lt;TD align="right"&gt;20160101&lt;/TD&gt;&lt;TD align="right"&gt;0.078439&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; 2016&lt;/TD&gt;&lt;TD align="right" style="text-align: center;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;USD-EUR-2014-1&lt;/TD&gt;&lt;TD&gt;XRATE&lt;/TD&gt;&lt;TD&gt;USD&lt;/TD&gt;&lt;TD&gt;EUR&lt;/TD&gt;&lt;TD align="right"&gt;20140101&lt;/TD&gt;&lt;TD align="right"&gt;&lt;STRONG&gt;0.734198&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; 2014&lt;/TD&gt;&lt;TD align="right" style="text-align: center;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;USD-NOK-2016-1&lt;/TD&gt;&lt;TD&gt;XRATE&lt;/TD&gt;&lt;TD&gt;USD&lt;/TD&gt;&lt;TD&gt;NOK&lt;/TD&gt;&lt;TD align="right"&gt;20160101&lt;/TD&gt;&lt;TD align="right"&gt;8.838021&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; 2016&lt;/TD&gt;&lt;TD align="right" style="text-align: center;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me with this issue?. I would like to know if there are a mistake in the way I’m using FieldValue formula, or if the currency conversion should be done in the script side and not during the expressions calculation?.&lt;/P&gt;&lt;P&gt;I have check another posts but I didn't found any similar case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the example of the application I have use.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2016 09:11:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-16T09:11:17Z</dc:date>
    <item>
      <title>How to use FieldValue() for Currency Convertion</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-FieldValue-for-Currency-Convertion/m-p/1041922#M935820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I’m new in Qlikview. I need to implement currency conversion in order to convert &lt;SPAN style="font-size: 13.3333px;"&gt;the values available in a table for &lt;/SPAN&gt;any of the currencies proposed (Norwegian Krone (NOK), Euro, USD or Pound (GBP), by the date (currencies rates base in monthly values) .&lt;/P&gt;&lt;P&gt;I have a currency rate table, with all the corresponding values for the currencies, where I have a field with the concatenated values: ‘From-To-Year-Month’ that is called exchkey.&lt;/P&gt;&lt;P&gt;I have tried to use the functions FieldValue() and FieldIndex() to get the corresponding Rate value from the table. At the beginning it seems to work ok, but I have realized it don’t return the correct rate value, only works for the first value in the table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 825px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Doc Number&lt;/TD&gt;&lt;TD class="xl64" width="120"&gt;Net Value&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="138"&gt;Rate&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="175"&gt;&amp;nbsp; Net value coverted&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="132"&gt;Value 'exchkey'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="border-top: none;"&gt;4400033474&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Kr 210000,00&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;0,078439&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;€ 16472,19&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;NOK-EUR-2014-1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="border-top: none;"&gt;4400033481&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;€ 320000,00&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;€ 320000,00&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;EUR-EUR-2014-1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="border-top: none;"&gt;4400033485&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;$ 20880,00&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;8,838021&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;€ 184537,88&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;USD-EUR-2014-1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="border-top: none;"&gt;4400033502&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Kr 1361840,00&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;0,078439&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;€ 106821,37&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;NOK-EUR-2014-1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 660px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="122"&gt;&lt;STRONG&gt;E&lt;SPAN style="color: #575757;"&gt;xch. key&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;ExRt&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;From&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;To&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="83"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;Curr Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="78"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt; Exch. Rate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="88"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;Curr year&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="97"&gt;&lt;STRONG style="color: #575757;"&gt;Curr month&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;EUR-EUR-2014-1&lt;/TD&gt;&lt;TD&gt;XRATE&lt;/TD&gt;&lt;TD&gt;EUR&lt;/TD&gt;&lt;TD&gt;EUR&lt;/TD&gt;&lt;TD align="right"&gt;20140101&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; 2014&lt;/TD&gt;&lt;TD align="right" style="text-align: center;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;NOK-EUR-2014-1&lt;/TD&gt;&lt;TD&gt;XRATE&lt;/TD&gt;&lt;TD&gt;NOK&lt;/TD&gt;&lt;TD&gt;EUR&lt;/TD&gt;&lt;TD align="right"&gt;20140101&lt;/TD&gt;&lt;TD align="right"&gt;&lt;STRONG&gt;0.119213&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; 2014&lt;/TD&gt;&lt;TD align="right" style="text-align: center;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;NOK-GBP-2016-1&lt;/TD&gt;&lt;TD&gt;XRATE&lt;/TD&gt;&lt;TD&gt;NOK&lt;/TD&gt;&lt;TD&gt;GBP&lt;/TD&gt;&lt;TD align="right"&gt;20160101&lt;/TD&gt;&lt;TD align="right"&gt;0.078439&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; 2016&lt;/TD&gt;&lt;TD align="right" style="text-align: center;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;USD-EUR-2014-1&lt;/TD&gt;&lt;TD&gt;XRATE&lt;/TD&gt;&lt;TD&gt;USD&lt;/TD&gt;&lt;TD&gt;EUR&lt;/TD&gt;&lt;TD align="right"&gt;20140101&lt;/TD&gt;&lt;TD align="right"&gt;&lt;STRONG&gt;0.734198&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; 2014&lt;/TD&gt;&lt;TD align="right" style="text-align: center;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;USD-NOK-2016-1&lt;/TD&gt;&lt;TD&gt;XRATE&lt;/TD&gt;&lt;TD&gt;USD&lt;/TD&gt;&lt;TD&gt;NOK&lt;/TD&gt;&lt;TD align="right"&gt;20160101&lt;/TD&gt;&lt;TD align="right"&gt;8.838021&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; 2016&lt;/TD&gt;&lt;TD align="right" style="text-align: center;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me with this issue?. I would like to know if there are a mistake in the way I’m using FieldValue formula, or if the currency conversion should be done in the script side and not during the expressions calculation?.&lt;/P&gt;&lt;P&gt;I have check another posts but I didn't found any similar case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the example of the application I have use.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 09:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-FieldValue-for-Currency-Convertion/m-p/1041922#M935820</guid>
      <dc:creator />
      <dc:date>2016-02-16T09:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use FieldValue() for Currency Convertion</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-FieldValue-for-Currency-Convertion/m-p/1041923#M935821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your first mistake is attempting to use FieldValue for this purpose. FieldValue gets values from the field's symbol table, and has no knowledge of nor interest in the associative structure of the Qlikview data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would join the currency rates into the fact table based on the date and the currency of the transaction, and the required currencies to convert to. The simplest would be a single output currency, so you would need to add a single rate field with the join. Then your expression would simply multiply (or divide) the transaction amount by the rate value joined to the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would perform the joining of the rates to the transactions in the load script. The conversion to a target currency can be done in the load script or in the front end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 10:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-FieldValue-for-Currency-Convertion/m-p/1041923#M935821</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-02-16T10:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use FieldValue() for Currency Convertion</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-FieldValue-for-Currency-Convertion/m-p/1041924#M935822</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;Thank for your prompt answer. &lt;/P&gt;&lt;P&gt;This solutions means I need to join so many rates as currencies I have: Rate_NOK, Rate_USD, Rate_GBP, Rate EUR and so on, right?.&lt;/P&gt;&lt;P&gt;Do you have any example of the join?.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 11:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-FieldValue-for-Currency-Convertion/m-p/1041924#M935822</guid>
      <dc:creator />
      <dc:date>2016-02-16T11:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use FieldValue() for Currency Convertion</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-FieldValue-for-Currency-Convertion/m-p/1041925#M935823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many currencies do you need to report in? I would convert everything to a standard currency when loading so you need to join in the conversions to convert to the standard - these can be discarded after the load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you need to load the conversions from the standard to the reporting currency.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;These will be used to dynamically convert the amounts in the front end to the user-selected reporting currency. I have done this with about 20 transaction currencies and 5 reporting currencies. You need to join a few rates but that should not be too onerous.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I don't have a suitable example for you at the moment. You might be able to find an example if you search the community site.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 09:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-FieldValue-for-Currency-Convertion/m-p/1041925#M935823</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-02-17T09:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use FieldValue() for Currency Convertion</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-FieldValue-for-Currency-Convertion/m-p/1041926#M935824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan, Thanks for your support. I will try your proposal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 10:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-FieldValue-for-Currency-Convertion/m-p/1041926#M935824</guid>
      <dc:creator />
      <dc:date>2016-02-17T10:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use FieldValue() for Currency Convertion</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-FieldValue-for-Currency-Convertion/m-p/1041927#M935825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a simplified example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14557157431164950" jivemacro_uid="_14557157431164950" modifiedtitle="true"&gt;
&lt;P&gt;// Load FX rates &lt;/P&gt;
&lt;P&gt;FXSpot:&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FromCcy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ZAR' As ToCcy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rate&lt;/P&gt;
&lt;P&gt;FROM FXSpot.csv;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// Build mapping tables containing reporting exhange rates&lt;/P&gt;
&lt;P&gt;// Since the FX Rates are always 'to ZAR', use the inverse to convert from ZAR&lt;/P&gt;
&lt;P&gt;T_Rates:&lt;/P&gt;
&lt;P&gt;MapUSD:&lt;/P&gt;
&lt;P&gt;Mapping LOAD Date As TradeDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/Rate As USD&lt;/P&gt;
&lt;P&gt;Resident FXSpot&lt;/P&gt;
&lt;P&gt;Where FromCcy = 'USD' And ToCcy = 'ZAR';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MapGBP:&lt;/P&gt;
&lt;P&gt;Mapping LOAD Date As TradeDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/Rate As GBP&lt;/P&gt;
&lt;P&gt;Resident FXSpot&lt;/P&gt;
&lt;P&gt;Where FromCcy = 'GBP' And ToCcy = 'ZAR';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MapEUR:&lt;/P&gt;
&lt;P&gt;Mapping LOAD Date As TradeDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/Rate As EUR&lt;/P&gt;
&lt;P&gt;Resident FXSpot&lt;/P&gt;
&lt;P&gt;Where FromCcy = 'EUR' And ToCcy = 'ZAR';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// Load main fact table&lt;/P&gt;
&lt;P&gt;T_Trades:&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TradeNo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TradeDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Client,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Currency,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 As ZAR,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('MapUSD', TradeDate, 1) As USD,&amp;nbsp;&amp;nbsp; // defaults missing to '1'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('MapGBP', TradeDate, 1) As GBP,&amp;nbsp;&amp;nbsp; // may want to default to '0'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('MapEUR', TradeDate, 1) As EUR,&lt;/P&gt;
&lt;P&gt;FROM Trades.csv;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// Bring in all the rates to convert the trade amounts to ZAR&lt;/P&gt;
&lt;P&gt;Left Join(T_Trades)&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date As TradeDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FromCcy As Currency,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rate&lt;/P&gt;
&lt;P&gt;Resident FXSpot &lt;/P&gt;
&lt;P&gt;Where ToCcy = 'ZAR';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// Compute the ZAR amount. &lt;/P&gt;
&lt;P&gt;// Keep the Base currency amount and/or TradeExchangeRate if required.&lt;/P&gt;
&lt;P&gt;Trades:&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;LOAD TradeNo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TradeDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Client,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Currency,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount as AmountBase,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount * Alt(Rate, 1) As Amount,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rate As TradeExchangeRate&lt;/P&gt;
&lt;P&gt;Resident T_Trades;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// Clean up&lt;/P&gt;
&lt;P&gt;DROP Table T_Trades;&lt;/P&gt;
&lt;P&gt;DROP Table FXSpot;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/*&lt;/P&gt;
&lt;P&gt;Create a variable vCurrency in an input box&lt;/P&gt;
&lt;P&gt;Constrain to 'ZAR', 'USD', 'GBP', 'EUR'&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;In your expressions for amount:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;......&amp;gt;} Amount * [$(vCurrency)]&amp;nbsp; )&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;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;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a variable vCurrency in an input box&lt;/P&gt;&lt;P&gt;Constrain to 'ZAR', 'USD', 'GBP', 'EUR'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your expressions for amount:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum({&amp;lt;......&amp;gt;} Amount * [$(=vCurrency)])&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 13:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-FieldValue-for-Currency-Convertion/m-p/1041927#M935825</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-02-17T13:32:03Z</dc:date>
    </item>
  </channel>
</rss>

