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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDX filter on column value ?

Status
Not open for further replies.

Exie

Programmer
Sep 3, 2003
156
0
0
AU
Hi I have a cube that looks like so:
Code:
<Dimension name="Customers">
	<Hierarchy hasAll="true">
		<Level name="Customer Group" column="CUST_GROUP" type="String" uniqueMembers="false" levelType="Regular" hideMemberIf="Never">
		</Level>
		<Level name="Customer" column="PARENT_ID" nameColumn="PARENT_CUST_NAME" type="String" uniqueMembers="true" levelType="Regular" hideMemberIf="Never" ordinalColumn="PARENT_CUST_NAME">
		</Level>
		<Level name="SubCustomer" column="CUSTOMER_ID" nameColumn="CUSTOMER_NAME" type="String" uniqueMembers="false" levelType="Regular" hideMemberIf="Never">
			<Property name="Customer Name" column="CUSTOMER_NAME" type="String">
			</Property>
		</Level>
	</Hierarchy>
</Dimension>

and I want to write and MDX query to select only data relating to member with PARENT_ID value of 20222

.. Something like:
Code:
select NON EMPTY { [Measures].[Total Value] } ON COLUMNS, 
   NON EMPTY {[Product].[All Products].Children } ON ROWS
from [Sales]
where [Customers].[All Customerss].[CR].value[20222]

At the moment, the square brackets represent the value of nameColumn ... but I want the actual column filed.

 
I think it should be

select NON EMPTY { [Measures].[Total Value] } ON COLUMNS,
NON EMPTY {[Product].[All Products].20222 } ON ROWS
from [Sales]
where [Customers].[All Customerss].[CR]

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top