Thank you for your response!
But I would like to know if there is a way, where i can provide the
member name in the where slicer,that would internally refer to the
member key value, as the key value may not be known for using in the
where slicer.
This is because, the user is displayed with only the member names, and
would drill down by selecting a particular customer name. Only the
name is available at this point for filtering and not the key value.
Thanks in advance,
ktk
Deepak Puri <deepak_puri (AT) progressive (DOT) com> wrote
Quote:
Here's a sample query for the Foodmart Sales cube, which selects the
Customer with a Key of 3 in the "where" slicer.
The [CustName] calculated measure confirms that the customer with an ID
of 3 is indeed selected:
With Member [Measures].[CustName] as
'[Customers].CurrentMember.Name'
select Measures.AllMembers on columns
from Sales
where (Filter([Customers].[Name].Members,
[Customers].Properties("KEY") = "3").Item(0))
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com *** |