This query
creates a calculation for the average price of a car. The average
price of a car is calculated by dividing the sales_sum by the count
(sales_n). The query returns the sales_sum, sales_n, and the average
price for March and April.
WITH
MEMBER[measures].[avg price] AS
'[measures].[sales_sum] / [measures].[sales_n]'
SELECT
{ [measures].[sales_sum] , [measures].[sales_n], [measures].[avg price] }
ON COLUMNS,
{ [date].[all date].[march], [date].[all date].[april] } ON ROWS
FROM mddbcars
Here is
the resulting output: