dbTalk Databases Forums  

Urgent Help

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


Discuss Urgent Help in the microsoft.public.sqlserver.olap forum.



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

Default Urgent Help - 03-09-2006 , 08:29 AM






Here is my situation


Dimension :

Charge,Calander,.......

Charge : All,Yes, NO, UNK

Calendar : Year,Qtr,Month


Fact for the year 2005,Q3,09

Chare : All

Mile V AMT, D Amt,........

10 123.22 234.46
20 128.33 452.00
30 423.34 322.02
40 762.22 456.32


I want Mile same for whatever Charge(All,Yes,No,UNK)

If user select either All,Yes,No,UNK Mile should be same, only if they
change Month mile can change for this dimension otherwise
if should display Month level value.

For all other dimension mile can change accordingly

Can anyone help me


Thanks
Kalyan


Reply With Quote
  #2  
Old   
MC
 
Posts: n/a

Default Re: Urgent Help - 03-09-2006 , 08:54 AM






You could use calculated measure and 'hard code' the charge level. Something
like

sum([Measures].[Mile], [charge].[All])


MC


"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote

Quote:
Here is my situation


Dimension :

Charge,Calander,.......

Charge : All,Yes, NO, UNK

Calendar : Year,Qtr,Month


Fact for the year 2005,Q3,09

Chare : All

Mile V AMT, D Amt,........

10 123.22 234.46
20 128.33 452.00
30 423.34 322.02
40 762.22 456.32


I want Mile same for whatever Charge(All,Yes,No,UNK)

If user select either All,Yes,No,UNK Mile should be same, only if they
change Month mile can change for this dimension otherwise
if should display Month level value.

For all other dimension mile can change accordingly

Can anyone help me


Thanks
Kalyan




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

Default Re: Urgent Help - 03-09-2006 , 09:35 AM



I am new to MDX, I tried like this

SUM([Chargable Account].[All], [Measures].[SMiles])

I got error msg. like this

Unable to update calculated memberm,
formula error - Syntax error token is not valid
SUM([Chargable Account].[All], [Measures].[SMiles])



I tried like this
WITH MEMBER
[Measures].[Miles_S]
AS
'SUM([Chargable Account].[All], [Measures].[SMiles])'


same error,

Can you help me?

Thanks
Kalyan


"MC" wrote:

Quote:
You could use calculated measure and 'hard code' the charge level. Something
like

sum([Measures].[Mile], [charge].[All])


MC


"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:75CD0FA2-1C0C-4D40-8405-605147ED683C (AT) microsoft (DOT) com...
Here is my situation


Dimension :

Charge,Calander,.......

Charge : All,Yes, NO, UNK

Calendar : Year,Qtr,Month


Fact for the year 2005,Q3,09

Chare : All

Mile V AMT, D Amt,........

10 123.22 234.46
20 128.33 452.00
30 423.34 322.02
40 762.22 456.32


I want Mile same for whatever Charge(All,Yes,No,UNK)

If user select either All,Yes,No,UNK Mile should be same, only if they
change Month mile can change for this dimension otherwise
if should display Month level value.

For all other dimension mile can change accordingly

Can anyone help me


Thanks
Kalyan





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

Default Re: Urgent Help - 03-10-2006 , 01:51 AM



You need to put a name of the (All) member, not the level. So lets say you
called the (all) memeber something like 'All accounts'. You would write

SUM([Chargable Account].[All accounts], [Measures].[SMiles])

The point is, you need to specify member, not level. Offcourse, it would
perhaps be better to write

SUM([Chargable Account].[All].members, [Measures].[SMiles])


MC

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote

Quote:
I am new to MDX, I tried like this

SUM([Chargable Account].[All], [Measures].[SMiles])

I got error msg. like this

Unable to update calculated memberm,
formula error - Syntax error token is not valid
SUM([Chargable Account].[All], [Measures].[SMiles])



I tried like this
WITH MEMBER
[Measures].[Miles_S]
AS
'SUM([Chargable Account].[All], [Measures].[SMiles])'


same error,

Can you help me?

Thanks
Kalyan


"MC" wrote:

You could use calculated measure and 'hard code' the charge level.
Something
like

sum([Measures].[Mile], [charge].[All])


MC


"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:75CD0FA2-1C0C-4D40-8405-605147ED683C (AT) microsoft (DOT) com...
Here is my situation


Dimension :

Charge,Calander,.......

Charge : All,Yes, NO, UNK

Calendar : Year,Qtr,Month


Fact for the year 2005,Q3,09

Chare : All

Mile V AMT, D Amt,........

