For Cube function reporting in Excel, one function that doesn’t get translated during a pivot table formula convert is CUBESET.
Here is a way to get the leaves (lowest levels) of a dimension using the cube set formula in Excel 2007/2010.
=CUBESET(connectionstring,filter([Account].[AcctHier].members,isleaf([Account].[AcctHier].currentmember))","Account Leaves")
To retrieve the members, create a list of numbers ending at the CUBESETCOUNT() of above, and use the following formula:
=CUBERANKEDMEMBER(connectionstring,
CUBESET(connectionstring,filter([Account].[AcctHier].members,isleaf([Account].[AcctHier].currentmember))","Account Leaves")
,1))
Retrieves the first member of the set.
No comments:
Post a Comment