dbTalk Databases Forums  

Invisible level and calculated member

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


Discuss Invisible level and calculated member in the microsoft.public.sqlserver.olap forum.



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

Default Invisible level and calculated member - 07-05-2004 , 07:11 PM






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






Reply With Quote
  #2  
Old   
Bill Cheng
 
Posts: n/a

Default RE: Invisible level and calculated member - 07-06-2004 , 08:20 PM






Hi Ohjoo,

Currently I am performing initial research on this problem and will update
you soon. Thanks for your patience.

Sincerely,

Bill Cheng
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
Quote:
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








Reply With Quote
  #3  
Old   
Hong Tan
 
Posts: n/a

Default RE: Invisible level and calculated member - 07-09-2004 , 11:29 AM



Hi Ohjoo,

This issue is still being research. I will provide you with an update once
I have new finding.

Thanks for your patience.

Sincerely,

Hong Tan
Microsoft OLAP Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


Reply With Quote
  #4  
Old   
Hong Tan
 
Posts: n/a

Default RE: Invisible level and calculated member - 07-12-2004 , 07:14 PM



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.


Reply With Quote
  #5  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: Invisible level and calculated member - 07-12-2004 , 11:44 PM



In the same situation, I need to execute MDX query as following.

WITH MEMBER Store.[All Stores].[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.[All Stores].[Test])

Thanks,
Ohjoo


"Hong Tan (MS)" <hongt (AT) online (DOT) microsoft.com> wrote

Quote:
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.




Reply With Quote
  #6  
Old   
Hong Tan
 
Posts: n/a

Default Re: Invisible level and calculated member - 07-13-2004 , 06:23 PM



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.


Reply With Quote
  #7  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: Invisible level and calculated member - 07-14-2004 , 03:49 AM



Yes, I can use your example manually.

The problem is that my example is the case of a query automatically
generated by client tool such as ProClarity. For example, ProClarity
automatically generates calculated member using Aggregate() when selecting
multiple members on slice dimension.

Of course, it could be the tool's problem. But I'm not sure the tool can get
the information about visible setting. If not, they cannot solve this issue.

Thanks,
Ohjoo




"Hong Tan (MS)" <hongt (AT) online (DOT) microsoft.com> wrote

Quote:
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.




Reply With Quote
  #8  
Old   
Hong Tan
 
Posts: n/a

Default Re: Invisible level and calculated member - 07-15-2004 , 05:16 PM



Hi Ohjoo,

I have talked to the development about this issue, the news that I got back
was this behavior is by design and expected.

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.


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.