10 123.22 234.46
20 128.33 452.00
30 423.34 322.02
40 762.22 456.32


I want Mile same for whatever Charge(All,Yes,No,UNK)

If user select either All,Yes,No,UNK Mile should be same, only if they
change Month mile can change for this dimension otherwise
if should display Month level value.

For all other dimension mile can change accordingly

Can anyone help me


Thanks
Kalyan







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

Default Re: Urgent Help - 03-10-2006 , 09:01 AM



MC

Thanks for timely help, it works fine and another question is

Can I call calculated member inside another calculated member?

thanks
kalyan

"MC" wrote:

Quote:
You need to put a name of the (All) member, not the level. So lets say you
called the (all) memeber something like 'All accounts'. You would write

SUM([Chargable Account].[All accounts], [Measures].[SMiles])

The point is, you need to specify member, not level. Offcourse, it would
perhaps be better to write

SUM([Chargable Account].[All].members, [Measures].[SMiles])


MC

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:B7547A08-C379-4DCF-B76C-8726D7308658 (AT) microsoft (DOT) com...
I am new to MDX, I tried like this

SUM([Chargable Account].[All], [Measures].[SMiles])

I got error msg. like this

Unable to update calculated memberm,
formula error - Syntax error token is not valid
SUM([Chargable Account].[All], [Measures].[SMiles])



I tried like this
WITH MEMBER
[Measures].[Miles_S]
AS
'SUM([Chargable Account].[All], [Measures].[SMiles])'


same error,

Can you help me?

Thanks
Kalyan


"MC" wrote:

You could use calculated measure and 'hard code' the charge level.
Something
like

sum([Measures].[Mile], [charge].[All])


MC


"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:75CD0FA2-1C0C-4D40-8405-605147ED683C (AT) microsoft (DOT) com...
Here is my situation


Dimension :

Charge,Calander,.......

Charge : All,Yes, NO, UNK

Calendar : Year,Qtr,Month


Fact for the year 2005,Q3,09

Chare : All

Mile V AMT, D Amt,........

10 123.22 234.46
20 128.33 452.00
30 423.34 322.02
40 762.22 456.32


I want Mile same for whatever Charge(All,Yes,No,UNK)

If user select either All,Yes,No,UNK Mile should be same, only if they
change Month mile can change for this dimension otherwise
if should display Month level value.

For all other dimension mile can change accordingly

Can anyone help me


Thanks
Kalyan








Reply With Quote
  #6  
Old   
MC
 
Posts: n/a

Default Re: Urgent Help - 03-13-2006 , 01:45 AM



Yes, you just need to carefull to generate them in a correct order.
Obviously, you cant call a member you didnt define at that point .


MC

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote

Quote:
MC

Thanks for timely help, it works fine and another question is

Can I call calculated member inside another calculated member?

thanks
kalyan

"MC" wrote:

You need to put a name of the (All) member, not the level. So lets say
you
called the (all) memeber something like 'All accounts'. You would write

SUM([Chargable Account].[All accounts], [Measures].[SMiles])

The point is, you need to specify member, not level. Offcourse, it would
perhaps be better to write

SUM([Chargable Account].[All].members, [Measures].[SMiles])


MC

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:B7547A08-C379-4DCF-B76C-8726D7308658 (AT) microsoft (DOT) com...
I am new to MDX, I tried like this

SUM([Chargable Account].[All], [Measures].[SMiles])

I got error msg. like this

Unable to update calculated memberm,
formula error - Syntax error token is not valid
SUM([Chargable Account].[All], [Measures].[SMiles])



I tried like this
WITH MEMBER
[Measures].[Miles_S]
AS
'SUM([Chargable Account].[All], [Measures].[SMiles])'


same error,

Can you help me?

Thanks
Kalyan


"MC" wrote:

You could use calculated measure and 'hard code' the charge level.
Something
like

sum([Measures].[Mile], [charge].[All])


MC


"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:75CD0FA2-1C0C-4D40-8405-605147ED683C (AT) microsoft (DOT) com...
Here is my situation


Dimension :

Charge,Calander,.......

Charge : All,Yes, NO, UNK

Calendar : Year,Qtr,Month


Fact for the year 2005,Q3,09

Chare : All

Mile V AMT, D Amt,........

10 123.22 234.46
20 128.33 452.00
30 423.34 322.02
40 762.22 456.32


I want Mile same for whatever Charge(All,Yes,No,UNK)

If user select either All,Yes,No,UNK Mile should be same, only if
they
change Month mile can change for this dimension otherwise
if should display Month level value.

For all other dimension mile can change accordingly

Can anyone help me


Thanks
Kalyan










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.