What is the best way to list a member and all of its descendants in MDX? -


in olap database work there 'location' hierarchy consisting of levels company, region, area, site, room, till. particular company need write mdx lists regions, areas , sites (but not levels below site). achieving following mdx

hierarchize({ [location].[test company],  descendants([location].[test company], [location].[region]),  descendants([location].[test company], [location].[area]),  descendants([location].[test company], [location].[site]) }) 

because knowledge of mdx limited, wondering if there simpler way this, single command rather four? there less verbose way of achieveing this, or example real way of achieving this?

descendants([location].[test company],[location].[site], self_and_before) 

Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -