dbTalk Databases Forums  

MDX exceptions

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


Discuss MDX exceptions in the microsoft.public.sqlserver.olap forum.



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

Default MDX exceptions - 10-11-2006 , 05:17 PM






Hi, I'm relatively new to MDX and I will be really thankful if somebody
can help me out . I am trying to create an exception in Panorama.

I have the following Dimension and propertie(s) to that dim:

[Activity Time].[Fiscal Year].&[2007].&[3]

Properties:
Current Fiscal Year: 2007
Fiscal Quarter: 3

I also have another dimension and a calculater member to that dim:
[Last Full P and Q]

Calculated member: Last Full Period

I need to find a way to parse out the 2007 from [Activity Time].[Fiscal
Year].&[2007].&[3] and compare that to the property Current Fiscal
Year:2007 of that dimension and at the same time compare the Fiscal
Quarter:3 property of the Activity Time dimension to the Last Full
Period calculated member of the Last Full P and Q dimension. Thanks for
your help!!!

Josh


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

Default Re: MDX exceptions - 10-11-2006 , 05:28 PM






I was thinking of something like this but obviously it doesnt work.

cint(Mid(
[Activity Time].CurrentMember.UniqueName,
len("[Activity Time].[Fiscal Year].&[") + 1,
len("2007"))) = [Activity Time].CurrentMember.Properties("Current
Fiscal Year")
AND cint([Activity Time].CurrentMember.Properties("Fiscal Quarter")) >
[Last Full P and Q].[Last Full Quarter]

Thanks

josh


Josh wrote:
Quote:
Hi, I'm relatively new to MDX and I will be really thankful if somebody
can help me out . I am trying to create an exception in Panorama.

I have the following Dimension and propertie(s) to that dim:

[Activity Time].[Fiscal Year].&[2007].&[3]

Properties:
Current Fiscal Year: 2007
Fiscal Quarter: 3

I also have another dimension and a calculater member to that dim:
[Last Full P and Q]

Calculated member: Last Full Period

I need to find a way to parse out the 2007 from [Activity Time].[Fiscal
Year].&[2007].&[3] and compare that to the property Current Fiscal
Year:2007 of that dimension and at the same time compare the Fiscal
Quarter:3 property of the Activity Time dimension to the Last Full
Period calculated member of the Last Full P and Q dimension. Thanks for
your help!!!

Josh


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

Default Re: MDX exceptions - 10-12-2006 , 10:16 PM



Not quite sure what you try to achieve. Ancestor([Activity
Time].currentmember,
Activity Time].[Fiscal Year]).name should give you the year member name.

"Josh" wrote:

Quote:
I was thinking of something like this but obviously it doesnt work.

cint(Mid(
[Activity Time].CurrentMember.UniqueName,
len("[Activity Time].[Fiscal Year].&[") + 1,
len("2007"))) = [Activity Time].CurrentMember.Properties("Current
Fiscal Year")
AND cint([Activity Time].CurrentMember.Properties("Fiscal Quarter"))
[Last Full P and Q].[Last Full Quarter]

Thanks

josh


Josh wrote:
Hi, I'm relatively new to MDX and I will be really thankful if somebody
can help me out . I am trying to create an exception in Panorama.

I have the following Dimension and propertie(s) to that dim:

[Activity Time].[Fiscal Year].&[2007].&[3]

Properties:
Current Fiscal Year: 2007
Fiscal Quarter: 3

I also have another dimension and a calculater member to that dim:
[Last Full P and Q]

Calculated member: Last Full Period

I need to find a way to parse out the 2007 from [Activity Time].[Fiscal
Year].&[2007].&[3] and compare that to the property Current Fiscal
Year:2007 of that dimension and at the same time compare the Fiscal
Quarter:3 property of the Activity Time dimension to the Last Full
Period calculated member of the Last Full P and Q dimension. Thanks for
your help!!!

Josh



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.