Hi, MDX gurus,
I have a unexplainable problem with pretty easy MDX.
Following MDX queries
//
select
Filter([Date].[Date].members,
[Date].[Date].CurrentMember.MemberValue = VBA) )
on 0,
{} on 1
from [Adventure Works]
//
select
Filter([Date].[Date].members,
[Date].[Date].CurrentMember.MemberValue = CDate("11.07.2004"))
on 0,
{} on 1
from [Adventure Works]
provide the same result as expected.
This query
//
select
Filter([Date].[Calendar].[Month].members,
[Date].[Date].CurrentMember.MemberValue = CDate("11.07.2004"))
on 0,
{} on 1
from [Adventure Works]
returns as expected one member
but this query
select
Filter([Date].[Calendar].[Month].members,
[Date].[Date].CurrentMember.MemberValue = VBA) )
on 0,
{} on 1
from [Adventure Works]
retuns nothing. This is strange, isn't it?
Can anybody explain it?
Thanks in advance,
Vladimir Chtepa
The puzzle for me is not why your fourth query doesn't return anything - I don't think it should - but why the third query does return July 2004. In your third query you're filtering the members on [Date].[Calendar].[Month] and for each one checking the currentmember on [Date].[Date] - but the currentmember should be the All Member on [Date].[Date] in all cases, as the following queries show:
with member measures.test as [Date].[Date].CurrentMember.membervalue
select measures.test on 0,
[Date].[Calendar].[Month].members on 1
from [Adventure Works]
and
with member measures.test as [Date].[Date].CurrentMember.membervalue = CDate("11/07/2004")
select measures.test on 0,
[Date].[Calendar].[Month].members on 1
from [Adventure Works]
Very strange...
Chris
|||I don't know why 3-d query returns "expected" result.
It will be great If anybody from developer team could explain it.
No comments:
Post a Comment