dbTalk Databases Forums  

SSAS05 Help needed with MDX and Oracle data source

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


Discuss SSAS05 Help needed with MDX and Oracle data source in the microsoft.public.sqlserver.olap forum.



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

Default SSAS05 Help needed with MDX and Oracle data source - 04-12-2006 , 11:31 AM






Hi.
I tried to set a default member, something that I assumed was
straightforward but I do not get the expected results.
I am working with a DW on Oracle.
I have a time dimension called [V Completion Date], with among others
[Month] as an attribute. I want to set Month default member as the
last member with useful data in the cube.
My MDX expression is:
Tail(Filter([V COMPLETION DATE].[Month].Members,
NOT IsEmpty([V COMPLETION DATE].[Month].[CurrentMember])),1).Item(0)

(I have also tried using [V COMPLETION DATE].[CurrentMember] in the
second part of the expression with same outcome described below).

When I query using Proclarity MDX Editor with:

SELECT {[V COMPLETION DATE].[Month].DefaultMember} ON AXIS(0), NON
EMPTY {[Measures].[LOAN AMOUNT]} ON AXIS(1) FROM [Dev F2]

I get as result only September 2007 with no data. September 2007 is the
last Month configured in [V Completion Date].

According to all the examples that I have seen I should get February
2006 and Loan amount £340,000, the last non null data in the cube.

There is something wrong with my MDX?
Is it an issue of data / null conversion between Oracle and SSAS05?

Please advise.
Cheers
Enzo


Reply With Quote
  #2  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: SSAS05 Help needed with MDX and Oracle data source - 04-16-2006 , 06:15 AM






You have not specified which measure you are using when you are testing
for empty cells. Is it possible that the default measure is non-empty in
September 2007?

You could test this by running the following query:

Quote:
SELECT {[V COMPLETION DATE].[Month].DefaultMember} ON AXIS(0) FROM [Dev
F2]
Quote:
If this is your issue, you could try something like the following to
explicitly evaluate the empty status against the Loan Amount measure:

Tail(Filter([V COMPLETION DATE].[Month].Members,
NOT IsEmpty(([V COMPLETION DATE].[Month].[CurrentMember],[Measures].
[LOAN AMOUNT]))),1).Item(0)

--
Regards
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell

In article <1144859472.125492.131720 (AT) e56g2000cwe (DOT) googlegroups.com>,
emartoglio (AT) gmail (DOT) com says...
Quote:
Hi.
I tried to set a default member, something that I assumed was
straightforward but I do not get the expected results.
I am working with a DW on Oracle.
I have a time dimension called [V Completion Date], with among others
[Month] as an attribute. I want to set Month default member as the
last member with useful data in the cube.
My MDX expression is:
Tail(Filter([V COMPLETION DATE].[Month].Members,
NOT IsEmpty([V COMPLETION DATE].[Month].[CurrentMember])),1).Item(0)

(I have also tried using [V COMPLETION DATE].[CurrentMember] in the
second part of the expression with same outcome described below).

When I query using Proclarity MDX Editor with:

SELECT {[V COMPLETION DATE].[Month].DefaultMember} ON AXIS(0), NON
EMPTY {[Measures].[LOAN AMOUNT]} ON AXIS(1) FROM [Dev F2]

I get as result only September 2007 with no data. September 2007 is the
last Month configured in [V Completion Date].

According to all the examples that I have seen I should get February
2006 and Loan amount £340,000, the last non null data in the cube.

There is something wrong with my MDX?
Is it an issue of data / null conversion between Oracle and SSAS05?

Please advise.
Cheers
Enzo



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.