dbTalk Databases Forums  

MDX returns different results

comp.databases.olap comp.databases.olap


Discuss MDX returns different results in the comp.databases.olap forum.



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

Default MDX returns different results - 05-29-2008 , 02:21 PM






Hi,

I am new to MDX and I have created a query listed below, this returns
the correct information from the cube. However when I split the query
into a CREATE SET and Query the data returned is wrong. I need to
include the set creation in the cube but this returns the wrong
information. I thought that information returned by these two queries
would be indentical can anyone explain please.

Thanks David


SELECT
({[Time Calculations].&[Current Period],[Time Calculations].[Prior
Year]}) on columns,
Filter (([Store].[Store No].[Store No].Members),
([LFL Month Store].[Month Lf L Store].&[Month LfL Store]) <> 0) on
rows
from finance
where( [LFL Calendar].[LFL Calendar Hierarchy].[Year].&[2008].&[Qtr 1
2008].&[P3:April 2008] ,
[Measures].[GL Amount])

----------------------------------------------------------------------------------------------------------------------------------------

create SET [Finance].[LFL Stores List] AS
Filter (([Store].[Store No].[Store No].Members),
([LFL Month Store].[Month Lf L Store].&[Month LfL Store]) <> 0)

SELECT
({[Time Calculations].&[Current Period],[Time Calculations].[Prior
Year]}) on columns,
[LFL Stores List] on rows
from finance
where( [LFL Calendar].[LFL Calendar Hierarchy].[Year].&[2008].&[Qtr 1
2008].&[P3:April 2008] ,
[Measures].[GL Amount])






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.