dbTalk Databases Forums  

MDX Scope use in cubes

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


Discuss MDX Scope use in cubes in the microsoft.public.sqlserver.olap forum.



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

Default MDX Scope use in cubes - 06-12-2006 , 11:48 AM






sHi all,

I'm encountering some odd Cube behavior using Scope. I have a cube which
processes fine. After adding the following (I believe simple test scope
command) the cube no longer processes. Furthermore, when I remove the mdx,
the cube continues to no longer process. It is not until I shut down my
solution and re-open it (without the Scope) that the cube again can process.

My questions are 1) Does scope need to be in a specific spot in an MDX
script i.e. at the beginning/end. 2) if at the end, does it need a calculate
statement afterwards. 3) Does the Scope command need to be attached to a
create member?

Here is my simple text

SCOPE
([Dim Driver].[Driver Lev 1].&[Utilization Down],
[Measures].[Units]
);
This = 0;
END Scope;

Thanks in advance!

Mark

Reply With Quote
  #2  
Old   
Chris Webb
 
Posts: n/a

Default RE: MDX Scope use in cubes - 06-13-2006 , 10:41 AM






Hi Mark,

What error message do you get when you process? Your SCOPE statement looks
ok to me; so long as it comes after the CALCULATE statement in your script it
*should* work. To be honest if you need to open and close VS to get the cube
to process then it sounds like it might be a bug to me...

Regardsm

Chris
--
I blog about Microsoft BI here:
http://spaces.msn.com/cwebbbi/
Do you need help with Analysis Services or MDX? I''m available for hire:
http://www.crossjoin.co.uk/


"MarkFrank" wrote:

Quote:
sHi all,

I'm encountering some odd Cube behavior using Scope. I have a cube which
processes fine. After adding the following (I believe simple test scope
command) the cube no longer processes. Furthermore, when I remove the mdx,
the cube continues to no longer process. It is not until I shut down my
solution and re-open it (without the Scope) that the cube again can process.

My questions are 1) Does scope need to be in a specific spot in an MDX
script i.e. at the beginning/end. 2) if at the end, does it need a calculate
statement afterwards. 3) Does the Scope command need to be attached to a
create member?

Here is my simple text

SCOPE
([Dim Driver].[Driver Lev 1].&[Utilization Down],
[Measures].[Units]
);
This = 0;
END Scope;

Thanks in advance!

Mark

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.