View Zerout and Ascii out put for log
Posted: Mon Dec 24, 2012 10:59 am
Hi All,
we have a requirement to Create/ zeroout the views,After zero outing we need to delete the Views
We have 14 dimension in the cube.
Here is the criteria to Zeroout.
We have Version dimension with different versions and year dimension starting the years with 2008 to 2013.
Version Dimension having elements: like Actuals,FY11 Actuals Archived,FY12 JanOL..etc
For the Actuals version => zero out all data that are NOT under 2013 year.
For all other versions => zero out all data that are NOT for the year that the version pertains too.
Some examples:
For ‘Forecast’ cube and version ‘Actuals’ zero out all data for prior years: 2009,2010,2011,2012.
For ‘Historical Forecast’ cube and version ‘FY11 Actuals Archived’ zero out all data for prior years: 2009,2010,2012
For ‘Historical Forecast’ cube and version ‘FY12 Actuals Archived’ zero out all data for prior years: 2009,2010,2011.
in the above example user can enter the ‘FY11 Actuals Archived’ version as parameter then TI has build the viewS for the below combination and view zero out.
Cubename Version Year
Historical Forecast FY11 Actuals Archived 2008
Historical Forecast FY11 Actuals Archived 2009
Historical Forecast FY11 Actuals Archived 2010
Historical Forecast FY11 Actuals Archived 2012
And also we need to have some calls to a small log with asciioutput(), nothing too fancy. A log with the date, username that executed, and what version and years that were zeroed out. A unique log filename for each run would be preferred.
I created TI process with attached script and working as expected.
We are passing Cubename,Version Dim name,Version element to be deleted as Parameters and we hard coded Years.
Based on the Version element parameter it is validating Year and inserting the year elements in the new year_subset.
But we are looking for Dynamic Year subset creation and view zero out and Log with dynamic subset year elements.
Please help us.
Thanks in Advance !!
Regards,
Sathish
we have a requirement to Create/ zeroout the views,After zero outing we need to delete the Views
We have 14 dimension in the cube.
Here is the criteria to Zeroout.
We have Version dimension with different versions and year dimension starting the years with 2008 to 2013.
Version Dimension having elements: like Actuals,FY11 Actuals Archived,FY12 JanOL..etc
For the Actuals version => zero out all data that are NOT under 2013 year.
For all other versions => zero out all data that are NOT for the year that the version pertains too.
Some examples:
For ‘Forecast’ cube and version ‘Actuals’ zero out all data for prior years: 2009,2010,2011,2012.
For ‘Historical Forecast’ cube and version ‘FY11 Actuals Archived’ zero out all data for prior years: 2009,2010,2012
For ‘Historical Forecast’ cube and version ‘FY12 Actuals Archived’ zero out all data for prior years: 2009,2010,2011.
in the above example user can enter the ‘FY11 Actuals Archived’ version as parameter then TI has build the viewS for the below combination and view zero out.
Cubename Version Year
Historical Forecast FY11 Actuals Archived 2008
Historical Forecast FY11 Actuals Archived 2009
Historical Forecast FY11 Actuals Archived 2010
Historical Forecast FY11 Actuals Archived 2012
And also we need to have some calls to a small log with asciioutput(), nothing too fancy. A log with the date, username that executed, and what version and years that were zeroed out. A unique log filename for each run would be preferred.
I created TI process with attached script and working as expected.
We are passing Cubename,Version Dim name,Version element to be deleted as Parameters and we hard coded Years.
Based on the Version element parameter it is validating Year and inserting the year elements in the new year_subset.
But we are looking for Dynamic Year subset creation and view zero out and Log with dynamic subset year elements.
Please help us.
Thanks in Advance !!
Regards,
Sathish