I have a cube with a dimension containing a parent-child hierarchy and several non visible attributes. The only way this dimension is supposed to be queried is via the parent-child hierarchy.
My problem is how the following MDX name is resolved :
[MyDimension].[All].Children
In that case, one of the non visible attribute is chosen (resolved to : [MyDimension].[MyInvisibleAttributeUsedOnlyForOrdering].[All].Children
) which leads to unexpected results.
The problem appears when using a CUBEMEMBER/CUBEVALUE
function in Excel. As Excel does not take into account the invisible attributes, the autocomplete jumps directly from [MyDimension]
to [MyDimension].[All]
without asking the user to specify a hierarchy. When another attribute is visible, it works fine because Excel's autocomplete force the user to choose one of the hierarchies, leading to an inambiguous [MyDimension].[MyParentChildHierarchy].[All].[MyCorrectMembers]
.
One possible workaround is to set all invisible attribute as non-aggregatable, that way [MyDimension].[All]
make only sense in the scope of my parent-child hierarchy but i'm looking to a better and more versatile solution.
Thanks in advance for any solution or explanation of SSAS behavior.
CUBEMEMBER
functions. – Ndech