Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

How to get the lowest hierarchy members in a named set?

$
0
0

Hello,

I have a named set that I create based on a specific set of rules.

Basically that named set creates a small hierarchy based on a parent-child dimension.

Example:

Parent-Child Dimension Hierarchy Example:

A
 - A1
 - A2
 - A3
B
 - B1
 - B2
   - B21
   - B22
C
 - C1

My Named Set ( I have to use VisualTotals so that it would agregate accordingly ):

A
 - A1

   - B22

 - C1

Since I don't follow the natural parent-child relationships I use Hierarchize so that the ordering is shown the right way, and I also use VISUALTOTALS so that parents only take into consideration the childrens I have chosen.

Now I am facing two problems.

1st is how I get the total, since I have a ragged named set hierarchy (I cannot sum all members in level1 or 2 or 3 because like in the example the total would be A+B+C1.

2nd is how do I relate the named set members in a parent-child type since in the original for example the parent of B22 is B2 and I need it to be B ( I have not selected B2 into my named set ).

This is a little bit confusing to explain, hope you guys can understand my point and help me out ;)

Cheers


Luis Simões


Viewing all articles
Browse latest Browse all 14337

Trending Articles