2016-09-28 6 views
0
このクエリが結果セットを実行するための時間のあまりを取っている

、以下MDX:クエリパフォーマンス

WITH MEMBER PatientName AS [DimPatient].[Full Name].CurrentMember.Member_Caption 
    MEMBER PatientAge AS [DimPatient].[Age].CurrentMember.Member_Caption 
    MEMBER PatientGender AS [DimPatient].[Gender].CurrentMember.Member_Caption 
    MEMBER PatientMRN AS [DimPatient].[Medical Record Number].CurrentMember.Member_Caption 
    MEMBER PCPList AS [DimPCP].[Provider Key].CurrentMember.Member_Caption 
    MEMBER CareTeamList AS [DimCareTeam].[CareTeamName].CurrentMember.Member_Caption 
    MEMBER ConditionList AS [DimCondition].[Condition Name].CurrentMember.Member_Caption 
SELECT (([DimPatient].[Patient Key].[Patient Key], 
        [DimPCP].[Provider Key].[Provider Key], 
        [DimCareTeam].[CareTeamName].[CareTeamName], 
        [DimCondition].[Condition Name].[Condition Name])) ON 1 , 
{ [Measures].[PatientName] , 
    [Measures].[PatientAge] , 
    [Measures].[PatientGender] , 
    [Measures].[PatientMRN] , 
    [Measures].[Num Of Minutes] , 
    [PCPList] ,[CareTeamList] , 
    [ConditionList] } ON 0 FROM [NavigateCube] 
    WHERE ([DimManagedPopulation].[ManagedPopulationKey].&[5059],[DimAnchorDate].[Date Key].&[20160930]) 

答えて

0

はあなたが試すことができ、クエリを最適化する方法はありますか?ディメンションキャプションを返す手段を構築する必要はありません。そしてNON EMPTYは、感覚(私は仮定分のテンキーとの組合せ)を作る寸法の組み合わせのみを返すことによって、それをスピードアップする必要があります

SELECT NON EMPTY (([DimPatient].[Patient Key].[Patient Key], 
        [DimPatient].[Full Name].[Full Name], 
        [DimPatient].[Age].[Age], 
        [DimPatient].[Gender].[Gender], 
        [DimPatient].[Medical Record Number].[Medical Record Number], 
        [DimPCP].[Provider Key].[Provider Key], 
        [DimCareTeam].[CareTeamName].[CareTeamName], 
        [DimCondition].[Condition Name].[Condition Name])) ON 1 , 
{ [Measures].[Num Of Minutes] } ON 0 
FROM [NavigateCube] 
    WHERE ([DimManagedPopulation].[ManagedPopulationKey].&[5059],[DimAnchorDate].[Date Key].&[20160930]) 
+0

空の結果を表示するには、どのメインメジャーグループの主な尺度で何 – Deepthi

+0

@Deepthiを設定しました患者、PCP、ケアチーム、条件の有効な組み合わせを教えてくれるでしょうか?分の数ではない場合、適切な尺度を置く。 – GregGalloway

関連する問題