Forum Discussion
AndraEcxarcu
2 years agoNew Contributor II
This is the script from the member formula:
Dim destCurrId As Integer = api.Pov.Cons.MemberPk.MemberId
If destCurrId = Currency.EUR.Id Then
Return 1.0
Else
Dim rateType As FxRateType = api.FxRates.GetFxRateTypeForRevenueExp()
Dim cubeId As Integer = api.Pov.Cube.CubeId
Dim timeId As Integer = api.Pov.Time.MemberPk.MemberId
Dim sourceCurrId As Integer = Currency.EUR.Id
Dim rate As Decimal = api.FxRates.GetCalculatedFxRate( _
rateType, cubeId, timeId, sourceCurrId, destCurrId)
Return rate
End If
Related Content
- 2 years ago
- 5 months ago
- 9 months ago