enter image description here如何使用mdx查询来定义值。对于此查询,输出值为2.2,但我需要舍入到3。
WITH MEMBER [AssessmentCouting] AS COUNT(NonEmpty (
{
(
([DimAnchorDate].[Anchor Date].[Anchor Date]),
([DimAnchorDate].[Calendar Quarter Des].[Calendar Quarter Des]),
([DimAssessment].[AssessmentText].&[167]&[Care Management Follow up Encounter]),
([DimAssessment].[QuestionText].[QuestionText]),
([DimPatient].[Patient Key].[Patient Key]),
([DimPatient].[Full Name].[Full Name])
)
},
{ [Measures].[ProgramAssessmentPatientCnt] }))/10
SELECT [AssessmentCouting] ON 0
FROM [NavigateCube]
答案 0 :(得分:0)
试一试:
WITH MEMBER [AssessmentCouting] AS COUNT(NonEmpty (
{
(
([DimAnchorDate].[Anchor Date].[Anchor Date]),
([DimAnchorDate].[Calendar Quarter Des].[Calendar Quarter Des]),
([DimAssessment].[AssessmentText].&[167]&[Care Management Follow up Encounter]),
([DimAssessment].[QuestionText].[QuestionText]),
([DimPatient].[Patient Key].[Patient Key]),
([DimPatient].[Full Name].[Full Name])
)
},
{ [Measures].[ProgramAssessmentPatientCnt] }))/10
MEMBER [AssessmentCoutingRounder] AS
IIF(
[AssessmentCouting] > Int([AssessmentCouting]),
Int([Measures].[AssessmentCouting])+1,
[Measures].[AssessmentCouting]
)
SELECT {[AssessmentCouting],[AssessmentCoutingRounder]} ON 0
FROM [NavigateCube]