dbTalk Databases Forums  

Re: Using named set in calculated measures.

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


Discuss Re: Using named set in calculated measures. in the microsoft.public.sqlserver.olap forum.



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

Default Re: Using named set in calculated measures. - 09-02-2003 , 02:06 PM







mr im Tomas Suppo please contact me



Originally posted by Roberto Ferraris

Quote:
I need to define a set from the client application and use it in some
calculated

member defined on the cube. The set can be changed during the
execution so it need to

be re-created each time. I find a way to do this defining the
calculated members with

the StrToSet function: eg. CREATE MEMBER [Measures].[Qty %] AS
'[Qty] /

Sum(StrToSet("[MySet]"), [Qty]) and defining a set in the session as:
CREATE SET

[MyCube].[MySet] AS '{Member1, Member2}' Using the StrToSet let me
delete and

re-create the cube because the [Qty %] doesn't depend directly from
the set, but this

solution is slower than a simple: CREATE MEMBER [Measures].[Qty %] AS
'[Qty] /

Sum([MySet], [Qty]) with a static set defined.



I've also tried to define a default set on the cube and redefine it as
a session set

but it doesn't seems working, the CM use always the default set.



Any suggestion? There is a way to re-evaluate Sets without
deleting them?


Thanks in advice Roberto Ferraris


--
Posted via http://dbforums.com


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.