[英]SSAS Calculated measure to show values only for specific dimension values
您可以将度量更改为以下内容:
IIF(
LEFT([Account Group].[Account Group].currentmember.member_caption,5) = "ROOMS"
,([MTDQuantity]/[MTDAvailableRooms])*100
,NULL
)
我猜想此维度/层次结构组合为[Account Group].[Account Group]. ...
[Account Group].[Account Group]. ...
您将需要更改它以反映多维数据集中使用的名称。
出于性能方面的原因,请作为范围声明使用。 在报表时间第一次有人连接到多维数据集与在每个单元格中运行的LEFT时,将评估以下内容:
Create member CurrentCube.[Measures].[My Calc]
as null
,format_string="0.0%";
scope(Filter([Account Group].[Account Group].[Account Group].Members, LEFT([Account Group].[Account Group].currentmember.member_caption,5)="ROOMS"));
[Measures].[My Calc] = iif(MTDAvailableRooms=0,null,([MTDQuantity]/[MTDAvailableRooms]));
end scope;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.