dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

MDX returns different results - olap

This is a discussion on MDX returns different results - olap ; 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 ...


Home > Database Forum > Data Warehousing > olap > MDX returns different results

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 05-29-2008, 03:21 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default MDX returns different results

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



All times are GMT -4. The time now is 11:51 AM.