Combine ViewExtractSkipConsolidatedStringsSet and ViewExtractSkipCalcsSet
Posted: Tue Nov 30, 2021 2:07 pm
Hi everybody,
I want to export a view containing all leaf cells - including strings on consolidated level! Since the TI is supposed to work for various cubes, I define the source view in the prolog. The cube comes in by parameter and the source view is created in the prolog and deleted in the epilog.
In the prolog it comes to the point where I set the view parameters:
ViewExtractSkipZeroesSet(csCube,csView,1); # I do not need the zero values
ViewExtractSkipCalcsSet(csCube,csView,1); # I am not interested in sums
ViewExtractSkipRuleValuesSet(csCube,csView,0); # I do want rule-calculated values on the leaf-level
ViewExtractSkipConsolidatedStringsSet(csCube,csView,0); # I do want to export string values on consolidated level
My problem is, that in the export I do not have the string values on consolidated level. It looks like ViewExtractSkipCalcsSet(csCube,csView,1) "cancels" the ViewExtractSkipConsolidatedStringsSet(csCube,csView,0). The combination of both view parameters does not work as I hoped/thought.
How can I achive my aim?
Sure, I can set ViewExtractSkipCalcsSet to 0, and skip consolidated cells in the Data-Tab. But this prolongs the runtime, which I try to keep as short as possible.
Any other ideas?
I will be grateful for any answer.
I want to export a view containing all leaf cells - including strings on consolidated level! Since the TI is supposed to work for various cubes, I define the source view in the prolog. The cube comes in by parameter and the source view is created in the prolog and deleted in the epilog.
In the prolog it comes to the point where I set the view parameters:
ViewExtractSkipZeroesSet(csCube,csView,1); # I do not need the zero values
ViewExtractSkipCalcsSet(csCube,csView,1); # I am not interested in sums
ViewExtractSkipRuleValuesSet(csCube,csView,0); # I do want rule-calculated values on the leaf-level
ViewExtractSkipConsolidatedStringsSet(csCube,csView,0); # I do want to export string values on consolidated level
My problem is, that in the export I do not have the string values on consolidated level. It looks like ViewExtractSkipCalcsSet(csCube,csView,1) "cancels" the ViewExtractSkipConsolidatedStringsSet(csCube,csView,0). The combination of both view parameters does not work as I hoped/thought.
How can I achive my aim?
Sure, I can set ViewExtractSkipCalcsSet to 0, and skip consolidated cells in the Data-Tab. But this prolongs the runtime, which I try to keep as short as possible.
Any other ideas?
I will be grateful for any answer.