dbTalk Databases Forums  

Calculated member x MDX builder.....

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


Discuss Calculated member x MDX builder..... in the microsoft.public.sqlserver.olap forum.



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

Default Calculated member x MDX builder..... - 07-04-2003 , 10:03 PM






Dear all,

in MDX sample application I constructed this query bellow and it runs
perfectly:

with member Measures.YTDSales as 'sum(YTD(),[Measures].[Unit Sales])'
select
{DESCENDANTS([Time].[1997],Month)} on columns,
{[Product].[Product Category].Members} on rows
from Sales
where (Measures.YTDSales)


My doubt is: how to do this inside the Analysis Manager? If I put the
statement in the calculated members it doens´t work. Is it possible?
how?

thanks a lot

Cristiane

Reply With Quote
  #2  
Old   
Tom Chester
 
Posts: n/a

Default Re: Calculated member x MDX builder..... - 07-06-2003 , 03:56 PM






You can save the calc member in the cube, but not the SELECT statement.

tom @ the domain below
www.tomchester.net


"Cris" <crissarruda (AT) hotmail (DOT) com> wrote

Quote:
Dear all,

in MDX sample application I constructed this query bellow and it runs
perfectly:

with member Measures.YTDSales as 'sum(YTD(),[Measures].[Unit Sales])'
select
{DESCENDANTS([Time].[1997],Month)} on columns,
{[Product].[Product Category].Members} on rows
from Sales
where (Measures.YTDSales)


My doubt is: how to do this inside the Analysis Manager? If I put the
statement in the calculated members it doens´t work. Is it possible?
how?

thanks a lot

Cristiane



Reply With Quote
  #3  
Old   
Cris
 
Posts: n/a

Default Re: Calculated member x MDX builder..... - 07-06-2003 , 08:03 PM



thanks Tom,
now, please, if I do it in the MDX builder because I wanna see the
months in the column and product in the rows.... how do I visualize
this at the front end?

thanks

Cristiane


"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote

Quote:
You can save the calc member in the cube, but not the SELECT statement.

tom @ the domain below
www.tomchester.net


"Cris" <crissarruda (AT) hotmail (DOT) com> wrote in message
news:3da37342.0307041903.810a3bf (AT) posting (DOT) google.com...
Dear all,

in MDX sample application I constructed this query bellow and it runs
perfectly:

with member Measures.YTDSales as 'sum(YTD(),[Measures].[Unit Sales])'
select
{DESCENDANTS([Time].[1997],Month)} on columns,
{[Product].[Product Category].Members} on rows
from Sales
where (Measures.YTDSales)


My doubt is: how to do this inside the Analysis Manager? If I put the
statement in the calculated members it doens´t work. Is it possible?
how?

thanks a lot

Cristiane

Reply With Quote
  #4  
Old   
Cris
 
Posts: n/a

Default Re: Calculated member x MDX builder..... - 07-07-2003 , 08:17 PM



Hi Tom

sorry, I think I wasn´t clear.... I´d like to know how do I visualize
anything that I build in MDX builder? how to put it in the cube?

thanks a lot


Cristiane

"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote

Quote:
Depends on the front-end. (Just start dargging & dropping...?)

tom @ the domain below
www.tomchester.net


"Cris" <crissarruda (AT) hotmail (DOT) com> wrote in message
news:3da37342.0307061703.63ad7bfe (AT) posting (DOT) google.com...
thanks Tom,
now, please, if I do it in the MDX builder because I wanna see the
months in the column and product in the rows.... how do I visualize
this at the front end?

thanks

Cristiane


"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote in message
news:<k20Oa.28$bH.45253 (AT) news (DOT) uswest.net>...
You can save the calc member in the cube, but not the SELECT statement.

tom @ the domain below
www.tomchester.net


"Cris" <crissarruda (AT) hotmail (DOT) com> wrote in message
news:3da37342.0307041903.810a3bf (AT) posting (DOT) google.com...
Dear all,

in MDX sample application I constructed this query bellow and it runs
perfectly:

with member Measures.YTDSales as 'sum(YTD(),[Measures].[Unit Sales])'
select
{DESCENDANTS([Time].[1997],Month)} on columns,
{[Product].[Product Category].Members} on rows
from Sales
where (Measures.YTDSales)


My doubt is: how to do this inside the Analysis Manager? If I put the
statement in the calculated members it doens´t work. Is it possible?
how?

thanks a lot

Cristiane

Reply With Quote
  #5  
Old   
ygb
 
Posts: n/a

Default Re: Calculated member x MDX builder..... - 07-08-2003 , 11:45 AM




In Analysis Manager (specifically, in the Cube Editor):
a) right-click on Calculated Members
b) select New Calculated Member
c) Parent Dimension must remain Measures
d) Type the name of the new calculated measure in Member Name box
(say, YTDSales)
e) For some reason, sum(YTD...) didn''t quite work so I had to resort to
the following equivalent MDX:

Sum(PeriodsToDate([Time].[Year], [Time].CurrentMember),
[Measures].[Unit Sales])

Thanks.
YB

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