Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Viewing 2 attributes from a cube in MDX 1

Status
Not open for further replies.

Flybridge

MIS
Jul 7, 2003
130
GB
I have a calendar dimension and I want to see 2 attributes in my query list:
[Calendar].[Date].[Date]
[Calendar].[Week No].[Week No]

It complains about them not having the same dimensionality.

How can I force it to display both in my query output?

TIA

'The world isn't round - it's bent!' Spike Milligan
 
If you had a Week-Date hierarchy, you could do something like
Code:
{[Calendar].[Week Hierarchy].ALLMEMBERS}

Or, you could do a cross join.
Code:
{[Calendar].[Week No].[Week No]} * {[Calendar].[Date].[Date]}

 
Thanks. Should have thought about the cross join Doh!

'The world isn't round - it's bent!' Spike Milligan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top