如果我重命名我的措施并使用 COALESCEEMPTY 这很有效,但我需要保持措施的真实名称。有谁知道如何用 0 替换空值而不必重命名度量值。
WITH
MEMBER [Measures].[col_] AS COALESCEEMPTY([Measures].[col],0)
MEMBER [Measures].[col2_] AS COALESCEEMPTY([Measures].[col2],0)
MEMBER [Measures].[col3_] AS COALESCEEMPTY([Measures].[col3],0)
Select
NON EMPTY {[Measures].[col_], [Measures].[col2_], [Measures].[col3_]}
DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS ,
NON EMPTY Hierarchize({DrilldownLevel({[Region].[Region].[All]})})
DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS FROM (
SELECT ({[Category].[Category].&[Oil]}, {[Year].[Year].&[2019]})
ON COLUMNS FROM [SIIBPAGESATDIREKTEF]) CELL PROPERTIES VALUE