<?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 Problems with currency in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-currency/m-p/1290023#M517585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a document where I have SalesInvoicelines with Company, Datalevel and LineAmount. This LineAmounts are divided in ActualAmount and BudgetAmount depending on DataLevel. I have also a currency-rate because the amount can be in another currency like USD.&lt;/P&gt;&lt;P&gt;So in my script I have two calculations:&lt;/P&gt;&lt;P&gt; if (DataLevel = 'Budget' and&amp;nbsp; SalesInvoiceLineNumber &amp;gt; 0,(LineAmount/DWHConsolitationCompCurrencyExchangeRateToCurrency),NULL()) as BudgetAmount,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (DataLevel = 'Actual' and ( SalesInvoiceLineNumber = 0 or&amp;nbsp; SalesInvoiceLineNumber &amp;gt; 12),(LineAmount/DWHConsolitationCompCurrencyExchangeRateToCurrency),NULL()) as ActualAmount,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also loading a currencytable with different currencies. In the script I have a tab where a load that qvd and create a currencytable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On my Dashboard I have several tables with dimensions like Year, Month, Company etc. I use als also different expressions to calculate Actual and Budget.&lt;/P&gt;&lt;P&gt;Some expressions are :&lt;/P&gt;&lt;P&gt;= Sum({$ &amp;lt; Year = {$(= vCurrentYear)}, Month = {"&amp;lt;= $(=max(Month))"}, Quarter =, Month= &amp;gt; } ActualAmount)&lt;/P&gt;&lt;P&gt;= Sum({$ &amp;lt; Year = {$(= max(Year))}&amp;gt; } ActualAmount)&lt;/P&gt;&lt;P&gt;or simple = SUM(ActualAmount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Multibox for choosing the currency. When I build in the ExchangeRate, like = Sum(ActualAmount * ExchangeRate) I have to divide it by 2 to get the right amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;P&gt;1. How can I get EUR as Default Currency and 1 as Default ExchangeRate&lt;/P&gt;&lt;P&gt;2. Is my currency table correct created (tried to build in a intervalmatch) &lt;/P&gt;&lt;P&gt;3. Why should I divide the amount by 2 to get the right amounts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As example I have a little document uploaded where my currency&amp;nbsp; table is created and a little part of the InvoiceLines is loaded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Court&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2016 12:49:25 GMT</pubDate>
    <dc:creator>pacoli2013</dc:creator>
    <dc:date>2016-12-20T12:49:25Z</dc:date>
    <item>
      <title>Problems with currency</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-currency/m-p/1290023#M517585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a document where I have SalesInvoicelines with Company, Datalevel and LineAmount. This LineAmounts are divided in ActualAmount and BudgetAmount depending on DataLevel. I have also a currency-rate because the amount can be in another currency like USD.&lt;/P&gt;&lt;P&gt;So in my script I have two calculations:&lt;/P&gt;&lt;P&gt; if (DataLevel = 'Budget' and&amp;nbsp; SalesInvoiceLineNumber &amp;gt; 0,(LineAmount/DWHConsolitationCompCurrencyExchangeRateToCurrency),NULL()) as BudgetAmount,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (DataLevel = 'Actual' and ( SalesInvoiceLineNumber = 0 or&amp;nbsp; SalesInvoiceLineNumber &amp;gt; 12),(LineAmount/DWHConsolitationCompCurrencyExchangeRateToCurrency),NULL()) as ActualAmount,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also loading a currencytable with different currencies. In the script I have a tab where a load that qvd and create a currencytable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On my Dashboard I have several tables with dimensions like Year, Month, Company etc. I use als also different expressions to calculate Actual and Budget.&lt;/P&gt;&lt;P&gt;Some expressions are :&lt;/P&gt;&lt;P&gt;= Sum({$ &amp;lt; Year = {$(= vCurrentYear)}, Month = {"&amp;lt;= $(=max(Month))"}, Quarter =, Month= &amp;gt; } ActualAmount)&lt;/P&gt;&lt;P&gt;= Sum({$ &amp;lt; Year = {$(= max(Year))}&amp;gt; } ActualAmount)&lt;/P&gt;&lt;P&gt;or simple = SUM(ActualAmount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Multibox for choosing the currency. When I build in the ExchangeRate, like = Sum(ActualAmount * ExchangeRate) I have to divide it by 2 to get the right amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;P&gt;1. How can I get EUR as Default Currency and 1 as Default ExchangeRate&lt;/P&gt;&lt;P&gt;2. Is my currency table correct created (tried to build in a intervalmatch) &lt;/P&gt;&lt;P&gt;3. Why should I divide the amount by 2 to get the right amounts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As example I have a little document uploaded where my currency&amp;nbsp; table is created and a little part of the InvoiceLines is loaded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Court&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 12:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-currency/m-p/1290023#M517585</guid>
      <dc:creator>pacoli2013</dc:creator>
      <dc:date>2016-12-20T12:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with currency</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-currency/m-p/1290024#M517586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Found the solution for my questions&lt;/P&gt;&lt;P&gt;For question one: created an Inline Table with one record (Euro and ExchangeRate)&lt;/P&gt;&lt;P&gt;For question two: there are many examples on this site and with some combining I got the right IntervalMatch for my problem&lt;/P&gt;&lt;P&gt;For question three: there was a mistake in our Datawarehouse, after that was solved, my Problem was solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO: Always check you data and watch the Solutions given by the experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copurt &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 12:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-currency/m-p/1290024#M517586</guid>
      <dc:creator>pacoli2013</dc:creator>
      <dc:date>2017-02-06T12:26:41Z</dc:date>
    </item>
  </channel>
</rss>

