在許多情況下,一些文字性的內(nèi)容并非成員的數(shù)據(jù),但為了顯示其內(nèi)容,我們一般定義為成員的屬性,為了在 查詢中使用!比如[customers]維,其性別、住址、電話可能就是成員的屬性,在mdx查詢中,我們既想查詢數(shù) 據(jù)量,如銷售數(shù)量、銷售金額,也想查詢客戶的信息,如性別、住址、電話等。mdx提供了幾種方法來獲取成員 的屬性。 1)dimension properties select {[measures].members} on columns, {[customers].[all customers].[usa].[ca].[altadena].children} dimension properties [customers].[name].gender,[customers].[name].address on rows from sales 可以查詢客戶的性別和地址屬性。 備注:在mdx例子應(yīng)用中查詢語法正確,數(shù)據(jù)無法顯示,是否要通過adomd等才能正確獲取?? 2)properties 函數(shù) with member [measures].[gender] as '[customers].currentmember.properties("gender")' member [measures].[address] as '[customers].currentmember.properties("address")' select { [measures].[gender], [measures].[address],[measures].members} on columns, {[customers].[all customers].[usa].[ca].[altadena].children} on rows from sales 在mdx顯示客戶性別、地址以及銷售金額等信息。 備注:在mdx例子應(yīng)用中數(shù)據(jù)正常顯示。