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!

Member properties with DIMENSION PROPERTIES

Status
Not open for further replies.

chewza

MIS
Feb 15, 2003
22
ZA
Hi there,

I'm trying to return (as rows), the customer name, and the gender of the customer. I am trying to use the "DIMENSION PROPERTIES" to achieve this - see below (uses Foodmart 2000 db). Runs ok, but query result is the same regardless of whether I put in PROPERTIES [Customers].[Gender] - seems to have no effect on axes!

Help

Regards

Chris

 
You can use DIMENSION PROPERTIES, but I prefer to use MEMBER PROPERTIES like this

With
MEMBER [Measures].[Gender] As '[Customers].CurrentMember.Properties("Gender")'
SET RowSet As 'Descendants([Customers],[Customers].[Name])'
SET ColSet As '{[Measures].[Gender], [Measures].[Unit Sales]}'
Select
ColSet on Columns,
RowSet on Rows
From Sales

hth,

Justin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top