dbTalk Databases Forums  

Scope Error - Please help.

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


Discuss Scope Error - Please help. in the microsoft.public.sqlserver.olap forum.



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

Default Scope Error - Please help. - 06-02-2006 , 04:21 PM






Hi,

I am trying to define a "SCOPE" with in the cube to define custom
formatting. However, i am getting the following error. Please help.

Scope({[Measures].[Net Submitted Amount],
[Measures].[Not Covered Amount],
[Measures].[PPO Savings Amount],
[Measures].[Member Count]});
this = CoalesceEmpty([Measures].CurrentMember, 0);
FORMAT_STRING(this) = "0;0;0;0";
End Scope

Error:
-------

MdxScript(Dental General Model) (71, 14) A set has been encountered that
cannot contain calculated members.
The END SCOPE statement does not match the opening SCOPE statement.

Thanks,

Prasad.


------------------------------
BUTTONS:

OK
------------------------------


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

Default Re: Scope Error - Please help. - 06-02-2006 , 06:21 PM






This is happening because one or more of the measures to which you are
doing the assignment are calculated measures.

You will need to take them out of the scope statement and put the
CoalesceEmpty(...) and format string in the calculated measures
themselves.

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

In article <5C3DEE3A-2748-4E61-A9B5-7C8FC98A086A (AT) microsoft (DOT) com>,
Prasad (AT) discussions (DOT) microsoft.com says...
Quote:
Hi,

I am trying to define a "SCOPE" with in the cube to define custom
formatting. However, i am getting the following error. Please help.

Scope({[Measures].[Net Submitted Amount],
[Measures].[Not Covered Amount],
[Measures].[PPO Savings Amount],
[Measures].[Member Count]});
this = CoalesceEmpty([Measures].CurrentMember, 0);
FORMAT_STRING(this) = "0;0;0;0";
End Scope

Error:
-------

MdxScript(Dental General Model) (71, 14) A set has been encountered that
cannot contain calculated members.
The END SCOPE statement does not match the opening SCOPE statement.

Thanks,

Prasad.


------------------------------
BUTTONS:

OK
------------------------------



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.