DB Rule help
Posted: Wed Mar 07, 2012 2:49 pm
I have a source cube:
And a target cube:
I want to pull the Wholesales value (Volume Measure:TOTAL WHOLESALES) from the source cube into the target cube (Contribution Measure:Wholesales).
This works:
However, I want to be more dynamic in my selection criteria. So I thought I could do a DB against the target cube and just fill the information that the source cube does not have dimensions for. As such:
Version = Forecast
Vs. Version = None
Variance Type = Total Variance
Time_Month = Bang
New Used = Bang
Company Code = 0750
Market = Bang
Model Year = 12MY
Model = Bang
Currency = LC
Have I made up in my head that you can do this? It would be really useful as I don't want to fix the model year to 12MY, or write a rule for each year, that just seems silly.
Code: Select all
DB('Volume',!Version,!Time_Month,!New Used,!Market,!Model,!Volume Measures)
Code: Select all
DB('Contribution',!Version,!Vs. Version,!Variance Type,!Time_Month,!New Used,!Company Code,!Market,!Model Year,!Model,!Currency,!Contribution Measures)
This works:
Code: Select all
['Wholesales', 'None', 'Version':'Forecast', 'Total Variance', 'LC', '0750' '12MY'] = N: DB('Volume',!Version,!Time_Month,!New Used,!Market,!Model,'TOTAL WHOLESALES') ;
Code: Select all
['Wholesales'] = N: DB('Volume',!Version, 'None', 'Total Variance', !Time_Month, !New Used, '0750', !Market, '12MY', !Model, 'LC', 'TOTAL WHOLESALES') ;
Vs. Version = None
Variance Type = Total Variance
Time_Month = Bang
New Used = Bang
Company Code = 0750
Market = Bang
Model Year = 12MY
Model = Bang
Currency = LC
Have I made up in my head that you can do this? It would be really useful as I don't want to fix the model year to 12MY, or write a rule for each year, that just seems silly.