dbTalk Databases Forums  

URGENT HELP ME PLEASE.

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


Discuss URGENT HELP ME PLEASE. in the microsoft.public.sqlserver.olap forum.



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

Default URGENT HELP ME PLEASE. - 03-07-2006 , 12:20 PM






Hi everyone

I am new to MDX. I have two questions.

Q1.
I have two measures total, subtot

I want to create calculated member based on following condition

if calendar dimension level is year display total
else subtotal


Q2.

I am getting following error msg. while using Levels("Calendar") in
calculated member builder,

ERROR MSG.

unable to update the calculated member.
Formula - Cannot convert level to expression in the levels(<string>)
function



Can anyone help me,


Thanks
Kalyan


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

Default Re: URGENT HELP ME PLEASE. - 03-07-2006 , 01:03 PM






IIF(Calendar.CurrentMember.Level.Name = "Year",
[Measures].[Total],[Measures].[SubTotal])

Vimmas


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

Quote:
Hi everyone

I am new to MDX. I have two questions.

Q1.
I have two measures total, subtot

I want to create calculated member based on following condition

if calendar dimension level is year display total
else subtotal


Q2.

I am getting following error msg. while using Levels("Calendar") in
calculated member builder,

ERROR MSG.

unable to update the calculated member.
Formula - Cannot convert level to expression in the levels(<string>)
function



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.