![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
From: "Ohjoo Kwon" <ojkwon (AT) olap (DOT) co.kr Subject: Invisible level and calculated member Date: Tue, 6 Jul 2004 09:11:31 +0900 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Message-ID: <u#nMw2uYEHA.716 (AT) TK2MSFTNGP11 (DOT) phx.gbl Newsgroups: microsoft.public.sqlserver.olap NNTP-Posting-Host: 165.213.1.1 Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl Xref: cpmsftngxa06.phx.gbl microsoft.public.sqlserver.olap:51319 X-Tomcat-NG: microsoft.public.sqlserver.olap I need to hide a level for the time being. For explanation, you can set the visible property to False for the [Store Country] level of Store dimension of Foodmart 2000. If you execute the following MDX query using AllMembers, you can see [Store].[All Stores].[Test] as the unique name of a calculated member, [Test]. WITH MEMBER Store.[All Stores].[Test] AS '1' MEMBER Measures.StoreUniqueName AS 'Store.CurrentMember.UniqueName' SELECT {Measures.StoreUniqueName} on columns, {[Store].AllMembers} on rows FROM Sales But, If you use the caculated member directly as following, you get binding error. WITH MEMBER Store.[All Stores].[Test] AS '1' MEMBER Measures.StoreUniqueName AS 'Store.CurrentMember.UniqueName' SELECT {Measures.StoreUniqueName} on columns, {[Store].[All Stores].[Test], [Store].AllMembers} on rows FROM Sales I'm not sure this behavior is reasonable or bug. But this is very important issue for me and wish good response from Microsoft. Thank you Ohjoo Kwon |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Hi Ohjoo, I am still trying to find out a definitely answer on whether the behavior that you were seeing is by design or bug. Based on my testing, I can tell you that the calc member was created on the hidden level. I was able to verify using the following MDX stmt. WITH MEMBER Store.[All Stores].[Test] AS '1' MEMBER Measures.LevelName AS 'Store.CurrentMember.Level.Name' SELECT { Measures.LevelName} on columns, {Store.Allmembers} on rows FROM Sales I can see the calc member "Test" was created at the [Store].[Country] level, which is hidden, and this is why you were getting the name binding error. I am wondering what are you trying to accomplish here by? Thanks Hong Tan Microsoft OLAP Support Get Secure! - www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights. |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Hi Ohjoo, Can you do this instead? WITH MEMBER Store.[Test] AS '[Store].[All Stores].[WA] + [Store].[All Stores].[CA]' SELECT { Measures.[Unit Sales]} on columns, {Time.Year.members} on rows FROM Sales WHERE (Store.[Test]) Thanks Hong Tan Microsoft OLAP Support Get Secure! - www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights. |
#8
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |