Hierarchy as a Datasource
Posted: Tue Sep 11, 2018 10:20 pm
Quick question: can a dimension hierarchy be used as a datasource?
Tried it by creating a hierarchy subset and then the following:
If I am not missing something here in setting up the datasource and hierarchies cannot be used directly as a datasource, then the only choice is to create a temporary dimension with the elements in the hierarchy subset?
Hope I'm just missing something because I'm just diving into using the hierarchy functionality.
Tried it by creating a hierarchy subset and then the following:
Code: Select all
sMDX = 'TM1FILTERBYLEVEL(TM1SUBSETALL( [Accounts Master].[Statistical Categories]), 0)';
HierarchySubsetCreate(dimAccountsMaster, hierStatisticalCategories, subStatisticalCategories, 1);
HierarchySubsetMDXSet(dimAccountsMaster, hierStatisticalCategories, subStatisticalCategories, sMDX);
DataSourceType = 'SUBSET';
# this does not work either: DataSourceNameForServer = dimAccountsMaster;
DataSourceNameForServer = hierStatisticalCategories;
DataSourceDimensionSubset = subStatisticalCategories;
Hope I'm just missing something because I'm just diving into using the hierarchy functionality.