Showing posts with label ragged. Show all posts
Showing posts with label ragged. Show all posts

Monday, March 26, 2012

Ragged Hierarchy / Unbalanced Hierarchy - whats the difference and how do i process it ?

Q1) what is the difference between a ragged hierarchy and an unbalanced hierarchy ?

Q2)

I have a structure for items in the store

Each item can be classified into

Category

SubCategory

Class

Most items go down all three levels

but some are only classified into the top two categories

and a few are only classified in the Category classification

i have tried to create a Hierarchy for this

but when i review the results in the browser, it will only show me the results of the items that are classified to the bottom level - it does NOT show me the ones that are classified in only the top one or two levels

according to BOL

"To make a parent-child hierarchy ragged, use the SkippedLevelsColumn property of the parent attribute in the hierarchy to support the ragged structure."

but i have found that this has been removed from AS2005

(http://msdn2.microsoft.com/en-us/library/ms143229.aspx)

Skipped levels in parent-child hierarchies

The SkippedLevelsColumnproperty, which indicates how many levels to skip when creating a member under a parent in a parent-child hierarchy, is no longer supported.

so - how can this be done ?

Hello! To me a ragged or unbalanced hierarchy is the same.

You control this on each level in the user hierarchy in the dimension editor. Click on a level in the hiearchy and check the property "HideMemberIf"

Parent-Child dimensions is a different case because they have unnamed, recursive levels. Ragged and Unbalanced Hierarchies have named levels but with missing members or values in each level in the user hierarchy.

HTH

Thomas Ivarsson

|||

Thomas

thx for this

but can you please explain a bit more

i have set the HideMemberIf property on both the SubCategory and Class description to NoName - and this hides the blank entries (as expected)

But

when i put attribute relationships between the SubCategory and Category and between the SubCategory and Class onto the hierarchy (in the Hierarchies and Levels panel), then the original problem arises in that the entries are not shown in the cube browser

m

|||

Hello again. I have checked the Geography dimension and the Geography-hierarchy in the Adventure Works sample cube that is part of the installation of SQL Server 2005.

In this hierarchy you have the levels Country-StateProvince-City-PostalCode all with attribute relations to the parent and a HideMemberIf-property set to NoName on the StateProvince level. United Kingdom have no members in the StateProvince-level, like you can see in the browser. All other countries have. This example works as you expect so you must have another problem in your dimension.

The HideMemberIf-property will not be supported in the next release of SQL Server, according to books on line.

HTH

Thomas Ivarsson

Ragged Hierarchies in RS2005

Hi...

I am connecting to Analysis Sercices 2000 from Reporting Services 2005.

When building a dataset, just in the data pane graphical designer, I have dragged 5 levels of the dimension 'Organisation' into the data pane.

The dimension has members at level 4 that have no children. But the dimenension also has members at level 5 WITH children, meaning that the dimension is ragged. If I only select levels 1-4 on the data pane, I see all level 4 children. However, if I also drag level 5 to the data pane, I loose any level 4 members that do not have children.

This means I loose vallid members that have data. Does anyone know of any way around this?

Thanks

Jeremy

Does anyone have any experience on getting this to work?

I have managed to display a ragged hierarchy by hacking the MDX, with the use of the DrillDownMember function.

Unfortunatlely, altough the ragged hierarchy does now display correctly in the data pane, it does not display in a table or matrix. So I have the situation where by my result set in the data pane does not match my result set in the actual report.

If anyone can offer any assistance it would be appreciated,

Thank you

Jeremy

|||

I have now managed to get this to work.

As I was using an AS2000 cube with the Adomd client, which according to Microsoft is not supported. If you want to use an AS2000 cube, then you have to use the OLE DB data provider.

Unfortunately I still had to use the DillDownMember function, this seems to be the only way I can get ragged hierachies to work correctly.

|||

Sorry I had not seen your post before.

Considering that the returned cellset gets flattened into a result set, if you put your set of members on the ROWS axis of the MDX query, you will actually end up with a separate column per level in you result set.

So if you structure your query like this

SELECT
{[Measures.[x]]} ON COLUMNS,
{Descendants([YourDimension].[All], [YourDimension].[Level 5], SELF_BEFORE_AFTER)} ON ROWS
FROM [YourCube]

The returned dataset should have these columns

Level_1, Level_2, Level_3, Level_4, Level_5, x

This should cater for your ragged hierarchies requirement.

sql

Ragged Dimension

I am creating a picklist in reporting services as below
WITH MEMBER [Measures].[ParameterCaption] AS '[Dim].[Attrib].CURRENTMEMBER.
MEMBER_CAPTION' MEMBER [Measures].[ParameterValue] AS '[Dim].[Attrib].
CURRENTMEMBER.UNIQUENAME' MEMBER [Measures].[ParameterLevel] AS '[Dim].
[Attrib].CURRENTMEMBER.LEVEL.ORDINAL' SELECT {[Measures].[ParameterCaption],
[Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS , [Dim].
[Attrib].[all].children ON ROWS FROM CUBE
The Value for this parameter in reports is ParameterValue and Label is
caption.
Problem is that this dimension is ragged and when th attrib name is null, the
report shows the uniquename. How can I make the report dropdown show only the
non null attributes? I tried using an IIF to select null when the
currentmember.name is null, else uniquename - but that does not work - the
currentmembwe.name never returns null. I also tried isempty and that did not
work either.
thank you!
--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server-reporting/200508/1I have seen people in the group say to try isnothing ... rather than
isnull or isempty
"Angie via SQLMonster.com" wrote:
> I am creating a picklist in reporting services as below
> WITH MEMBER [Measures].[ParameterCaption] AS '[Dim].[Attrib].CURRENTMEMBER.
> MEMBER_CAPTION' MEMBER [Measures].[ParameterValue] AS '[Dim].[Attrib].
> CURRENTMEMBER.UNIQUENAME' MEMBER [Measures].[ParameterLevel] AS '[Dim].
> [Attrib].CURRENTMEMBER.LEVEL.ORDINAL' SELECT {[Measures].[ParameterCaption],
> [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS , [Dim].
> [Attrib].[all].children ON ROWS FROM CUBE
> The Value for this parameter in reports is ParameterValue and Label is
> caption.
> Problem is that this dimension is ragged and when th attrib name is null, the
> report shows the uniquename. How can I make the report dropdown show only the
> non null attributes? I tried using an IIF to select null when the
> currentmember.name is null, else uniquename - but that does not work - the
> currentmembwe.name never returns null. I also tried isempty and that did not
> work either.
> thank you!
>
> --
> Message posted via SQLMonster.com
> http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server-reporting/200508/1
>

Ragged Dimension

I have a created a ragged dimension on OLAP manage but it is not being
displayed properly in Excel. Whereever empty level is there, excel displays
same value as parent. Any idea why it is happening ?Hi,
this is the expected behavior, if your dimension based on a flat dimension
table. To avoid this try a parent child dimension table.
hth
NGE
Am Thu, 11 Dec 2003 19:58:06 +0530 hat Zubin Dhamodiwala
<zubin@.godrej.com> geschrieben:
quote:

> I have a created a ragged dimension on OLAP manage but it is not being
> displayed properly in Excel. Whereever empty level is there, excel
> displays
> same value as parent. Any idea why it is happening ?
>

Erstellt mit M2, Operas revolutionrem E-Mail-Modul:
http://www.opera.com/m2/|||Disadvantage with Parent Child is that you cannot levels in it. It works
with only two column in a table, a key and parent id. But my dimension have
multiple levels and they are unbalanced.
"Nice Guy Eddie" <a_hard_days_night@.web.de> wrote in message
news:oprz2a0xqw1ak0mc@.news.misag.com...
quote:

> Hi,
> this is the expected behavior, if your dimension based on a flat dimension
> table. To avoid this try a parent child dimension table.
> hth
> NGE
> Am Thu, 11 Dec 2003 19:58:06 +0530 hat Zubin Dhamodiwala
> <zubin@.godrej.com> geschrieben:
>
>
> --
> Erstellt mit M2, Operas revolutionrem E-Mail-Modul:
> http://www.opera.com/m2/
|||Hi,
I'm not sure, if I understand...In a parent/ child table you can have
levels and you can have unbalanced trees. Why not?
Example:
Dimension table
col_child (pk) col_parent
child_1 parent_1
parent_1 parent_11
child_2 parent_11
Result:
parent_11
parent_1
child_1
child_2
You have tree levels and a unbalanced hierarchy...
Greetings, NGE
Am Fri, 12 Dec 2003 16:29:05 +0530 hat Zubin Dhamodiwala
<zubin@.godrej.com> geschrieben:
quote:

> Disadvantage with Parent Child is that you cannot levels in it. It works
> with only two column in a table, a key and parent id. But my dimension
> have
> multiple levels and they are unbalanced.
>
> "Nice Guy Eddie" <a_hard_days_night@.web.de> wrote in message
> news:oprz2a0xqw1ak0mc@.news.misag.com...
>

Erstellt mit M2, Operas revolutionrem E-Mail-Modul:
http://www.opera.com/m2/