dbTalk Databases Forums  

mdx syntax help

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


Discuss mdx syntax help in the microsoft.public.sqlserver.olap forum.



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

Default mdx syntax help - 07-27-2004 , 03:31 PM






I am trying to pivot an mdx query and am running into syntax errors,
or what I am trying to accomplish cannot be done. Any help would be
greatly appreciated. Here is the query:

WITH
MEMBER [CustomWellGroups].[Office] AS '[CustomWellGroups].[Office
Name].[BAIROIL OFFICE] + [CustomWellGroups].[Office Name].[ANSHUTZ
OFFICE]'

SELECT
CrossJoin({LastPeriods(12,
[ActivityDate].[2004].[Feb])},{AddCalculatedMembers([Measures].members)})
ON COLUMNS,
{[CustomWellGroups].[Office].Children} ON ROWS

FROM
POS_Activity_GrossExpense

WHERE
([GER_COAGroup].[Gross Lease Operating Expense].[880 : LEASE
OPERATING EXPENSE].[880.18 : COMPRESSION EXPENSE])


When processed this query returns the following error:

"Unable to display opened cellset
Cells cannot be created for this cellset because on of the axes
contains no positions."

When using the defined member as criteria in the WHERE clause this
works fine, but trying to access the children of the defined member
for the rows it seems this information is not available? If the
..Children part is removed information is returned, but we need the
children...

Once again, any information that explains what is wrong or the flaw in
the logic would be greatly appreciated.

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.