Calculating Cross Currency Rates (by creating a fixed variable)
I have a report that lists daily spot rates:
USD/EUR 10/12/07
USD/GBP 10/12/07
USD/CAD 10/12/07
etc.
I would like to create a report that divides the USD/CAD rate by each of the rates.
ex:
USD/CAD / USD/EUR = EUR/CAD 10/12/07
USD/CAD / USD/GBP = GBP/CAD 10/12/07
The problem is I cannot use the USD/CAD rate with the other currencies, since each entry only uses one rate.
So I guess I need to somehow set a fixed variable = "X" = USD/CAD and divide "X" by each rate.
Any help is appreciated. Thank you!
[619 byte] By [
hsi] at [2007-11-20 11:22:51]

# 1 Re: Calculating Cross Currency Rates (by creating a fixed variable)
Or you can insert a parameter that asks for the USD/CAD since it can change daily so you don't have to change the report every time
jggtz at 2007-11-9 14:11:44 >

# 2 Re: Calculating Cross Currency Rates (by creating a fixed variable)
Thanks for your reply - That's what I would like to do, but I don't know how.
My report is very simple, please see below.
Thanks!
ONE LINE OF VARIABLES:
Curr Date @FX_Per_CAD
Which will list all the currency rates that are in the system for that date.
@FX_Per_CAD Formula:
if {vrcFX_SpotRate.Curr} <> "CAD" then
Round (({vrcFX_SpotRate.Bid} ^ (-{vrcFX_SpotRate.Factor}) * {@CAD Rate}), 7)
else 1
@CAD Rate Formula:
if {vrcFX_SpotRate.Curr} = "CAD" then {vrcFX_SpotRate.Bid}
else 1
My formulas do not work because the report looks at each rate individually, so it cannot divide two rates. I need to somehow make a parameter equal to the CAD rate throughout the entire report, so that rate can be used alongside other rates.
Thanks again!
hsi at 2007-11-9 14:12:44 >

# 3 Re: Calculating Cross Currency Rates (by creating a fixed variable)
Any help is appreciated.
The report will be automatically generated each night, with information that is automatically uploaded to my system, so I cannot manually enter the CAD rate everyday.
The CAD rate will be automatically generated with the other rates, and I'd like to use that rate in the calculation.
So I'd like to have a "global" variable that can be used across multiple fields.
"Global" Variable = the end of day CAD rate.
hsi at 2007-11-9 14:13:42 >
