-- Average sale amount Per order using calculated member
WITH MEMBER [Measures].[Avg Sale Amount Per Order] AS
'ROUND([Measures].[Internet Sales Amount]/[Measures].[Internet Order Count],0)'
SELECT
{ [Measures].[Customer Count] ,
[Measures].[Internet Order Count],
[Measures].[Internet Sales Amount],
[Measures].[Avg Sale Amount Per Order]
} ON COLUMNS ,
NON EMPTY
{ [product].[Category].children } ON ROWS
FROM [Adventure Works]
-- Linkedin Profile : https://www.linkedin.com/in/harshasannareddy/