Hello Roberto,
I have tried both ways:
1. destination_model inside the clear_destination (1st code below)
2. clear_destination inside destination_model (2nd code below)
In both the cases it is giving error as Account Dimension is invalid in code "The dimension '[ACCOUNT]' was not found in the cube when the string, [ACCOUNT].[TOTAL_SALARY], was parsed.". It might be because code is in HCM and Account dimension exist in Finance model.
Is there any example of *Clear Destination and *Destination Model used with each other?
Thanks & Regards,
Rohit
destination_model inside the clear_destination
*INCLUDE SYSTEM_CONSTANTS.LGL
*CLEAR_DESTINATION
*DESTINATION_MODEL = Finance
*SKIP_DIM= Empl_Cat,EMPL_TYPE,Employee,Job_Grade,Location,Position_HCM
*RENAME_DIM Account_HCM=Account,Version=Category,DataSrc_HCM=DataSrc,Cost_Center_E=Org,Currency=RptCurrency
*SELECT (%TIMEIDS%,ID,TIME,CALC='N' AND HIR='H1' AND CLSD<>'Y' AND YEAR IN (SELECT [YEAR] FROM mbrCATEGORY WHERE ID='FORECAST'))
*MEMBERSET(%ACCOUNTS%,"DESCENDANTS([ACCOUNT].[TOTAL_SALARY],999,LEAVES)")
*DESTINATION TIMEDIM=%TIMEIDS%
*DESTINATION CATEGORYDIM=FORECAST
*DESTINATION ACCOUNTDIM=%ACCOUNTS%
clear_destination inside destination_model
*INCLUDE SYSTEM_CONSTANTS.LGL
*DESTINATION_MODEL = Finance
*SKIP_DIM= Empl_Cat,EMPL_TYPE,Employee,Job_Grade,Location,Position_HCM
*RENAME_DIM
Account_HCM=Account,Version=Category,DataSrc_HCM=DataSrc,Cost_Center_E=Org,Currency=RptCurrency
*SELECT (%TIMEIDS%,ID,TIME,CALC='N' AND HIR='H1' AND CLSD<>'Y' AND YEAR IN (SELECT [YEAR] FROM mbrCATEGORY WHERE ID='FORECAST'))
*MEMBERSET(%ACCOUNTS%,"DESCENDANTS([ACCOUNT].[TOTAL_SALARY],999,LEAVES)")
*CLEAR_DESTINATION
*DESTINATION TIMEDIM=%TIMEIDS%
*DESTINATION CATEGORYDIM=FORECAST
*DESTINATION ACCOUNTDIM=%ACCOUNTS%