![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| WITH |
#3
| |||
| |||
|
|
Based on the dimension data you provided, the results are sparse, so using NonEmptyCrossJoin() may help, like: WITH SET [SelectedStations] As '{[Station].[5433014],[Station].[5433015],[Station].[5433024],[Station]. [5433025],[Station].[5433042]}' MEMBER [Station].[Permited] as 'Sum([SelectedStations])' SELECT NonEmptyCrossJoin([Year].[2004].[Days].[all days].children, [SelectedStations], 1) ON COLUMNS, NonEmtpyCrossJoin([Seller].[all seller].children,[SelectedStations], 1) ON ROWS FROM [UPPOK] WHERE ([Station].[Permited]) - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| Display Modes | |
| |