dbTalk Databases Forums  

Hiding dimension members that are the same as their parent while having custom names

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


Discuss Hiding dimension members that are the same as their parent while having custom names in the microsoft.public.sqlserver.olap forum.



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

Default Hiding dimension members that are the same as their parent while having custom names - 07-25-2005 , 03:30 PM






I have a dimensions like this.

Level1
Level2
Level3

With this particular dimension it is easy for the users to get lost so
I have set the names for the levels like this.

Level1Name = Level1Name
Level2Name = Level1Name + ' - ' + Level2Name
Level3Name = Level1Name + ' - ' + Level2Name + ' - ' + Level3Name

The problem is that I need to hide members if they are the same as
their parent on the third level. Once I emplemented this naming system
it doesn't work anymore. Is there a way to make it look at the
underlying data, which is the same as the parent, rather than my custom
name? Or is there some other way of doing this? I can imagine adding
a new column to my relational database to solve this problem but I
really don't want to do that.


Reply With Quote
  #2  
Old   
Todd
 
Posts: n/a

Default Re: Hiding dimension members that are the same as their parent while having custom names - 07-25-2005 , 03:39 PM






I tried to add something like this to the Member Name Column but AS
wasn't happy.

IIF(Level1Name + ' - ' + Level3Name = Level2Name, Level2Name,
Level1Name + ' - ' + Level2Name + ' - ' + Level3Name)


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.