ViewZeroOut according variables
Posted: Wed Dec 18, 2013 9:24 am
Hi,
For the overwrite feature in TM1, normally is check the data source, clear data then upload again.
But .... I have some bottleneck on check the data source.
I have to clear the data respect to 3 dimension :Year, Dept and Version
I have 6 dimension in the cube: Year, Month,Dept,Version,Unit and Product
For example of my data source:
Year,Month,Dept,Version,Product,Unit
2012,Jan,Sales, Actual,A,100
2012,Jan,Sales, Budget,A,100
2013,Feb,Marketing,Budget,B,20
...
I unable to use subset to put in all the variables in the data source and clear data. Take above example, the subset will have Year(2012,2013), Dept(Sales, Marketing) and Version (Actual, Budget) and will clear those area data.
but the area data include data for 2012,Marketing Dept, Actual that should not be clear.
Ideally is like SQL select distinct of Year,Dept,Version
But TM1 does not have function like select distinct.
Please shed some light on how to build the script (I have tested multiple script, unfortunately all failed)
Thanks,
For the overwrite feature in TM1, normally is check the data source, clear data then upload again.
But .... I have some bottleneck on check the data source.
I have to clear the data respect to 3 dimension :Year, Dept and Version
I have 6 dimension in the cube: Year, Month,Dept,Version,Unit and Product
For example of my data source:
Year,Month,Dept,Version,Product,Unit
2012,Jan,Sales, Actual,A,100
2012,Jan,Sales, Budget,A,100
2013,Feb,Marketing,Budget,B,20
...
I unable to use subset to put in all the variables in the data source and clear data. Take above example, the subset will have Year(2012,2013), Dept(Sales, Marketing) and Version (Actual, Budget) and will clear those area data.
but the area data include data for 2012,Marketing Dept, Actual that should not be clear.
Ideally is like SQL select distinct of Year,Dept,Version
But TM1 does not have function like select distinct.
Please shed some light on how to build the script (I have tested multiple script, unfortunately all failed)

Thanks,