Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Analysis Services (2000)
 How to handle multi currency.

Author  Topic 

guga
Starting Member

1 Post

Posted - 2006-01-31 : 05:58:02
Hi,

I am having an fact table with amount stored in different currency. Exchange
Rate dimension where the currency rate is stored for each day. I need to
built a cube. When the user selects the currency in the exchange rate
dimension all the values in fact table should be converted accordingly based
on the rates mentioned in the Exchange Rate Dimension for the payrolldate.


Fact table - payroll processing
---------------

Empid,
Payrolldate,
accountid,
Departmentid,
Amount,
Currency Symbol



Dimension Table - Exchange Rate
----------------------------
Exchange Date
Source Currency
Destination Currency
Rate

Exchange Rate Dimension
---------------------------------------

Destination Currency
- Rate as the property


Please help me in finding a solution.



Regards,

Regards,

guga

mwjdavidson
Aged Yak Warrior

735 Posts

Posted - 2006-01-31 : 07:14:42
Hi Guga
It's not advisable to implement something like currency conversion as a dimension table. Assuming that you are storing spot rates each day (Exchange Date), this is almost certainly a fact rather than a dimension with a pair of FKs to a true Currency dimension playing roles as FromCurrency and ToCurrency. I would also suggest a uniform approach to foreign keys within your payroll processing fact table. I.e. stick to surrogate keys for all FKs including Payrolldate and currency. If you've not already looked at Kimball for this kind of thing, I would very much recommend it. The following link has a bit on currency conversion:[url]http://www.intelligententerprise.com/db_area/archives/1998/9812/warehouse.jhtml[/url].

Mark
Go to Top of Page
   

- Advertisement -