dbTalk Databases Forums  

MDX - Unable to open cellset formula error

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


Discuss MDX - Unable to open cellset formula error in the microsoft.public.sqlserver.olap forum.



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

Default MDX - Unable to open cellset formula error - 09-09-2004 , 10:45 AM






I'm just learning to use MDX to create queries. Not real
knowledgeable with SQL queries, but have a very short learning curve.
Can I get some help on resolving the error I'm getting.

Select
NON EMPTY {[Broker].[GN_Hierarchy].[President].Members} ON COLUMNS,
NON EMPTY {[Broker].[State].[Broker Name].Members} ON ROWS
From
[GN_Loans]
Where ([Broker].[State].[All Broker].[ALABAMA])

Recieve this message "Unable to open cellset formula error duplicate
dimensions across (Independent) axes when calculating a query axis".

Reply With Quote
  #2  
Old   
Stefan Farthofer
 
Posts: n/a

Default Re: MDX - Unable to open cellset formula error - 09-10-2004 , 03:08 AM






Quote:
Select
NON EMPTY {[Broker].[GN_Hierarchy].[President].Members} ON COLUMNS,
NON EMPTY {[Broker].[State].[Broker Name].Members} ON ROWS
From
[GN_Loans]
Where ([Broker].[State].[All Broker].[ALABAMA])

Recieve this message "Unable to open cellset formula error duplicate
dimensions across (Independent) axes when calculating a query axis".
The problem here is that you may not specify members of a dimension on more
than one axis. Since you already select [Broker].[State].[Broker
Name].Members on the rows, you may not use another member of the [Broker]
dimension on the filter axis.

If the [Broker Name] level is under the [State] Level, the following query
would should select all brokers that are under ALABAMA on the rows:

Select
NON EMPTY {[Broker].[GN_Hierarchy].[President].Members} ON COLUMNS,
NON EMPTY {[Broker].[State].[All Broker].[ALABAMA].Children} ON ROWS
From
[GN_Loans]

If there are additional levels between [State] and [Broker Name] you could
use the descendants() function like this:
Descendants([Broker].[State].[All Broker].[ALABAMA],
[Broker].[State].[Broker Name])

This function returns all descendants of [Broker].[State].[All
Broker].[ALABAMA] which are on the [Broker Name] level.

HTH
Stefan Farthofer




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

Default Re: MDX - Unable to open cellset formula error - 09-10-2004 , 01:29 PM



Stefan

Thanks a lot, your query worked just fine.

"Stefan Farthofer" <sf (AT) immobilien (DOT) net> wrote

Quote:
Select
NON EMPTY {[Broker].[GN_Hierarchy].[President].Members} ON COLUMNS,
NON EMPTY {[Broker].[State].[Broker Name].Members} ON ROWS
From
[GN_Loans]
Where ([Broker].[State].[All Broker].[ALABAMA])

Recieve this message "Unable to open cellset formula error duplicate
dimensions across (Independent) axes when calculating a query axis".
The problem here is that you may not specify members of a dimension on more
than one axis. Since you already select [Broker].[State].[Broker
Name].Members on the rows, you may not use another member of the [Broker]
dimension on the filter axis.

If the [Broker Name] level is under the [State] Level, the following query
would should select all brokers that are under ALABAMA on the rows:

Select
NON EMPTY {[Broker].[GN_Hierarchy].[President].Members} ON COLUMNS,
NON EMPTY {[Broker].[State].[All Broker].[ALABAMA].Children} ON ROWS
From
[GN_Loans]

If there are additional levels between [State] and [Broker Name] you could
use the descendants() function like this:
Descendants([Broker].[State].[All Broker].[ALABAMA],
[Broker].[State].[Broker Name])

This function returns all descendants of [Broker].[State].[All
Broker].[ALABAMA] which are on the [Broker Name] level.

HTH
Stefan Farthofer

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.