<?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 Offset currency changes based on Year 1 FX rate. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Offset-currency-changes-based-on-Year-1-FX-rate/m-p/1444012#M796812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been trying to calculate an offset in sales caused by currency change in Branch Local currency. &lt;/P&gt;&lt;P&gt;The group currency is EUR and i have FXchange table that has FX rates for EUR to Local currency for 15 currencies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been successful to calculate this for each of the currencies but when I want to display all of them (currency as dimension) then it goes wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So To calculate the the offset I use the following formula where I am want to Convert the Group currency value to local currency and then convert it back to Group currency based on the First Fiscal year selecte:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum([Sales Group Currency]&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum([Sales Group Currency]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;*&amp;nbsp; (avg(FXRate) /&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;avg({$&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &amp;lt;&amp;nbsp; [FXYEAR] = {"$(=min([Fiscal Year]))"}&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} FXRate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't work as the "&lt;SPAN style="font-size: 10pt;"&gt;avg({$&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &amp;lt;&amp;nbsp; [FXYEAR] = {"$(=min([Fiscal Year]))"}&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} FXRate" is calculated only for the first year but i want to use it to divide&amp;nbsp; all years. So basically how can I calculate a FX conversion rate for all years based on the FXRate of the first year?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have tried to put this into a variable and then the calculation work for one selected currency but not when I add more currencies to the graph as then the variable is averaging FX rates of all the currencies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;= Sum([Sales Group Currency]&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;-&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum([Sales Group Currency]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;*&amp;nbsp; (avg(FXRate) /&amp;nbsp;&amp;nbsp; vFXminYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have only been using QlikView for a month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;All suggestions are appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Offset currency changes based on Year 1 FX rate.</title>
      <link>https://community.qlik.com/t5/QlikView/Offset-currency-changes-based-on-Year-1-FX-rate/m-p/1444012#M796812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been trying to calculate an offset in sales caused by currency change in Branch Local currency. &lt;/P&gt;&lt;P&gt;The group currency is EUR and i have FXchange table that has FX rates for EUR to Local currency for 15 currencies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been successful to calculate this for each of the currencies but when I want to display all of them (currency as dimension) then it goes wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So To calculate the the offset I use the following formula where I am want to Convert the Group currency value to local currency and then convert it back to Group currency based on the First Fiscal year selecte:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum([Sales Group Currency]&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum([Sales Group Currency]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;*&amp;nbsp; (avg(FXRate) /&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;avg({$&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &amp;lt;&amp;nbsp; [FXYEAR] = {"$(=min([Fiscal Year]))"}&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} FXRate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't work as the "&lt;SPAN style="font-size: 10pt;"&gt;avg({$&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &amp;lt;&amp;nbsp; [FXYEAR] = {"$(=min([Fiscal Year]))"}&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;} FXRate" is calculated only for the first year but i want to use it to divide&amp;nbsp; all years. So basically how can I calculate a FX conversion rate for all years based on the FXRate of the first year?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have tried to put this into a variable and then the calculation work for one selected currency but not when I add more currencies to the graph as then the variable is averaging FX rates of all the currencies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;= Sum([Sales Group Currency]&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;-&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum([Sales Group Currency]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;*&amp;nbsp; (avg(FXRate) /&amp;nbsp;&amp;nbsp; vFXminYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have only been using QlikView for a month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;All suggestions are appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Offset-currency-changes-based-on-Year-1-FX-rate/m-p/1444012#M796812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

