Need help - C level rule not consolidating
Posted: Tue Apr 11, 2017 5:53 pm
Hi experts
I have a rule which I only want to apply at the C level. My rule calculates correctly on the C level element, however when I view the cube at a consolidated level there are no values.
Could you please review my code below and help me understand where I have gone wrong
['reporting_currency':'USD','RMUR','product':{'0700','0800','3001'},'measure_type':'Leak TV','attribute':'70','Raw_Data']= N: 0;
['reporting_currency':'USD','RMUR','product':{'0700','0800','3001'},'measure_type':'Leak TV','attribute':'70','Raw_Data']= C:
IF( ATTRS( 'trade', !trade, 'TRADE/POSITION') @= 'B',
+ ( ['reporting_currency':'TC','measure_type':'TV - EOD','attribute':'76','LTD']
- DB('product_control_analysis_detail','TC',!gaap_code,!functional_area,!iso_currency,!entity,!counterparty,!product,!instrument,'Sensitivity - EOD','55',ATTRS('reporting_date',!reporting_date,'Previous Day'),!curve,!tenor,!trade,'LTD'))
* DB('fx_rate',ATTRS('reporting_date',!reporting_date,'Previous Day'),'RMSRate',DB('fx_rate_type',!entity,ATTRS('trade',!trade,'COST_CENTER'),'string'),!iso_currency,'USD','numeric')
, consolidatechildren( 'trade' ) );
['reporting_currency':'USD','RMUR','measure_type':'TV - EOD','attribute':'76','LTD'] => [ 'Leak TV', '70', 'Raw Data' ];
['reporting_currency':'USD','RMUR','measure_type':'Sensitivity - EOD','attribute':'55','LTD'] =>
DB('product_control_analysis_detail',!reporting_currency,!gaap_code,!functional_area,!iso_currency,!entity,!counterparty,!product,!instrument,'Leak TV','70',ATTRS('reporting_date',!reporting_date,'Next Day'),!curve,!tenor,!trade,'Raw_Data');
Many thanks
John
I have a rule which I only want to apply at the C level. My rule calculates correctly on the C level element, however when I view the cube at a consolidated level there are no values.
Could you please review my code below and help me understand where I have gone wrong
['reporting_currency':'USD','RMUR','product':{'0700','0800','3001'},'measure_type':'Leak TV','attribute':'70','Raw_Data']= N: 0;
['reporting_currency':'USD','RMUR','product':{'0700','0800','3001'},'measure_type':'Leak TV','attribute':'70','Raw_Data']= C:
IF( ATTRS( 'trade', !trade, 'TRADE/POSITION') @= 'B',
+ ( ['reporting_currency':'TC','measure_type':'TV - EOD','attribute':'76','LTD']
- DB('product_control_analysis_detail','TC',!gaap_code,!functional_area,!iso_currency,!entity,!counterparty,!product,!instrument,'Sensitivity - EOD','55',ATTRS('reporting_date',!reporting_date,'Previous Day'),!curve,!tenor,!trade,'LTD'))
* DB('fx_rate',ATTRS('reporting_date',!reporting_date,'Previous Day'),'RMSRate',DB('fx_rate_type',!entity,ATTRS('trade',!trade,'COST_CENTER'),'string'),!iso_currency,'USD','numeric')
, consolidatechildren( 'trade' ) );
['reporting_currency':'USD','RMUR','measure_type':'TV - EOD','attribute':'76','LTD'] => [ 'Leak TV', '70', 'Raw Data' ];
['reporting_currency':'USD','RMUR','measure_type':'Sensitivity - EOD','attribute':'55','LTD'] =>
DB('product_control_analysis_detail',!reporting_currency,!gaap_code,!functional_area,!iso_currency,!entity,!counterparty,!product,!instrument,'Leak TV','70',ATTRS('reporting_date',!reporting_date,'Next Day'),!curve,!tenor,!trade,'Raw_Data');
Many thanks
John