Skip to content

Instantly share code, notes, and snippets.

@alexey-kar
Last active January 23, 2018 18:14
Show Gist options
  • Save alexey-kar/fdad9718795df5a094f126c0c44087a7 to your computer and use it in GitHub Desktop.
Save alexey-kar/fdad9718795df5a094f126c0c44087a7 to your computer and use it in GitHub Desktop.
SELECT * FROM OPENQUERY([SSAS_DashboardCRM_MCART],
'SELECT
NON EMPTY [Сотрудники].[Сотрудник].[Сотрудник] ON ROWS,
{[Measures].[Оборот план], [Measures].[Оборот факт]} ON COLUMNS
FROM [DashboardCRM]
WHERE ([Даты].[ГМ].[Месяц].&[2017411], [UserLogin].[Parent Login].&[\\RUSKLIMAT\\varivoda_i])')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment