Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

MDX Returning Member Properties

$
0
0
The following query returns a list of customers I am interested in:[b]select {[Measures].[Net Value]} on 0, NON EMPTY [Customer].[Customer].[Customer].Members on 1 from (select ( [Transaction Date].[Date].&[2013-01-25T00:00:00] ) on 0 from [Invoice And Credits])[/b]In my customer dimension I have several member properties which hold address information for the customers. I need to be able to include them in the results and have tried this:[b]with member [Measures].AddressLine1 as [Customer].[Customer].Properties( "Address Line 1" )select {[Measures].[Net Value],AddressLine1} on 0, NON EMPTY [Customer].[Customer].[Customer].Members on 1 from (select ( [Transaction Date].[Date].&[2013-01-25T00:00:00] ) on 0 from [Invoice And Credits])[/b]This returns all customers in my dimension (see image attachment SSAS2.png) - How can I include the member property?

Viewing all articles
Browse latest Browse all 1341

Latest Images

Trending Articles



Latest Images