dbTalk Databases Forums  

Novice MDX Question

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


Discuss Novice MDX Question in the microsoft.public.sqlserver.olap forum.



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

Default Novice MDX Question - 07-23-2005 , 11:51 AM






I am trying to write a query that will filter based on two members of the
same dimension.

Getting "duplicate dimensions accross independent axis" error when I try the
query below.

Any suggestions greatly appreciated:

SELECT
NON EMPTY {[Credited Card].[Standard].[All Credited Cards]} ON ROWS,
NON EMPTY {[Measures].[Amount]} ON COLUMNS
FROM [CreditCards]
WHERE ( [Transaction Type].[Standard].[Transaction Type].[Pay], [Transaction
Type].[Standard].[Transaction Type].[Charge] )





Reply With Quote
  #2  
Old   
billd
 
Posts: n/a

Default RE: Novice MDX Question - 07-23-2005 , 12:15 PM






Got it to work using aggregate function:

Set [TranSet] as
'{[Transaction Type].[Standard].[Transaction Type].[Pay],
[Transaction Type].[Standard].[Transaction Type].[Charge]}'

Member [Transaction Type].[Standard].[All Transactions].[SelectedTrans] as
'Aggregate([TranSet])'

SELECT
NON EMPTY {[Credited Card].[Standard].[All Credited Cards]} ON ROWS,
NON EMPTY {[Measures].[Amount]} ON COLUMNS
FROM [CreditCards]
WHERE ( [Transaction Type].[Standard].[All Transactions].[SelectedTrans] )



"billd" wrote:

Quote:
I am trying to write a query that will filter based on two members of the
same dimension.

Getting "duplicate dimensions accross independent axis" error when I try the
query below.

Any suggestions greatly appreciated:

SELECT
NON EMPTY {[Credited Card].[Standard].[All Credited Cards]} ON ROWS,
NON EMPTY {[Measures].[Amount]} ON COLUMNS
FROM [CreditCards]
WHERE ( [Transaction Type].[Standard].[Transaction Type].[Pay], [Transaction
Type].[Standard].[Transaction Type].[Charge] )





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.