Data transfer with different Time Dimension Uneven Hierarchy
Posted: Wed Nov 11, 2009 3:44 am
I was wondering if someone can help me out with the rule?
For example I have a lookup cube determining the whether a specific date is Regular working, etc... And I have assumption cube per month to determine the standard rate per month.
I created a staging cube to store the rate to be used depending on the type of day the a specific date it. So my time dimension level is different for the assumption (Months) and lookup(Days).
My Days time dimension has a attribute of its parent.
I was thinking of using the ELPAR function for the base_days_month or ATTRS function. I'm not sure where and how to add that additional condition. I tried the code below but its not working
For example I have a lookup cube determining the whether a specific date is Regular working, etc... And I have assumption cube per month to determine the standard rate per month.
I created a staging cube to store the rate to be used depending on the type of day the a specific date it. So my time dimension level is different for the assumption (Months) and lookup(Days).
My Days time dimension has a attribute of its parent.
Code: Select all
['Actual Rate' ] =IF(DB('lookup_date_status', !base_day_month, !base_year, 'Status')@='Regular' , DB('assumption_service_hour_rate', 'base_month', !base_version, !base_year, !base_service_type, !plan_hours_rate, 'Regular'),continue);
['Actual Rate' ] =IF(DB('lookup_date_status', !base_day_month, !base_year, 'Status')@='Legal', DB('assumption_service_hour_rate', 'base_month', !base_version, !base_year, !base_service_type, !plan_hours_rate, 'Legal'),continue);
['Actual Rate' ] =IF(DB('lookup_date_status', !base_day_month, !base_year, 'Status')@='Special', DB('assumption_service_hour_rate', 'base_month', !base_version, !base_year, !base_service_type, !plan_hours_rate, 'Special'),continue);
Code: Select all
['Actual Rate' ] =IF(DB('lookup_date_status', ELPAR('base_day_month',!base_day_month,!Month), !base_year, 'Status')@='Regular' & DB('assumption_service_hour_rate', 'base_month', !base_version, !base_year, !base_service_type, !plan_hours_rate, 'Regular'),continue);