dbTalk Databases Forums  

Hide A Level Based on Members

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Hide A Level Based on Members in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Resant
 
Posts: n/a

Default Hide A Level Based on Members - 10-17-2005 , 02:46 AM






I have Product Dimension with 2 level, Category (Members: A, B, C) and
Type. When a user click on members A, I want to hide Type Level, but if
they click others, we will provide the Type. What sould do? Do I have
using MDX or separate level Type into other dimension?
If use MDX, how's the syntax and where should I place it?

Thanks


Reply With Quote
  #2  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: Hide A Level Based on Members - 10-17-2005 , 06:35 AM






There is a property on each level called "HideMembersIf". You can set
members to be hidden if they have the same name as their parent or if
their name is null. These settings are usually used to create ragged
hierarchies, but would work here if you manipulate the name column
appropriately.

--
Regards
Darren Gosbell [MCSD]
<dgosbell_at_yahoo_dot_com>
Blog: http://www.geekswithblogs.net/darrengosbell

Reply With Quote
  #3  
Old   
Resant
 
Posts: n/a

Default Re: Hide A Level Based on Members - 10-18-2005 , 02:12 AM



I think HideMemberIf is used to hide Member.
But what I want to hide is the Level, not Member.
Could I do that?

Thanks


Reply With Quote
  #4  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: Hide A Level Based on Members - 10-18-2005 , 07:13 AM



Quote:
I think HideMemberIf is used to hide Member.
But what I want to hide is the Level, not Member.
Could I do that?
If you want to hide a whole level, you can set it's visible property to
false. Or even disable the level within the cube. But I thought what you
wanted to do was to display the second level for some member of the
first level and not for others.

In this case you would manipulate the name column of the all the members
you did not want to see.

eg.

Set the HideMemberIf property to "NoName"

....and setup the dimension table (or a view of it) something like the
following.

MemberId, Level 1, Level 2
1, A, NULL
2, A, NULL
3, A, NULL
4, B, B1
5, B, B2
6, B, B3
7, C, C1
8, C, C2
9, C, C3

--
Regards
Darren Gosbell [MCSD]
<dgosbell_at_yahoo_dot_com>
Blog: http://www.geekswithblogs.net/darrengosbell


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.