ExportView TI function
Posted: Thu Sep 11, 2008 12:18 pm
I'd like a function that can run as part of a TI which will export out a view using arguments as per the right click "Export Data" option on a cube (ie, skip blank, skip consolidation, etc). At the second, you have to generate the view within TI then call a seperate TI to export it which is a pain and doesn't allow skip calcs, etc to be set without manual intervention.
Main usage - a standard view for export could be used running off two or more subsets which you could dynamically change in metadata thus changing the info selected from the view.
Sub Usage - creation of views within TI's could be exported whilst avoiding rule generated entries (you can't check the rule driven basis in TI to my knowledge).
eg, An overtime report which pulls out all employees within a consolidation could have a simple CreatebyMDX statement to cycle through a list of consolidations whilst also cycling through a selection of months. ExportView would be able to deal with that scenario with one line of code and avoid having to check for data in each cross section before exporting to a file. Would become more useful the more dimensions you are changing.
Maybe I'm alone on this one but there's been three occasions I can think of in the last month where I really wished this function existed.
Main usage - a standard view for export could be used running off two or more subsets which you could dynamically change in metadata thus changing the info selected from the view.
Sub Usage - creation of views within TI's could be exported whilst avoiding rule generated entries (you can't check the rule driven basis in TI to my knowledge).
eg, An overtime report which pulls out all employees within a consolidation could have a simple CreatebyMDX statement to cycle through a list of consolidations whilst also cycling through a selection of months. ExportView would be able to deal with that scenario with one line of code and avoid having to check for data in each cross section before exporting to a file. Would become more useful the more dimensions you are changing.
Maybe I'm alone on this one but there's been three occasions I can think of in the last month where I really wished this function existed.