harsha547
3/25/2017 - 6:32 PM

Retrieve Data Using MDX ( Cube : AdventureWorks )

Retrieve Data Using MDX ( Cube : AdventureWorks )

-- Code Snippet of the Day [ March 25th , 2017 }

-- Use Children with the dimension to exclude All Geographies 

-- Following MDX query is used to retrieve data for the all geographies with measures of Internet sales orders and Total orders

SELECT
	NON EMPTY { [Measures].[Internet Order Count],
				[Measures].[Order Count]
				} ON COLUMNS,

	[Geography].[Country].Children  ON ROWS

FROM [Adventure Works]