dbTalk Databases Forums  

Member Properties Filter

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


Discuss Member Properties Filter in the microsoft.public.sqlserver.olap forum.



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

Default Member Properties Filter - 05-22-2006 , 06:25 AM






Hi

I am new to MDX so please forgive the simplicity of this issue.

I have created a MDX query using the following code:

SELECT { [Time].DEFAULTMEMBER } ON COLUMNS ,

{ [BOM production].[All BOM Productions].CHILDREN } ON ROWS

FROM [Production]

WHERE ( [Measures].[Production Qty Started] )

Now I need to filter the results by a Member property. This member
property is a datetime field.

I am trying

SELECT { [Time].DEFAULTMEMBER } ON COLUMNS ,

{Filter([BOM Production].[Prod No].Members,
([BOM Production].CurrentMember.Properties("Created Date")) >
01/01/2000 )} ON ROWS

FROM [Production]

WHERE ( [Measures].[Production Qty Started] )

This is giving me an error. Any ideas?

Your help is much appreciated.


Reply With Quote
  #2  
Old   
Charu Gupta
 
Posts: n/a

Default RE: Member Properties Filter - 05-22-2006 , 12:01 PM






Hi,

If yu can tell what error message you are getting, that would be helpful in
solving the problem you are facing.

In the meantime you can also try enclosing the date in double quotes. i.e.

{Filter([BOM Production].[Prod No].Members,
([BOM Production].CurrentMember.Properties("Created Date")) >
"01/01/2000")} ON ROWS

Hope this helps you.

Thanks
Charu

"midi" wrote:

Quote:
Hi

I am new to MDX so please forgive the simplicity of this issue.

I have created a MDX query using the following code:

SELECT { [Time].DEFAULTMEMBER } ON COLUMNS ,

{ [BOM production].[All BOM Productions].CHILDREN } ON ROWS

FROM [Production]

WHERE ( [Measures].[Production Qty Started] )

Now I need to filter the results by a Member property. This member
property is a datetime field.

I am trying

SELECT { [Time].DEFAULTMEMBER } ON COLUMNS ,

{Filter([BOM Production].[Prod No].Members,
([BOM Production].CurrentMember.Properties("Created Date"))
01/01/2000 )} ON ROWS

FROM [Production]

WHERE ( [Measures].[Production Qty Started] )

This is giving me an error. Any ideas?

Your help is much appreciated.



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.