Skip to content

Instantly share code, notes, and snippets.

@buggtb
Created April 9, 2015 13:30
Show Gist options
  • Select an option

  • Save buggtb/3fa015d28711b7a8be77 to your computer and use it in GitHub Desktop.

Select an option

Save buggtb/3fa015d28711b7a8be77 to your computer and use it in GitHub Desktop.
WITH
SET [~COLUMNS] AS
{[Time].[Time].[1997]}
SET [~ROWS] AS
Order({[Employee].[Management Role].[Management Role].Members}, [Measures].[Avg Salary], BDESC)
SELECT
NON EMPTY CrossJoin([~COLUMNS], {[Measures].[Avg Salary]}) ON COLUMNS,
NON EMPTY [~ROWS] ON ROWS
FROM [HR]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment