dbTalk Databases Forums  

Odd Behaviour from Query - or just MDX Naivety?

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


Discuss Odd Behaviour from Query - or just MDX Naivety? in the microsoft.public.sqlserver.olap forum.



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

Default Odd Behaviour from Query - or just MDX Naivety? - 10-27-2006 , 08:05 AM






Hi All,

The following query (which runs against a AS2005 server) returns 9 rows. If
I remove the calculation from the WHERE clause and re-run it, or replace the
calculation in the WHERE clause with [Container].[Container Type].[All], I
get 15 rows returned (in all cases, the rows returned have the number '1' in
them, as I would expect).

WITH MEMBER
[Container].[Container Type].[AllCalc] AS [Container].[Container Type].[All]
SELECT
([Measures].[Container Load Count]) ON COLUMNS,
NON EMPTY
[Trade].[Trade].&[EAST_AFRICA] * [Container].[Container
Number].[All].Children ON ROWS
FROM [DW_SM]
WHERE (
[Voyage Date].[Calendar Week].&[Week 40, 2006],
[Intermodal],
[Import Booking],
[Container].[Container Type].[AllCalc]
)

I'm fairly new to MDX, but felt that these two expressions _should_ return
the same results. Ignore the fact that the calculation is redundant - it's
the fact that such a calc. affects the results that concerns me.

Any and all help much appreciated!

Thanks,

Will Alber.

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.