Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

Many-To-Many currency conversion - discrepancies

$
0
0
Hi,I created many-to-many currency conversion project based on Wizard (i'm not an expert).This solution has Pivot currency (all amounts are converted to Pivot currency first and then to Reporting Currencies).My issue is that I see discrepancies between 'standard' currency conversion(calculated by hand) and by using Pivot currency.Example:Pivot currency is USDAmount: 104120.00 (GBP)Exchange Rate GBP -> USD: 1.63783 (http://www.oanda.com)Exchange Rate USD -> GBP: 0.61050 (http://www.oanda.com)Standard conversion (like you usually convert currency): 104120.00 (GBP) * 1.63783 = 170530,86 (USD)SSAS approach (Pivot currency): 104120.00 (GBP) / 0.61050 = 170548,73 (USD)The discrepancy is around 18 dollars.Do you have any idea how to resolve this issue? Change MDX calculations?Here is my current MDX code (generated by wizard): Scope ( { Measures.[Amount]); Scope( Leaves([Exchange Transaction Date]) , [Reporting Currency].[USD], Leaves([Exchange Transaction Currency])); This = [Reporting Currency].[Local] / Measures.[Report Rate]; End Scope; Scope( Leaves([Exchange Transaction Date]) , Except([Reporting Currency].[Currency Id].[Currency Id].Members, {[Reporting Currency].[Currency Id].[Currency Id].[USD], [Reporting Currency].[Currency Id].[Currency Id].[Local]})); This = [Reporting Currency].[Currency Id].[USD] * (Measures.[Report Rate], LinkMember([Reporting Currency].[Currency Id].CurrentMember, [Exchange Transaction Currency].[Currency Id])) ;http://www.sqlservercentral.com/Forums/Skins/Classic/Images/RichTextBoxTable/tbl_bottomleft.gif End Scope; End Scope;Thanks :)

Viewing all articles
Browse latest Browse all 1341

Trending Articles