0
ここ
私は1つの属性TotalPatientCnt値である持っている(30,2013,39)が、私は1つ以上でTotalPatientCntの(2082)TOTALSUMを必要とします属性。
WITH
MEMBER [ProgramNames] AS [DimPatientProgram].[Program Key].CURRENTMEMBER.MEMBER_CAPTION
MEMBER [ProgramKey] AS [DimPatientProgram].[Program Key].CURRENTMEMBER.MEMBER_Key
MEMBER TotalPatientCnt AS [Measures].[HealthPlanPatientCnt]
MEMBER MetricPercent AS [Measures].[ProgramPatientKeyCnt] * 1/TotalPatientCnt * 100 ,format_string = '#,##.00'
SELECT { [ProgramKey] ,
[ProgramNames] ,
[Measures].[ProgramPatientKeyCnt] ,
[TotalPatientCnt] ,
[MetricPercent] } ON COLUMNS,
Order (NONEMPTY([DimPatientProgram].[Program Key].[Program Key],
[Measures].[ProgramPatientKeyCnt]),
[Measures].[ProgramPatientKeyCnt],BASC) ON ROWS
FROM [PopulationReportCube]
WHERE ([DimReport].[Report Key].[Care Management Metric],
[DimAnchorDate].[Date Key].&[20170930],
[DimHealthPlan].[Health Plan Key].[Health Plan Key])