Skip to Content
author's profile photo Former Member
Former Member

DESCENDANTS( ... , ... , LEAVES) - How to Simulate in BW


I'm trying to write a MDX statement to get data from a BW Query that contains dimensions with hierarchies. I like to get the full level path for the dimension hierarchies along with the characteristic values, but I don't want to get any totals for the different levels.

MS Analysis Server provides the DESCENDANTS-function with the LEAVES-flag for this purpose:


But unfortunately the MDX for BW does not support the LEAVES flag, it only supports SELF, BEFORE and AFTER.

Does anybody have an idea how to code the MDX to get the desired results excluding the totals for the Hierarchy levels?


Lars Riewe

Software Developer


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.