We have a reporting cube . The data for this cube is loaded via a TI process from tables.We have currency dimension also in the cube which contains many currencies. Multiple currencies are used in the source tables .
Now the requirement is that,
When the user selects a particular currency from the cube, then all the calculations should change into that particular currency. For example if he selects CAD , then calculations should be shown in CAD.
Since the source itself has different currencies , what I have done is divide the amount with conversion rate of USD to get respective USD amount (via TI ).
Code: Select all
V_netfin=netfin\cellgetn('currency cube',Currency,YQ,'REP_USD');
Code: Select all
['NetFin' ] = N:DB('Cube_Under Validatiaon', !Time, !Deal_Dim, !PL_Dim, !BS_Dim, !Currency, !Collateral_Dim, !Index, 'Vnetfin') * DB('Currency Cube', !Currency, !Time, 'REP_USD');
['Vnetfin' ] => ['NetFin' ] ;
Now When I select any other currency from the cube , the data is not getting populated for netfin.
Am I missing anything here ? Please guide me if I am going in the wrong direction .
Regards
Anoop