dbTalk Databases Forums  

AS2005: using Subcubes into a scope?

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


Discuss AS2005: using Subcubes into a scope? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jéjé
 
Posts: n/a

Default AS2005: using Subcubes into a scope? - 03-06-2006 , 02:05 PM






Hi,

does it possible to define and use a subcube inside a scope or into the
calculate statement?

I have a formula which is really excellent when I use a subcube (Select ....
from (Select ... from mycube))
My subcube definition identify some tuples which reached a particular
threshold value, and then return my measures against this subcube only:
select {[Measures].[Sales Amount]} on 0

, non empty [Calendar].[Month].month.members on 1



from (

select filter(nonempty(stores.[store].[store].members *

employees.[Full Name].[Full Name].members),

[Measures].[# of Sales]>5000 ) on 0 from [Sales]

where ([Promotions].[Promotion].&[1]) )

(its not the real query, but its like this one)


Now I want to use this formula into my cube definition to replace a measure
value.

Scope(measures.mymeasure)
.... some calculation here...
measure.[Special Sales] = ......
end scope;

si, can I create a play with a subcube in my scope?
Can I use a "Select" statement into my formula?

Thanks.

Jerome.



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.