Skip to content

Instantly share code, notes, and snippets.

@buggtb
Created April 19, 2016 13:20
Show Gist options
  • Select an option

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

Select an option

Save buggtb/f95fa5203c8afe99511d92986c97b169 to your computer and use it in GitHub Desktop.
WITH
SET [~ROWS_combined_combined.combined] AS
Hierarchize({{[combined].[loc].Members}, {[combined].[pct].Members}})
SET [~ROWS_othercombined_othercombined.otherhierarchy] AS
{[othercombined.otherhierarchy].[ref2].Members}
MEMBER [Measures].[test] as '(([Measures].[count_consultations], [combined].[All combineds], [ccg.H0].[All ccg.H0s]))/(([Measures].[count_consultations], [combined].[All combineds], [othercombined.otherhierarchy].[All othercombined.otherhierarchys]))'
MEMBER [Measures].[other1] as '(([Measures].[count_consultations], [combined].[All combineds], [ccg.H0].[All ccg.H0s]))'
MEMBER [Measures].[other] as '(([Measures].[count_consultations], [combined].[All combineds], [othercombined.otherhierarchy].[All othercombined.otherhierarchys]))'
SELECT
NON EMPTY {[Measures].[count_consultations],[Measures].[test], [Measures].[other1], [Measures].[other]} ON COLUMNS,
NON EMPTY NonEmptyCrossJoin([~ROWS_combined_combined.combined], [~ROWS_othercombined_othercombined.otherhierarchy]) ON ROWS
FROM [MEC]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment