dbTalk Databases Forums  

MDX sample application error

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


Discuss MDX sample application error in the microsoft.public.sqlserver.olap forum.



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

Default MDX sample application error - 07-14-2004 , 04:00 PM






Hi all,

I'm a new user in Data Warehouse. I created my data warehouse database and cubes and could browser data in the cube. But when I tried the MDX Sample Application to run the script: SELECT {[Batch].[Batch Number]} ON COLUMNS,{[Measures].[Line Total]} ON ROWS FROM MyCube
, I got the error message as following:

Unable to open cellset
Formula error - cannot bind unknown dimension or member "[Batch].[Batch Number]"

But I can browser the dimensions and members in the cube pane with MDX Sample Application.

By the way, if I selected the FoodMart2000 as database, Sales as cube, I could get results.

Did I miss something to create the cube?

Many thanks if you have solutions on it, I will really appreciate it !!

ym


Reply With Quote
  #2  
Old   
Andrej Hudoklin
 
Posts: n/a

Default Re: MDX sample application error - 07-15-2004 , 03:30 AM






Hi,

if the [Batch Number] is a member in dimension [Batch]
then the MDX should be like:
SELECT {[Batch].&[Batch Number]} ON COLUMNS,{[Measures].[Line Total]} ON
ROWS FROM MyCube

if not, and if the [Batch Number] is a name of a level, then you have to say
what do you want to do with that level;
for example if you would like to see all members in that level:
SELECT {[Batch].[Batch Number].members} ON COLUMNS,{[Measures].[Line Total]}
ON ROWS FROM MyCube

HTH,
Andrej


"May" <May (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi all,

I'm a new user in Data Warehouse. I created my data warehouse database and
cubes and could browser data in the cube. But when I tried the MDX Sample
Application to run the script: SELECT {[Batch].[Batch Number]} ON
COLUMNS,{[Measures].[Line Total]} ON ROWS FROM MyCube
Quote:
, I got the error message as following:

Unable to open cellset
Formula error - cannot bind unknown dimension or member "[Batch].[Batch
Number]"

But I can browser the dimensions and members in the cube pane with MDX
Sample Application.

By the way, if I selected the FoodMart2000 as database, Sales as cube, I
could get results.

Did I miss something to create the cube?

Many thanks if you have solutions on it, I will really appreciate it !!

ym




Reply With Quote
  #3  
Old   
May
 
Posts: n/a

Default Re: MDX sample application error - 07-15-2004 , 06:41 PM



Hi Andrej,

Thanks a lot ! It works!

ym

"Andrej Hudoklin" wrote:

Quote:
Hi,

if the [Batch Number] is a member in dimension [Batch]
then the MDX should be like:
SELECT {[Batch].&[Batch Number]} ON COLUMNS,{[Measures].[Line Total]} ON
ROWS FROM MyCube

if not, and if the [Batch Number] is a name of a level, then you have to say
what do you want to do with that level;
for example if you would like to see all members in that level:
SELECT {[Batch].[Batch Number].members} ON COLUMNS,{[Measures].[Line Total]}
ON ROWS FROM MyCube

HTH,
Andrej


"May" <May (AT) discussions (DOT) microsoft.com> wrote in message
news:7550F894-81D2-4DAD-8F53-DF98CB538B1C (AT) microsoft (DOT) com...
Hi all,

I'm a new user in Data Warehouse. I created my data warehouse database and
cubes and could browser data in the cube. But when I tried the MDX Sample
Application to run the script: SELECT {[Batch].[Batch Number]} ON
COLUMNS,{[Measures].[Line Total]} ON ROWS FROM MyCube
, I got the error message as following:

Unable to open cellset
Formula error - cannot bind unknown dimension or member "[Batch].[Batch
Number]"

But I can browser the dimensions and members in the cube pane with MDX
Sample Application.

By the way, if I selected the FoodMart2000 as database, Sales as cube, I
could get results.

Did I miss something to create the cube?

Many thanks if you have solutions on it, I will really appreciate it !!

ym





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.