Ssas MDX:如何消除按列的空值

Ssas MDX:如何消除按列的空值,ssas,mdx,Ssas,Mdx,如何消除MDX中的列空值 成员[ReportName]为[DimReport]。[Report Key]。CurrentMember.MEMBER\u标题 成员[ReportKey]为[DimReport].[Report Key].CurrentMember.UniqueName 成员[ReportWiseLatestDate]作为尾部(非空([DimAnchorDate].[Date Key].[Date Key],[Measures].[DrPatientKeyCnt]),1)。项(0)

如何消除MDX中的列空值

成员[ReportName]为[DimReport]。[Report Key]。CurrentMember.MEMBER\u标题
成员[ReportKey]为[DimReport].[Report Key].CurrentMember.UniqueName
成员[ReportWiseLatestDate]作为尾部(非空([DimAnchorDate].[Date Key].[Date Key],[Measures].[DrPatientKeyCnt]),1)。项(0)。成员值
挑选
列上的{[ReportName],[ReportKey],[ReportWiseLatestDate]},
在行上{[DimReport].[Report Key].[Report Key]}
从
[填充报告多维数据集]
该函数实现以下功能:

WITH MEMBER [ReportName] AS [DimReport].[Report Key].CurrentMember.Member_Caption
     MEMBER [ReportKey] AS [DimReport].[Report Key].CurrentMember.UniqueName
     MEMBER [ReportWiseLatestDate] AS TAIL(NonEmpty([DimAnchorDate].[Date Key].[Date Key],[Measures].[DrPatientKeyCnt]),1).Item(0).MemberValue 
SELECT 
{[ReportName],[ReportKey],[ReportWiseLatestDate]} ON COLUMNS,
NonEmpty({[DimReport].[Report Key].[Report Key]}, [ReportWiseLatestDate]) ON ROWS
FROM 
[PopulationReportCube]
(加上)当场回答