![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| WITH |
#3
| |||
| |||
|
|
On Question #1, not sure what you mean by "the same query in mdx and in sql (in sql format)" - is that the special SQL dialect for Analysis Services? On Question #2, [CampaignID] should be made null whenever[CampaignName].CurrentMember is empty, like: WITH MEMBER [Measures].[CampaignKey] As '[CampaignName].CurrentMember.Properties ( "Key" )' MEMBER [Measures].[CampaignID] As 'iif(IsEmpty([Measures].DefaultMember), Null, [Measures].[CampaignKey])' ... - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Hi Ruby, you are using two dynamic aggregations: MEMBER [Date].DateRange As ' Aggregate ( { [Date].[All Date].[2005].[7].[12]:[Date].[Â*All Date].[2005].[7].[13] } ) ' MEMBER [Sector].SectorOp As ' Aggregate ( { [Sector].[All Sector].[English], [Sector].[All Sector].[Spanish] } ) ' For these aggregations the analysis server cannot create aggregations in advance. Hence the server has to calculate just as the sql server (In fact, I think sql server is better at calculating values). When you query preaggregated data the analysis server should be faster. HTH Lutz Morrien |
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |